Reputation: 21
I need to get the columns(Fields) of a List in a Sharepoint Site so that I can present the appropriate fields to the user for Create and Update Actions on ListItems. It's mentioned in the Documentation that a List will have a property called "fields" which will contain these columns. However, these are not returned by the API. Am I missing something here?
Upvotes: 1
Views: 2765
Reputation: 21
You should attach the query parameter ?select=fields to get the field list.
Eg. GET https://graph.microsoft.com/beta/sharepoint/sites/{site-id}/lists/{list-id}?select=fields
Upvotes: 0