The process of building custom applications and tools that interact with Microsoft SharePoint, including SharePoint Online in Microsoft 365.
Hi @Carlos Han
Thank you for reaching out to Microsoft Q&A forum.
Can you please be more specific about "DMSO-generated deep links" you mentioned? Is it third-party product or any external system you integrated with SharePoint Online?
Based on my research, in SharePoint Online, the viewid specifies a unique GUID for a document library view (e.g., the default "All Documents" view). When omitted, SharePoint should fall back to the library's default view for authenticated users with read access. However, modern SharePoint might sometimes fail to resolve this correctly due to context differences in how the URL is processed.
I also did some testing based on this article; SharePoint URLs and the viewid query param, the view could have a different address.
Note: Microsoft is providing this information as a convenience to you. These sites are not controlled by Microsoft, and Microsoft cannot make any representations regarding the quality, safety, or suitability of any software or information found there. Please ensure that you fully understand the risks before using any suggestions from the above link.
I have created a custom view (this view called custom and it is not set as default view), the viewid stayed the same while the name on the URL changed. These two both point to the same destination despite of the difference. This might also confuse when SharePoint resolve the address.
sites/sitename/Shared%20Documents/Forms/custom.aspx?viewid=6e852bee-b7d4-43b2-XXXXX
sites/sitename/Shared%20Documents/Forms/AllItems.aspx?viewid=6e852bee-b7d4-43b2-XXXXX
I also notice that your URL have different format, did you configure the format of the URL address with DMSO? The usual format would be like this:
https://companyname.sharepoint.com/sites/sitename/Library%20Name/Document%20Name.pdf?CT=<value>&OR=ItemsView (when open in new window)
https://companyname.sharepoint.com/sites/sitename/Library%20Name/Forms/viewname.aspx?viewid=<value>&id=<value>pdf&parent=<value> (open with in the same window, with viewid)
After decoding your URL, it looks like this:
https://<tenant>.sharepoint.com/_forms/default.aspx?ReturnUrl=/sites/teamdocs/_layouts/15/Authenticate.aspx? Source=/sites/teamdocs/DocLib/Forms/AllItems.aspx? Id=/sites/
Can you give more information about this DMSO?
In conclusion, viewid is not required but to provide a smoother and more consistent experience to end user, it is advised to include viewid in the URL.
I hope this information helps.
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.