Forum Discussion
Gabriel Smoljar
Mar 27, 2023Brass Contributor
Get direct link to file from RenderListDataAsStream API
I am refactoring old code from using Microsoft.SharePoint.Client.List.GetListItems to RenderListDataAsStream as it seems to support large lists better. One problem is that I currently get the Lin...
kalpeshvaghela
Mar 28, 2023Steel Contributor
Is there any specific reason for getting this link? do you want to hide actual file name in the link? otherwise you could also add "?web=1" in the absolute URL at the end which can open supported document in browser by default.
Hope it will helpful to you and if so then Please mark my response as Best Response & Like to help others in this community
- Gabriel SmoljarJul 07, 2023Brass ContributorSorry for the late reply. The nice thing about that link is that it is persistent, even if the file moves to a different folder. Luckily I realized that the value of the query string parameters was just same as the GUID column value, without dashes. So it was easy to recreate in my own code 🙂