How do I fetch properties in driveItem like image tags via graph api?

Arnav Lala 20 Reputation points
2024-04-15T07:52:16.4166667+00:00

Hello,

I'm currently working on fetching properties of a driveItem using the Microsoft Graph API endpoint GET /drives/{drive-id}/items/{item-id}. I'm specifically interested in retrieving properties like image tags, title, etc.

While using the select parameter, I've been successful in fetching properties like title, but I'm facing difficulties in retrieving properties such as image tags. Could someone guide me on how to retrieve the image tags of a drive item using the Graph API?

Additionally, I'm interested in knowing if there are any other properties that are not included in the default result and require additional steps to fetch. Is there a comprehensive list of such fields available?

I've referred to the properties list provided here, but it seems to be missing properties like title, image tags, etc.

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
10,611 questions
SharePoint
SharePoint
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
9,650 questions
SharePoint Development
SharePoint Development
SharePoint: A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.Development: The process of researching, productizing, and refining new or existing technologies.
2,673 questions
OneDrive Management
OneDrive Management
OneDrive: A Microsoft file hosting and synchronization service.Management: The act or process of organizing, handling, directing or controlling something.
1,130 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. RaytheonXie_MSFT 31,226 Reputation points Microsoft Vendor
    2024-04-16T02:17:13.9233333+00:00

    Hi @Arnav Lala,

    Currently graph api doesn't support image column. We are unable to get the image property by graph. As a workaround, you could use rest api to get the image column. Please refer to following api

    _api/web/lists/getbytitle('Action Tracker')/items(1)?$select=ImageCol
    
    
    

    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.

    0 comments No comments

  2. Arnav Lala 20 Reputation points
    2024-04-16T11:26:34.1+00:00

    Hi @RaytheonXie_MSFT
    Do we have a list of fields that we can fetch via graph api for driveItems. I've referred to the properties list provided here, but i was able to fetch "title" which is not a part of this list. It would be really helpful to know what all fields can be fetched via api.

    Thank you