How to get columns names and values of ListItem using Microsoft Search API (Delegate)

harryK9 11 Reputation points
2022-11-15T10:14:26.083+00:00

Hello,
I am trying to get the list values and column names using the search API delegate.

URL: https://graph.microsoft.com/v1.0/search/query

Method: POST

Request Body:
{
"requests": [
{
"entityTypes": [
"listItem"
],
"query": {
"queryString": "Demo"
}
}
]
}

Is there any way to get the column names and values using the above API ?

Any lead will be appreciated.
Thanks

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
11,383 questions
SharePoint
SharePoint
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
10,249 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Srinivasa Rao Darna 6,711 Reputation points Microsoft Vendor
    2022-11-15T12:30:51.393+00:00

    Hi @harryK9 ,

    Check this documentation Use filters in search queries, "query": "{SearchTerms} Title:{Value}".

    This is my test result.
    260517-image.png

    Also refer Specify select properties.

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