cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
mhabig1
Level: Powered On

Moving files in library with a delay

I have 5 different library created in my SharePoint site. The flow is 

 

When a file is created (properties only)

Delay (20 days)

Get files properties

Get file metadata

Copy file

Delete file 

Post to a message

Send an email

 

This works great, my concern is I created another flow for each of the libraries in case the file is moved early (manually) by the end user,  which would leave the other flow running for the 20 days. Will this cause issues? Or is there another way I should create this?

1 ACCEPTED SOLUTION

Accepted Solutions
Community Support Team
Community Support Team

Re: Moving files in library with a delay

Hi @mhabig1,

 

If the File is moved early, this Flow run will fail after 20 days delay since the get files properties action will fail. And there is no copy file, message, and email in the following steps.

 

If you still want to post a message and email, you could create a branch to in case the File is moved early, then configure run after, for example:

 

Annotation 2020-01-16 113313.png

 

Annotation 2020-01-16 113345.png

 

Best Regards,
Community Support Team _ Lin Tu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

3 REPLIES 3
Highlighted
RTW
Level: Powered On

Re: Moving files in library with a delay

Perhaps a better way would be to get documents and apply the flow based on age? Something like this:

 

Recurring daily

Get files (properties only)

 

If Today-Created >= 20

Then run flow

End

 

 

mhabig1
Level: Powered On

Re: Moving files in library with a delay

That would still keep that flow running if the end users manually moves the file to another library, before the scheduled date.

Community Support Team
Community Support Team

Re: Moving files in library with a delay

Hi @mhabig1,

 

If the File is moved early, this Flow run will fail after 20 days delay since the get files properties action will fail. And there is no copy file, message, and email in the following steps.

 

If you still want to post a message and email, you could create a branch to in case the File is moved early, then configure run after, for example:

 

Annotation 2020-01-16 113313.png

 

Annotation 2020-01-16 113345.png

 

Best Regards,
Community Support Team _ Lin Tu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Helpful resources

Announcements
firstImage

Power Platform Online Conference

Join us for the first ever Power Platform Online Conference!

firstImage

Incoming: New and improved badges!

Look out for new contribution recognition badges coming SOON!

firstImage

New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!

thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Power Platform World Tour

Find out where you can attend!

seventhimage

Webinars & Video Gallery

Watch & learn from the Power Automate Community Video Gallery!

Top Solution Authors
Top Kudoed Authors
Users online (5,945)