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

Ajit Musalgavkar 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 Security | Microsoft Graph
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Saranya Madhu-MSFT 2,375 Reputation points Microsoft External Staff
    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' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.