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

Community site session details

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

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:
I have the same question (0)
  • Verified answer
    wskinnermctc Profile Picture
    6,519 Moderator on at
    Re: Send an HTTP request Sharepoint ( Need help getting items API ID)

    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
    Re: Send an HTTP request Sharepoint ( Need help getting items API ID)

    This helped me. Avoids HTTP request action.

    https://powerusers.microsoft.com/t5/Building-Power-Apps/Power-automate-setting-library-name-dynamically-in-Get-files/m-p/2490184/highlight/true#M619627

     

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 462 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 456 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard