Whether it is sharing a file/folder from OneDrive or from a SharePoint site, I noticed that sharing the same file twice, with no changes to the path, file name or scope of sharing, two different URL's are generated. Preferably, I want a "permalink" for the same file, assuming no change to its path or its sharing scope, so that I can easily share it now and forever, with whomever.
For instance, I have a SharePoint file that I want to share externally, in read-only fashion. However, I noticed that creating the link a second time via Share, most of the URL is the same as the first time but the end differs...
https://virgilholdings.sharepoint.com/:w:/s/IT/ZJincz11Hr0f-wGwzA7cBH9G4MVwPdtYwQHpfbtNQPw?e=vfRdjQ
https://virgilholdings.sharepoint.com/:w:/s/IT/ZJincz11Hr0f-wGwzA7cBH9G4MVwPdtYwQHpfbtNQPw?e=NkxNPy
Note: I changed the URL's to invalidate them. These are just examples.
I tried removing the unique portion (e=xxx) and the link still worked, seemingly. It would be convenient to use the file's Share functionality whenever I want to obtain the share link (for the same sharing scope, e.g. externally, read-only) but must I heed the part that changes every time, i.e. e=xxx? What is its purpose? I can't find a reference to it online.
https://graph.microsoft.com/v1.0/shares/u!${encodedString}/driveItem
; is my graph query to read my file into memory. And to allow my app to construct a full web url with a file in the query parameters I create a link via: const createLink = `https:/