cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
dlprentice
Resolver II
Resolver II

How do I make these two actions run even if the "Create item" part fails?

Hello,

 

How do I make the "Mark as read or unread (V2)", and "Move email (V2)" execute even if Create item has failed?

 

If Create Item fails I don't want "Send an email (V2)" to run. As it is setup right now, that works. However I always want the email to be marked as read and moved.

 

Screenshot 2020-11-06 194739.png

 

Your help is appreciated,

Thanks!

1 ACCEPTED SOLUTION

Accepted Solutions
dlprentice
Resolver II
Resolver II

@PURNA429 

 

I appreciate your response, but I took a bit of a simpler approach.

Screenshot 2020-11-09 090809.png

 

Screenshot 2020-11-09 090859.png

View solution in original post

2 REPLIES 2
PURNA429
Resolver II
Resolver II

Hi @dlprentice ,

You can use "Scope" action like try catch finally blocks. Here is a sample image with TRY CATCH blocks. But in your case one more block called finally. ( I mentioned steps below )

 

TryCatch_UsingScopes.png

1) Add a Scope block and name it as "TRY".

2) Add Create List Item inside TRY Block

3) Add another Scope block and name it as "CATCH"

4) Keep your Send email inside CATCH block

5) Set the CATCH block to run only when it "has failed"

6) Add another Scope block and name it "FINALLY"

7) Add your "Mark as read or unred" and "Move email" in this finally block

8] Set this Finally block to run always ( check all options like is successful, has failed, is skipped, has timed out ).

 

If I answered your question, please mark this question as answered and if you liked my response, please give a thumbs up .

 

Thanks

Purna

Blog

dlprentice
Resolver II
Resolver II

@PURNA429 

 

I appreciate your response, but I took a bit of a simpler approach.

Screenshot 2020-11-09 090809.png

 

Screenshot 2020-11-09 090859.png

View solution in original post

Helpful resources

Announcements
MPA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

V3_PVA CAmpaign Carousel.png

Community Challenge - Giveaways!

Participate in the Power Virtual Agents Community Challenge

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

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

Top Solution Authors
Users online (1,474)