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?

2
  • None that I am aware of. You will need to break the URL apart. The item url is basically list/folder[x]/item.
    – Bunzab
    Commented Feb 10, 2015 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
    Commented Feb 18, 2015 at 13:25

1 Answer 1

1

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

Credits to Bunzab

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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