How to get all the column values (including custom columns) in a Sharepoint List via Microsoft Graph API?

Kitty Cheng 1 Reputation point
2020-11-24T05:09:55.483+00:00

How to get all the column values (including custom columns) in a Sharepoint List via Microsoft Graph API? I can only get the item id by calling the request query stated in the doc.

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

2 answers

Sort by: Most helpful
  1. Deva-MSFT 2,256 Reputation points Microsoft Employee
    2020-11-24T16:31:50.61+00:00

    i would try columndefinition resource to get the column values.


  2. Sébastien Levert 76 Reputation points Microsoft Employee
    2020-11-30T15:53:14.653+00:00

    By using the /items endpoint, you should be able to expand on the fields property like this.

    GET https://graph.microsoft.com/v1.0/sites/{site-id}/lists/{list-id}/items?$expand=fields
    

    The response will contain a field property with everything you need!