Access SharePoint site via MS Graph

Mayur Patel 20 Reputation points
2023-04-20T10:47:51.6966667+00:00

URL1 = https://uk.sharepoint.com/sites/CKnowledge/Guard/Forms/AllItems.aspx | *All Documents I can GET this URL on MS Graph using: https://graph.microsoft.com/v1.0/sites/uk.sharepoint.com:/sites/CKnowledge:/lists/%7B00000000-0000--0000-0000-000000000000%7D

But I can't seem to GET this URL2 on MS Graph: https://uk.sharepoint.com/sites/CKnowledge/Guard/Forms/AllItems.aspx?viewid=848cf2f9-0ece-4f16-a9e9-fbdef773655c | *All Guard'

*To get from URL1 to URL2 on SharePoint I need to 'Switch view options' from 'All Documents' to 'All Guard'

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
13,704 questions
SharePoint
SharePoint
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
11,229 questions
0 comments No comments
{count} votes

Accepted answer
  1. RaytheonXie_MSFT 40,471 Reputation points Microsoft External Staff
    2023-04-21T02:55:56.7533333+00:00

    Hi @Mayur Patel, The second url is to a list view. Currently there is no such api to get the view of a list. Here is a similar issue with yours, please make a reference https://learn.microsoft.com/en-us/answers/questions/666026/how-to-use-microsoft-graph-api-to-read-from-a-view

    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.


    Comments have been turned off. Learn more

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.