How to get the URL of a file or folder from cloud SharePoint#
Introduction#
This guide shows you how to obtain the URL of files and folders from cloud SharePoint with the purpose of using it with the SharePoint Fetcher. Below, you can find details about how the URL should look like, how to obtain it, and examples for cloud instances.
Supported URL formats#
The different share options within SharePoint can result in different URLs. The supported formats of the URL that you can use with the SharePoint Fetcher must contain some form of the file or folder path of the instances you want to fetch.
The URL of files and folders on cloud SharePoint will have a similar format to the following URL:
https://mycompany.sharepoint.com/:w:/r/sites/SiteName/Shared%20Documents/SomeFolder/SomeFile.docx?d=wab34894xxxxxxxxxxxxxxxxxxxxxx811&csf=1&web=1&e=DbAidp
Notice that after the SiteName
follows the path Shared%20Documents/SomeFolder/SomeFile.docx
that identifies the file.
Note
You do not need to worry about the URL encoded characters inside the URL, such as the %20
representing a whitespace in the above example.
You can use the URLs copied from SharePoint as they are.
Examples of supported cloud URLs#
URL (with file/folder path) |
Result |
---|---|
|
SharePoint-Fetcher will fetch the file ‘Document.docx’ |
|
SharePoint-Fetcher will fetch the folder ‘General’ |
Examples of not supported cloud URLs#
URL (without file/folder path) |
Result |
---|---|
|
SharePoint-Fetcher cannot find file or folder based on document ID |
Getting the URL on cloud SharePoint#
The URL of a file or folder inside the cloud SharePoint can be obtained through the Copy link button. This button is reachable in multiple ways, as shown below:
You can either directly right-click on a file or select it from the options menu marked by the three-dot icon
Or you can select a file and click Copy link from the Menu bar
If you have opened a file already, click on the Copy link under the Share options (only for files)
Or if you want to get the URL for a folder, like the first two bulletpoints above, look for the Copy link button.