Trigger Power Automate on Condition | CloudFronts

Trigger Power Automate on Condition

Introduction

This blog explains how we can trigger Power Automate based on the required condition.

Suppose you have a requirement where you want your flow should get trigger based on some condition then you can check condition on “Trigger” itself rather than adding a new action to check condition.

Use Case:

  1. Trigger flow when Lead is created and Lead Source Type is “Trade Show”
  2. Trigger flow when Lead is created and Flag is “Yes”.
  3. Trigger Flow when Lead is created, Lead Source Type is “Trade Show” AND Flag is “Yes”.
  4. Trigger Flow when Lead is created, Lead Source Type is “Trade Show” OR Flag is “Yes”.

 

Steps to be followed:

  • Trigger flow when Lead is created and Lead Source Type is “Trade Show”
  1. Click on Ellipsis (…) –> Click on Settings
  2. Go to Trigger Conditions and Click on “+Add”
  3. Add condition.
    @equals(triggerBody()?['leadsourcecode'],7)

    NOTE: “Lead Source” is an option set field add value of that option to check.

  4. After adding condition click on Done.
  5. Test your flow.

 

  • Trigger flow when Lead is created and Flag is “Yes”.

    • Repeat step number 1 to 3.
    • NOTE: Flag is the “Two Option” field for two option set fields use true or false in condition.
@equals(triggerBody()?['cf_flag'],true)

 

 

 

  • Trigger Flow when Lead is created, Lead Source Type is “Trade Show” AND Flag is “Yes”.

    • Repeat step number 1 to 3.
    • AND Condition

      @and(equals(triggerBody()?['cf_flag'],true), equals(triggerBody()?['leadsourcecode'],7))

 

  • Trigger Flow when Lead is created, Lead Source Type is “Trade Show” OR Flag is “Yes”.

    • Repeat step number 1 to 3.
    • OR Condition
@or(equals(triggerBody()?['cf_flag'],true), equals(triggerBody()?['leadsourcecode'],7))

Share Story :

By continuing to use the site, you agree to the use of cookies. more information

The cookie settings on this website are set to "allow cookies" to give you the best browsing experience possible. If you continue to use this website without changing your cookie settings or you click "Accept" below then you are consenting to this.

Close