How to get the List Item ID using Drive item info?

Hanz Tay 25 Reputation points
2024-06-19T10:10:33.91+00:00

Hi,

I uploaded a file to SharePoint and I need to get the list item id of the recently uploaded file.

How to get the list item id if I already have the drive item info ?

Thank you

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
11,264 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Hanz Tay 25 Reputation points
    2024-06-24T01:24:51.68+00:00

    Managed to solve this by using this call in MS Graph C# SDK

    await _graphClient.Drives[{drive-id}].Items[{item-id}].ListItem.GetAsync();
    
    
    1 person found this answer helpful.
    0 comments No comments