cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
mhabig1
Helper I
Helper I

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
v-litu-msft
Community Support
Community Support

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
RTW
Advocate III
Advocate III

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

 

 

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

v-litu-msft
Community Support
Community Support

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.

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

New Ideas Forum MPA.jpg

A new place to submit your Ideas for Power Automate

Announcing a new way to share your feedback with the Power Automate Team.

Carousel_PP_768x460_Wave2 (1).png

2022 Release Wave 2 Plan

Power Platform release plan for the 2022 release wave 2 describes all new features releasing from October 2022 through March 2023.

MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

365 EduCon 768x460.png

Microsoft 365 EduCon

Join us for two optional days of workshops and a 3-day conference, you can choose from over 130 sessions in multiple tracks and 25 workshops.

Users online (5,405)