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 365 and Office | SharePoint | For business | Windows
Microsoft Security | Microsoft Graph
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Srinivasa Rao Darna 6,846 Reputation points Microsoft External Staff
    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".


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.