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 refresh a folde...
Power Automate
Unanswered

How to refresh a folder through PAD?

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hi,

 

I am replacing the word doc to pdf and need to refresh before to get all the files in the particular. Without refresh, the folder is not updated and thus get files in folder could not able to get the replaced pdf file. I tried python script to refresh but it is not working.

 

Any ideas on how to refresh a particular folder? Please help.

  • MichaelAnnis Profile Picture
    5,727 Moderator on at

    It is probably not a refresh thing as much as "Get Files" is running before the PDF is ever made.  Even though it only takes a second for the PDF to save, "Get Files" has already ran.

     

    Use "Wait for file to be created" before "Get Files"

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Yes but I need to take only part of the file name and use the "Wait for file to be created" since the version gets changing at the end of the file. So, I cannot mention the whole file name. And the file name has space in-between so cannot give it like ABC*.pdf. Any ideas?

  • MichaelAnnis Profile Picture
    5,727 Moderator on at

    Are you currently in a loop?  If so, you probably have the filename set to a variable somewhere.  You can put the variable in "Wait for file to be created."  That way, this command changes for each file.

     

    If not, look at this:

    MichaelAnnis_0-1631909851863.png

     

    Files 2 will get compared to Files 1.  If this is working right, there should only be 1 extra file.

    If Files2 = Files1, then the command Set Variable %ListDifference[1]% will result in an error, sending it back to Get Files2 again.  So, this will loop until the file lists are different, and you can continue on.

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
11manish Profile Picture

11manish 249 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 202

#3
David_MA Profile Picture

David_MA 180 Super User 2026 Season 2

Last 30 days Overall leaderboard