SharePoint ListItems Graph API Thumbnail field name

Shibu Tharakan 21 Reputation points
2022-02-15T13:55:22.64+00:00

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

Body:

{
"requests": [
{
"entityTypes": [
"listItem"
],
"query": {
"queryString": "searchKeyWord* AND isDocument:true"
},
"from": 0,
"size": 10,
"fields": [
"name",
"contentclass",
"Author",
"filename",
"DefaultEncodingURL",
"filetype",
"parentlink",
"LastModifiedTime",
"Created",
"thumbnail"
]
}
]
}

But thumbnail field is not present in response. Kindly help with your knowledge.

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

Accepted answer
  1. RaytheonXie_MSFT 36,091 Reputation points Microsoft Vendor
    2022-02-16T08:11:59.837+00:00

    Hi @Shibu Tharakan ,
    Per my test, we are unable to get the thumbnail. Here is a JSON representation of the thumbnail resource.

    {  
      "height": "Int32",  
      "sourceItemId": "String",  
      "url": "String",  
      "width": "Int32",  
      "content": "Stream"  
    }  
    

    The thumbnail contains several properties. We are unable to present a collection to the field. If you want to get thumbnails. Please refer to following document
    https://learn.microsoft.com/en-us/graph/api/driveitem-list-thumbnails?view=graph-rest-1.0&tabs=http


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.