web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Send an HTTP request S...
Power Automate
Answered

Send an HTTP request Sharepoint ( Need help getting items API ID)

(0) ShareShare
ReportReport
Posted on by

Hi, 
Im trying to build a flow with this following step:

FarmaVIP_0-1694202297992.png
But I want to do it dynamically, so I need to replace the number covered in red  (or yellow in the print bellow) with a variable.

FarmaVIP_1-1694202575192.png

Is there a way to dynamically retrieve all items ID on a document library (yellow number)?
I try to use the Dev tools but i did not find anything



 

Categories:
  • Verified answer
    wskinnermctc Profile Picture
    6,519 Moderator on at

    Yes that is using MS Graph which refers to Document Library as Drives and files will be DriveItems.

     

    This will get all of the drives for the site:

    _api/v2.1/drives

    You can use this to get the DriveID

     

    You can filter by the name of the document library/drive:

    _api/v2.1/drives?$select=id, name&$filter=name eq 'Documents'

     

    If you ParseJSON this output then you can get the Driveid.

     

    To get the DriveItemID is not as straightforward. You have to address it through the list.

    _api/v2.1/sites/{hostname},{siteId},{webId}/lists/{ListId}/items/{ItemId}/driveitem
  • Trump2024 Profile Picture
    5 on at

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Automate

#1
Mohsin Ali Profile Picture

Mohsin Ali 289

#2
11manish Profile Picture

11manish 288 Super User 2026 Season 2

#3
Henil Profile Picture

Henil 125

Last 30 days Overall leaderboard