Timeline for SP Online REST API Durable Document Link
Current License: CC BY-SA 4.0
9 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Sep 10, 2018 at 2:35 | comment | added | user77766 | Thanks for your help! Any chance you have any light to shed on my other current problem? link | |
Sep 6, 2018 at 15:49 | comment | added | Gautam Sheth | Yes, that's exactly what is used ! In case of file, we get full url which is convenient. For folders will have to work with unique Id | |
Sep 6, 2018 at 15:41 | vote | accept | user77766 | ||
Sep 6, 2018 at 15:40 | comment | added | user77766 |
Also, BTW, I believe there was a surplus /_api/web/lists/getbytitle('Documents') in the URI you posted in your comment, above - I ended up using https://mysite.sharepoint.com/sites/mysite/_api/web/lists/getbytitle('mylibrary')/items(32)?$select=*,Folder/UniqueId&$expand=Folder
|
|
Sep 6, 2018 at 15:35 | comment | added | user77766 |
That's great - thank you. The REST API is now returning a <d:UniqueId> node, with a value similar to the GUI's. Is it safe to assume that I should always pre-pend a w , and strip out the dashes (- ) to arrive at the same link the GUI would supply?
|
|
Sep 6, 2018 at 14:48 | comment | added | Gautam Sheth |
The above code works for Files. To make it work for folder or document sets, you can use https://mysite.sharepoint.com/sites/mysite/_api/web/lists/getbytitle('mylibrary')/_api/web/lists/getbytitle('Documents')/items(32)?$select=*,Folder/UniqueId&$expand=Folder . It will give you the uniqueId property of the document set which will be the value you can use for d=... section !
|
|
Sep 6, 2018 at 14:36 | comment | added | user77766 | I get a response from the server, however it does not appear to contain the required field. (It does not contain a value that matches the string obtainable from the SP GUI for the same Document Set in the same Document Library) Nor does it contain a node 'LinkingURL'. Any other hints to what I might be doing wrong? | |
Sep 6, 2018 at 14:32 | comment | added | user77766 | I had seen that page, however I couldn't resolve how to apply it to an endpoint. | |
Sep 6, 2018 at 13:29 | history | answered | Gautam Sheth | CC BY-SA 4.0 |