Greetings!!!
I got a flow that gets items from a Sharepoint list.
Scenario A
If the user is valid
Scenario B
If the user is not valid or not found in o365 users, its considered a failure
My flow runs, it runs well and all updates are properly handled.
The hang up is that if our story ends via Scenario B, its considered a wholesale failure.
Looking at my flow history, = its a failure
How can I massage the flow to treat scenario B to also be a success?
Solved! Go to Solution.
Hi @chico
It would be useful to see a picture of your complete Flow on this one, but if I am understanding correctly, the best way to mark a failure as a success, i.e, the fail is by design is to use a terminate action and mark it as "succeeded". If this suits your Flow design that is.
This may or may not fit your design though, please post your Flow and we will see.
If you have found my post helpful, please mark thumbs up.
Any other questions, just ask.
Thanks, Alan
Proud to be a Flownaut!
Hi @chico
It would be useful to see a picture of your complete Flow on this one, but if I am understanding correctly, the best way to mark a failure as a success, i.e, the fail is by design is to use a terminate action and mark it as "succeeded". If this suits your Flow design that is.
This may or may not fit your design though, please post your Flow and we will see.
If you have found my post helpful, please mark thumbs up.
Any other questions, just ask.
Thanks, Alan
Proud to be a Flownaut!
Hi @chico you could always change the "run after" settings so that you can gracefully catch the error. You can do this by clicking on the ellipsis for the step following the failing action and set it to run on Error. This usually works better if you contain all of your logic in scopes. Whilst this will work, the inner developer in me is screaming no ๐
What I would suggest for a cleaner approach would be to use "Search for Users" and search for the email address. If the length of the body returned is 0, then the user doesn't exist. If it's greater than 0, then you have a match.
The expression I have used in the condition is:
length(body('Search_for_users'))
Proud to be a Flownaut!
Community Leader: Black Country PowerApps & Flow User Group
Join digitally, March 2โ4, 2021 to explore new tech that's ready to implement. Experience the keynote in mixed reality through AltspaceVR!
User | Count |
---|---|
85 | |
58 | |
47 | |
38 | |
34 |
User | Count |
---|---|
91 | |
75 | |
74 | |
61 | |
41 |