سؤال

I am trying to work around a validation error when trying to generate a URL to get to a view. I know I can get to the view these ways:

  1. https://contoso.sharepoint.com/Lists/ListName/ViewName.aspx
  2. https://contoso.sharepoint.com/Lists/ListName/AllItems.aspx?viewid=viewGUID

Is there any way to pass the name of the view as a parameter? So something like

هل كانت مفيدة؟

المحلول

Per my test, generate link to list view by view name as parameter is not work in SharePoint.

نصائح أخرى

That is not possible. The closest to fit your requirement would be to get the view url using the API:

https://contoso.sharepoint.com/_api/web/lists/getByTitle('ListName')/views/getByTitle('ViewName')?$select=ServerRelativeUrl
مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى sharepoint.stackexchange
scroll top