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

excel cell value (3 options) send email based on condition

I have an MS Form feeding an excel sheet.  I have one column called "Theatre" where the region choices in the form are Americas, APAC or EMEA.

 

I added a column in the excel called "Flow Triggered" where the choice is Yes or No to avoid a loop scenario.

 

The aim:

 

  1. If cell = Americas, send email to person A and change Flow Triggered cell to Yes.
  2. If cell = APAC, send email to person B and change Flow Triggered cell to Yes.
  3. If cell = EMEA, send email to person C and change Flow Triggered cell to Yes.

DarrenPlant_0-1600176042548.png

Added a delay before calling a "list rows in a table" action.

 

Then added a "Apply to each" control

DarrenPlant_1-1600176264257.png

 

The "Update a row" above in the "If Yes" based on condition should change the row cell to "Yes" for the column "Flow Triggered".

 

Issues: The update a row works, but it did not deliver the flow adaptive cards........

 

Can someone please advise my logic so I can avoid any loops and so it works properly!

1 ACCEPTED SOLUTION

Accepted Solutions
v-litu-msft
Community Support
Community Support

Hi @DarrenPlant,

 

I read your Flow logic, and it won't have a loop. To make it work more perfect and make Flow more graceful, you could consider using the Switch control instead of three condition action to determine the "Theatre", for example:

Screenshot 2020-09-16 142833.jpg

It will go to the corresponding branch according to the Theatre value.

 

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

2 REPLIES 2
v-litu-msft
Community Support
Community Support

Hi @DarrenPlant,

 

I read your Flow logic, and it won't have a loop. To make it work more perfect and make Flow more graceful, you could consider using the Switch control instead of three condition action to determine the "Theatre", for example:

Screenshot 2020-09-16 142833.jpg

It will go to the corresponding branch according to the Theatre value.

 

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.

Thankyou @v-litu-msft this helped me 😎

 

DarrenPlant_0-1600328402802.png

 

Helpful resources

Announcements
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.

Power automate tips 768x460 v2.png

Restore a Deleted Flow

Did you know that you could restore a deleted flow? Check out this helpful article.

Microsoft Build 768x460.png

Microsoft Build is May 24-26. Have you registered yet?

Come together to explore latest innovations in code and application development—and gain insights from experts from around the world.

May UG Leader Call Carousel 768x460.png

What difference can a User Group make for you?

At the monthly call, connect with other leaders and find out how community makes your experience even better.

Users online (3,056)