cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Dave_O
Regular Visitor

If the file are created

Hi,

 

With the help of desktop power automate, i want to create a flow that allow me to copy a specific file when the file are created in the specific folder. Its look like pretty easy with the cloud flow. I use the power automate desktop because my file are in my personnal drive (not cloud). For now, my flow is able to copy the specific file in the destination folder but i need to run it manually.

 

Any tips/ideas?

 

Thanks

5 REPLIES 5
GanCW
Resolver II
Resolver II

You can create a loop which has the ‘wait for file’ action to wait for the file to be created and then copy the file to the specific folder.

Dave_O
Regular Visitor

Hi @GanCW ,

 

Thanks for your quick response. i have some notion about the loop but for my case, i have some difficulty to figure out what i need to enter for the first operand. 

Without loop this flow work perfectly but i need to run manually.

Dave_O_0-1613656480100.png

What can i enter for the variables for the ''operand'' of the loop?

Dave_O_1-1613658094889.png

Thanks

 

Hi @Dave_O 

You can make this a forever loop so that it keeps running until the script is stopped manually

 

Loop %true% = %true%

   Wait for file to be created 

   Copy file

End loop

joshd111
Resolver I
Resolver I

@GanCW If you want this to loop to stop once the file shows up and is copied, use "If file exists" step to check for the existence of the file in the destination. If that is true, then set a variable X to true. Your loop condition should check X and stop when X is true.

Hi @joshd111 ,

Thanks for your response. Ok, to be honest, i feel like, im not handle this concept. Its look very simple.

What i want to do is take the file in the specific folder and copy the file to a destination folder. And i want this automatically. My PDF file was created every day in this folder with the same name (replace).

Like i previously mention, with this, its work, but i need to run manually.

Dave_O_1-1614003488566.png

If i made this change, nothing happen.

Dave_O_2-1614003829143.png

Can you help me with the ''loop'' concept please?

Thanks

Helpful resources

Announcements
User Groups Public Preview

Join us for our User Group Public Preview!

Power Automate User Groups are coming! Make sure you’re among the first to know when user groups go live for public preview.

New Super Users

Meet the Power Automate Super Users!

Many congratulations to the Season 1 2021 Flownaut Crew!

Power Platform ISV STudio

Power Platform ISV Studio

ISV Studio is the go-to Power Platform destination for ISV’s to monitor & manage applications post-AppSource publish.

Users online (41,392)