cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
ericonline
Community Champion
Community Champion

CONFIGURE RUN AFTER: How to get the correct Selected Response from Email With Options?

Hello,

Need some help with this one. Can't use Flow Approvals due to Attachments.

Scenario:

  • Trigger: When an item is created or modified in Sharepoint List
  • Action1: Get item
  • Action2: Send Email with Options + Timeout set to 1 Day (P1D)
  • Action3: Send Email with Options + Configure Run After set to "Timeout"
  • Action4: Update item in Sharepoint List
    • Need to grab the "Selected Response" from the email that was acknowledged
  • Action5: Use the "Selected Response" in a Switch statement to take action

Example:

image.png

Any ideas on how to get the Selected Response from the correct email?

2 ACCEPTED SOLUTIONS

Accepted Solutions
Pstork1
Dual Super User III
Dual Super User III

The way i've done this is by creating two parallel branches that run after Action 2.  One is set to run if Action 2 successful and the other if it times out. Have both branches record the selected response in a variable. Then have them come back together at Action 4 and use the variable to set the response.



-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

View solution in original post

v-alzhan-msft
Community Support
Community Support

Hi @ericonline ,

 

You should create different action following the different "Send an email with options" action.

Please refer to screenshot below to create the flow:

1.png 

 

Best regards,

Alice       

 

Community Support Team _ Alice Zhang
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

5 REPLIES 5
Pstork1
Dual Super User III
Dual Super User III

The way i've done this is by creating two parallel branches that run after Action 2.  One is set to run if Action 2 successful and the other if it times out. Have both branches record the selected response in a variable. Then have them come back together at Action 4 and use the variable to set the response.



-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

View solution in original post

v-alzhan-msft
Community Support
Community Support

Hi @ericonline ,

 

You should create different action following the different "Send an email with options" action.

Please refer to screenshot below to create the flow:

1.png 

 

Best regards,

Alice       

 

Community Support Team _ Alice Zhang
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

Hi @Pstork1 and @v-alzhan-msft,
I'm implementing your suggestions and need to ask some further questions:

  • This solution causes two duplicate paths in the Flow. If I have another 20 actions to perform, I now have 40 actions to create/maintain.
  • Is there not a way to simply determine if one of the Selected Reponses IsBlank()/empty() then keep things single-threaded?

Thank you

Pstork1
Dual Super User III
Dual Super User III

Once you have handled one of the two different responses you can then exit the parallel branches and continue on with a single thread.  That's why you store the response in a variable, so you can use the same variable later no matter which branch set it. If you look at the following screenshot you can see how the two seperate branches come back together after I've handled the specific actions that are different depending on whether the timeout occurs or not. Note: the first action after the parallel branches nees to be set to run after for both successful and skipped.

screenshot.png



-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.
ericonline
Community Champion
Community Champion

Thank you @Pstork1 and @v-alzhan-msft . Here is the final solution I went with:

  1. Action set to configure-run-after
  2. Action set to succesful
  3. Set the same variable regardless of path chosen
  4. Set Switch configure-run-after to BOTH "successful" and "skipped" for BOTH set-variable actions
    1. Also set the Switch value to variable dynamic content

image.png

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Welcome Super Users.jpg

Super User Season 2

Congratulations, the new Super User Season 2 for 2021 has started!

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.

Users online (2,396)