0

I have this current link with me:

https://demo.com/:b:/s/sites/EXhKcRUvGA9NlAIi0BMMfdCFHNVxtTvA7lYEwj0g?e=SS3ym2

How to get the absolute URL of a SharePoint library file using URL like below?

I want use REST API to this URL:

https://demo.com/sites/sieName/DocLib8/Forms/AllItems.aspx?id={id}.
3
  • (if it is one-timer) - I'd go to this link in browser and get file then use "details" to get real file path... Feb 4 at 22:37
  • My regret is that there are many :(
    – Hàn Vũ
    Feb 5 at 6:23
  • Try the following endpoint: https://<url>/_api/web/GetFileByServerRelativeUrl('/sites/<name>/DocLib8/<fileName>')/ListItemAllFields The absolute URL of the file can be accessed with response.d.EncodedAbsUrl Feb 5 at 19:03

0

Your Answer

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