Tell me more ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

If list A has a SPFieldLookup to list B is there any thing in list B's SPList object to show the relationship with list A?

While I can flip through list A's fields and find the relationship to List B in a SPFieldLookup, I can't determine how to programmatically link List B back to List A.

share|improve this question
For what reason do you need to do this? What goal are you trying to achieve with this? – rjcup3 Feb 27 at 1:54
@rjcup3 Why would an answer to your questions help find an answer? – iambriansreed Feb 28 at 13:37
There is no way to determine programmatically from the object model of list B, which other lists have lookups to it. If you're trying to prevent deletion of a column that has dependencies there are ways to enforce that. If you're trying to achieve something else, there may be a better way to organize the data. The reason I asked is because the answer to your question is "no", but there has to be an underlying reason that you asked your question in the first place, and that may have an actual answer. – rjcup3 Feb 28 at 15:01

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.