How do I request a new Preview url to be generated #2821
Unanswered
Admiral-Skye
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I have been following the documentation (https://learn.microsoft.com/en-us/sharepoint/dev/embedded/tutorials/using-file-preview#get-the-preview-url-using-graph) to create an embedded preview url for a document stored within a onedrive site.
The issue I am running into now is that I want to generate a new preview url when the old one has expired.
The code below is how I am request the preview link.
This works when i upload a new copy of the document to the onedrive to overwrite the old file then generate a new preview.
Otherwise i am met with an error page stating that either the file is missing or i do not have permission to view it when navigating to the GetUrl returned by the above code.
I can't use the
embed
option for createLink because its only available to personal onedrives.Beta Was this translation helpful? Give feedback.
All reactions