Forum Discussion

ktan20's avatar
ktan20
Copper Contributor
Aug 05, 2024

Graph API (POST): Need help with Sharepoint fields/columns via Graph

Hi everyone,

I’m encountering an issue with retrieving certain fields/columns from a SharePoint list and could use some help.

Here’s the POST request I’m using:



{
    "requests": [
        {
            "entityTypes": [
                "listItem"
            ],
            "query": {
                "queryString": "path:\"https://{Path to sharepoint}/sites/{Path to site}/Lists/{Path to list}\""
            },
            "fields": [
                "title",
                "contentclass",
                "AssignedTo",
                "Editor",
                "STATUS",
                "IMPLEMENTEDCOMMENT",
                "AssignedToModule",
            ]
        }
    ]
}


I can successfully retrieve the title, contentclass, and AssignedTo fields, but I’m unable to get data for the other fields, even though they contain data. I’ve double-checked the field names and they seem correct.

Interestingly, when I use a GET request instead of a POST request, I can retrieve all the fields, but only for one row/(one Item). I want to avoid using pagination as it results in a lot of API calls.

Does anyone have any advice on why this might be happening or how I can resolve this issue?

Thanks in advance for your help!

No RepliesBe the first to reply

Resources