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?
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It only takes a minute to sign up.
Sign up to join this communityIf 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?
You will need to break the URL apart. The item url is basically list/folder[x]/item.
Credits to Bunzab