1

If there is a file in a document library in this structure:

Document Library
-DocumentSet
--Folder1
---Folder2
----File

How do I get the reference to DocumentSet from the file with server side object model?

  • None that I am aware of. You will need to break the URL apart. The item url is basically list/folder[x]/item. – Bunzab Feb 10 '15 at 17:53
  • Bunzab - thanks for your suggestion. It led me to the solution. If you rewrite as an answer I will accept it. – Submits Feb 18 '15 at 13:25
1

You will need to break the URL apart. The item url is basically list/folder[x]/item.

Credits to Bunzab

We're looking for long answers that provide some explanation and context. Don't just give a one-line answer; explain why your answer is right, ideally with citations. Answers that don't include explanations may be removed.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.