cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
lumberjacklurch
Post Patron
Post Patron

Multiple values for a variable in flow

Hi,

I'm trying to set up a notification flow.  I am pulling an item from a requests list which has a dropdown/combo column.  I have initialized a variable in the flow to capture the value of the column in a request, but the value could be one of three possibilities.  My problem is, the wording of the outgoing email depends on what the value of the variable is.  Is there an equivolent of an if/ifelse/else loop in flow?  So basically: if the value is x, send this email; if the value is y, send THIS email; if the value is z, send THAT email.

 

Thanks.

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
ScottShearer
Super User
Super User

@lumberjacklurch:

 

You have a number of ways of approaching this issue.

 

First, you could use a switch statement/action.  A switch statement allows you to specify an action to take based on a variety values.  So, if respose is X do this, if the response is Y do that and if the reponse is Z then do somethiong else.  You'll find the Switch action grouped under the Control actions.

 

You could use three separate conditions/if statements sequentially or as parallel actions.

 

Finally, depending on the wording of the emails, you could have a single email.  Within the email you could use a series of if statements in the text to generate the text that you want.  You'll need to have an if statement within an if statement for this and it could get complicated....  In addition, unless the emails are basically the same with a few words differenmt this is not a realistic option.

 

Let me know if you need an example.

 

If this addresses your issue, please mark your post as Solved.

 

Scott

 

 

 

 

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

Scott

View solution in original post

2 REPLIES 2
ScottShearer
Super User
Super User

@lumberjacklurch:

 

You have a number of ways of approaching this issue.

 

First, you could use a switch statement/action.  A switch statement allows you to specify an action to take based on a variety values.  So, if respose is X do this, if the response is Y do that and if the reponse is Z then do somethiong else.  You'll find the Switch action grouped under the Control actions.

 

You could use three separate conditions/if statements sequentially or as parallel actions.

 

Finally, depending on the wording of the emails, you could have a single email.  Within the email you could use a series of if statements in the text to generate the text that you want.  You'll need to have an if statement within an if statement for this and it could get complicated....  In addition, unless the emails are basically the same with a few words differenmt this is not a realistic option.

 

Let me know if you need an example.

 

If this addresses your issue, please mark your post as Solved.

 

Scott

 

 

 

 

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

Scott

@ScottShearer,

Using the Switch control fit perfectly.  Thanks!

Helpful resources

Announcements
 WHAT’S NEXT AT MICROSOFT IGNITE 2022

WHAT’S NEXT AT MICROSOFT IGNITE 2022

Explore the latest innovations, learn from product experts and partners, level up your skillset, and create connections from around the world.

Register for a Free Workshop.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

September Events 2022

Check out all of these events

Attend in person or online, there are incredible conferences and events happening all throughout the month of September.

Users online (2,909)