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 a specific PDF fro...
Power Automate
Unanswered

Get a specific PDF from a folder in SharePoint

(0) ShareShare
ReportReport
Posted on by

Hello, I have a folder containing reports that go through many iterations before being finalized, and my goal is to find the finalized one and stamp a watermark on it. Each series of reports has its own DocID and a Status column used to identify them. I need to create a Flow that activates when an item is created containing the DocID. 

 

When the item containing the DocID is created in a SharePoint list, I need to get that specific file/PDF based on the retrieved DocID and the Status eq Approved. Any help would be greatly appreciated. 

Categories:
I have the same question (0)
  • v-jefferni Profile Picture
    Microsoft Employee on at

    Hi @CSilva ,

     

    Have you tried filter query in Get files action?

    vjefferni_0-1719563254493.png

     

    Best regards,

  • CSilva Profile Picture
    on at

    Thank you for the response. I have done that, but my issue is that when doing subsequent steps, it forces me to do an 'Apply To Each' since we use the 'Get Files' action. Is there a way to locate and grab a single file that I can edit in subsequent steps?

  • v-jefferni Profile Picture
    Microsoft Employee on at

    Hi @CSilva ,

     

    You need a Condition control first and check if the output of Get files is empty. If not, get the first file using first in the expression:

    vjefferni_0-1719799695153.png

     

    If there won't be more than 1 file in the output, actually the Apply to each will help you create the flow and won't affect the performance, it's not something to worry about.

     

    Best regards,

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 862

#2
Valantis Profile Picture

Valantis 738

#3
Haque Profile Picture

Haque 553

Last 30 days Overall leaderboard