I have created a flow that moves documents from SharePoint library to library, when it reaches one of the libraries they will have to choose from a choice column on who reviews the document next, which makes it a condition, so if the condition is met it could go to a,b,c,d,e,f,g,h,i,j. What is the best way to create this flow. Who ever receives the document will edit it, then choose multiple editors, based on SharePoint column choice. This is what I have so far...
Solved! Go to Solution.
Hiya. Good catch! It's super helpful to think through these things on the front end like you have rather than waiting until something breaks 🙂
So, this is a process thing now, right? Not so much a system thing. So you'll probably want to think through some of the following:
Loads of options depending on the latitude you have with the process, but given what you've presented so far, here's one approach:
With your flow as it is currently designed, after the delay it will try to get the file properties...but if the file isn't there, it will error out ya? This gives us an opportunity to use the "Run After" capabilities in Power Automate to build a "Try Catch Finally" process that developers typically use for error handling. It's not as complicated as it sounds, and here's an article I did covering exactly this kind of thing: Using "Run After" as a Condition in Power Automate / Flow
If it errors out, you could have it send an email to you or something, but I don't know if you'll be able to tell if the file was manually moved into the correct folder.
Keep at it, you're doing great!
-Ed
If you liked this reply, please give it a thumbs up! If this reply has answered your question or resolved your challenge, please consider marking it as a Solution. This helps other users find it more easily via search.
Hi there. Check out the Switch action. It lets you essentially have a condition with non-binary (true/false) results.
I cover it a little bit in this article: Calendar Sync with Switch in Power Automate / Flow
Keep us posted.
-Ed
If you liked this reply, please give it a thumbs up! If this reply has answered your question or resolved your challenge, please consider marking it as a Solution. This helps other users find it more easily via search.
@edgonzales thanks Ed for responding, so I have the switch statement in and here's the flow so far.
When a file is created or modified (properties only)
Delay (7 days due date) this is where my new issue is, what do I do if the file is moved manually, before due date?
Get file properties
Get file metadata
Apply to each/Switch Statement (which are the 12 possible choices)
Copy file
Delete file
Hiya. Good catch! It's super helpful to think through these things on the front end like you have rather than waiting until something breaks 🙂
So, this is a process thing now, right? Not so much a system thing. So you'll probably want to think through some of the following:
Loads of options depending on the latitude you have with the process, but given what you've presented so far, here's one approach:
With your flow as it is currently designed, after the delay it will try to get the file properties...but if the file isn't there, it will error out ya? This gives us an opportunity to use the "Run After" capabilities in Power Automate to build a "Try Catch Finally" process that developers typically use for error handling. It's not as complicated as it sounds, and here's an article I did covering exactly this kind of thing: Using "Run After" as a Condition in Power Automate / Flow
If it errors out, you could have it send an email to you or something, but I don't know if you'll be able to tell if the file was manually moved into the correct folder.
Keep at it, you're doing great!
-Ed
If you liked this reply, please give it a thumbs up! If this reply has answered your question or resolved your challenge, please consider marking it as a Solution. This helps other users find it more easily via search.
Learn to digitize and optimize business processes and connect all your applications to share data in real time.
Come together to explore latest innovations in code and application development—and gain insights from experts from around the world.
At the monthly call, connect with other leaders and find out how community makes your experience even better.
User | Count |
---|---|
25 | |
24 | |
23 | |
23 | |
19 |
User | Count |
---|---|
58 | |
40 | |
40 | |
29 | |
24 |