How to create a list view using microsoft graph api (v1.0)

Aj 0 Reputation points
2024-06-05T10:23:23.2666667+00:00

Hi folks, how can I create a list view (on a sharepoint list) using microsoft graph api?
I've read the documentation for the graph api and couldn't find any reference to this.

Does anyone know?

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
12,467 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Saranya Madhu-MSFT 530 Reputation points Microsoft Vendor
    2024-06-05T14:22:23.9933333+00:00

    Hi @Aj,

    Thanks for reaching out!

    Currently, there isn’t a specific Microsoft Graph API to create a list view or a custom view for a SharePoint list. However, you can retrieve list items for specific columns at the list level using the following Graph API:

    GET https://graph.microsoft.com/v1.0/sites/{site-id}/lists/{list-id}/items?expand=fields(select=Column1,Column2,Column3)

    For more detailed information, you can refer to the Get List Items API documentation.

    Hope this helps.

    If the reply is helpful, please click "Accept Answer" and kindly upvote it. If you have additional questions about this answer, please click "Comment".

    0 comments No comments

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.