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 / Get file by ID using R...
Power Automate
Unanswered

Get file by ID using REST API

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hello,

 

I've created a small PA flow with the following trigger: 

Nibelj_0-1669279720046.png

 

The trigger returns an ID, a number such as 6023.

 

I'm trying to use this ID to later download the file via the Sharepoint REST API using this:

/_api/web/lists/getbytitle('Documents')/Items/GetById(6023)/file

 

The api request keeps giving me the error: 404 file not found.

Is this the right ID I'm using for this action, or is there another ID I can try to use? Or another endpoint?

 

Thanks!

Categories:
  • Expiscornovus Profile Picture
    34,005 Most Valuable Professional on at

    Hi @Anonymous,

     

    Try items(<ID>) instead.

     

    In your setup that would be:

    _api/web/lists/getbytitle('Documents')/Items(@{triggerOutputs()?['body/ID']})/file

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 282 Super User 2026 Season 2

#3
Henil Profile Picture

Henil 119

Last 30 days Overall leaderboard