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 / How to Dynamically Ret...
Power Automate
Answered

How to Dynamically Retrieve Content of Newly Created Excel File in OneDrive for a Power Automate Flow?

(0) ShareShare
ReportReport
Posted on by 932 Super User 2024 Season 1

Hi,

 

I'm setting up a Power Automate flow that is triggered when a new Excel file is placed into a specific OneDrive folder. My flow is supposed to take this Excel file and append its contents to a table in Dataverse.

 

I have set up my trigger to start the flow when the file is created. However, I'm a bit stuck on the step immediately following the trigger, where I need to retrieve the content of the newly created file using the 'Get file content' action from OneDrive for Business.

The action is asking for a 'File Identifier', and I'm unsure how to dynamically specify the most recently created file, as I won't know the file path beforehand. Could someone guide me on how to use the dynamic content output from the trigger to reference the correct file?

 

Also, if there are multiple files created at the same time, how would the flow know which one's content to retrieve? I'm looking for a solution that ensures the correct file is processed each time the flow runs.

 

Any insights or guidance on this would be greatly appreciated. Thank you in advance for your help.

Categories:
I have the same question (0)
  • Verified answer
    SudeepGhatakNZ Profile Picture
    14,396 Most Valuable Professional on at

    @HamidBee ,

    SudeepGhatakNZ_0-1699329303783.png

     

    If there are multiple files created, a flow instance will be triggered for each file separately. If you want the flow to run for a specific file, you need to add a condition action after the trigger.

     

     

  • HamidBee Profile Picture
    932 Super User 2024 Season 1 on at

    Thanks for getting back to me. 

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 Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Valantis Profile Picture

Valantis 462

#2
Vish WR Profile Picture

Vish WR 256

#3
David_MA Profile Picture

David_MA 242 Super User 2026 Season 1

Last 30 days Overall leaderboard