Forum Discussion
monkeyclumps
Oct 19, 2021Copper Contributor
Error Message when clicking sharing video link in sharepoint
i have a flow that automatically creates a sharing link for every file that is added to a sharepoint library. however, for video links that are uploaded/added to the sharepoint library, the sharing li...
Deleted
May 10, 2023The [expiration date] parameter should be in UTC format and follow this format: yyyy-mm-ddThh:mm:ssZ. For example, 2023-06-01T12:00:00Z represents June 1, 2023, at 12:00:00 noon UTC.
here's an example of a full URL for a SharePoint file sharing link:
https://example.sharepoint.com/:v:/s/Marketing/Employees/CV12345.docx?e=2022-06-30T23%3A59%3A59Z&download=1&web=1&url=https://www.example.com
In this example:
- "example.sharepoint.com" is the domain for the SharePoint site
- "Marketing" is the name of the SharePoint site
- "Employees" is the name of the document library where the file is located
- "CV12345.docx" is the name of the file
- "2022-06-30T23%3A59%3A59Z" is the expiration date encoded in ISO 8601 format
- "&download=1" specifies that the file should be downloaded instead of previewed in the browser
- "&web=1" specifies that the link should be opened in the browser instead of the OneDrive app
- "&url=https://www.example.com" specifies a direct link to an external website
Note that the expiration date is URL-encoded to include the "T" separator and the "Z" time zone designator. The "&" character is also encoded as "&" in the URL.
here's an example of a full URL for a SharePoint file sharing link:
https://example.sharepoint.com/:v:/s/Marketing/Employees/CV12345.docx?e=2022-06-30T23%3A59%3A59Z&download=1&web=1&url=https://www.example.com
In this example:
- "example.sharepoint.com" is the domain for the SharePoint site
- "Marketing" is the name of the SharePoint site
- "Employees" is the name of the document library where the file is located
- "CV12345.docx" is the name of the file
- "2022-06-30T23%3A59%3A59Z" is the expiration date encoded in ISO 8601 format
- "&download=1" specifies that the file should be downloaded instead of previewed in the browser
- "&web=1" specifies that the link should be opened in the browser instead of the OneDrive app
- "&url=https://www.example.com" specifies a direct link to an external website
Note that the expiration date is URL-encoded to include the "T" separator and the "Z" time zone designator. The "&" character is also encoded as "&" in the URL.
barlage
May 10, 2023Brass Contributor
Deleted, this still isn't working for me and I need some clarification on a couple things.
- I included an expiration date in the URL I'm building, but I don't have an expiration date column in the library where I'm putting links. Do I need to create a column called 'ExpirationDate"? If yes, please include the exact syntax of what I need to name the column.
- In my picture below, this is how I am adding a link to my document library. I named my link 'google', but do you see how it adds the '.url' at the end of the name? It has 'google.url' in the details pane, so I'm using that.
Will you please attempt to create a link to an external page in your site pages library and view that list in a list viewer web part and see if this solution you propose is working for you?
- DeletedMay 10, 2023
barlage Please copy the link which I send in a text editor, and see the full URL to understand its syntax
https://example.sharepoint.com/:v:/s/Marketing/Employees/CV12345.docx?e=2022-06-30T23%3A59%3A59Z&download=1&web=1&url=https://www.example.com- DeletedMay 10, 2023
- barlageMay 10, 2023Brass ContributorDeleted, I did copy your hyperlink and you did not answer my questions, so I am still stuck.
In your example, you have a link to a document (CV12345.docx). I am not linking to a document, so what would my link look like if I wanted to bypass the preview and go to an external site, like http://www.google.com.
And do I need to create an 'Expiration Date' column in my library and set the date the same as I put in the URL?