web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Power Automate
Unanswered

If Then Expression?

(0) ShareShare
ReportReport
Posted on by 24

Does anyone know if IF/THEN expressions are possible in flows? I have a form with a dropdown allowing people to pick a facility. If they pick a certain facility, I'd like my manager column in my list to populate with the associated manager. 

 

Example, If Location equals "TEST" then "Jane Doe"

 

I work in tableau, so these expressions are foreign to me. Thanks for any help!!

Categories:
I have the same question (0)
  • wskinnermctc Profile Picture
    6,519 Moderator on at
    Re: If Then Expression?

    Here is a full list of expressions for power automate: 

    https://learn.microsoft.com/en-us/azure/logic-apps/workflow-definition-language-functions-reference 

     

    There is an if() expression to use in power automate.

     

    Your example would be something like:

    if(equals({formresponse},'TEST'),'Jane Doe','None')

     

    This is using the equals() expression inside of the if() expression.

     

    However, for the form response in power automate, you might want to use something like a Condition which checks the output and then directs the flow. But it is up to you.

     

    Control ConditionControl Condition

  • martii20 Profile Picture
    27 on at
    Re: If Then Expression?

    I wanted something similar in my flow, but I ended up using a VLOOKUP function to accomplish this. If you are collecting responses in an Excel file by adding a new row each time, this could work for you. 

     

    I created a separate reference table with the list of facilities and managers:

    martii20_0-1693937490406.png

     

    Then I created a table that collects the responses and added a column that uses the lookup function to reference the first table. "Form ID" and "Facility" are collected in the Form and added to this table using "Add a row into a table" with Excel. The "VLOOKUP" column should automatically update with each new row. 

    martii20_1-1693937594525.png

     

  • jessicamclaugh Profile Picture
    24 on at
    Re: If Then Expression?

    I completely forgot about the Conditions option, thank you!

  • jessicamclaugh Profile Picture
    24 on at
    Re: If Then Expression?

    Hmmm, I'm collecting the data in a list. I'm not sure if I can use vlookup as an option there, but I like the idea. I will check it out, thanks!

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 462 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 456 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard