Tag Archives: conditions

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: Trigger flow when Lead is created and Lead Source Type is ā€œTrade Showā€ Trigger flow when Lead is created and Flag is ā€œYesā€. Trigger Flow when Lead is created, Lead Source Type is ā€œTrade Showā€ AND Flag is ā€œYesā€. 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ā€ Click on Ellipsis (…) –> Click on Settings Go to Trigger Conditions and Click on ā€œ+Addā€ Add condition. @equals(triggerBody()?[‘leadsourcecode’],7) NOTE: ā€œLead Sourceā€ is an option set field add value of that option to check. After adding condition click on Done. 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))

SEARCH :

FOLLOW CLOUDFRONTS BLOG :

FOLLOW CLOUDFRONTS BLOG :


Secured By miniOrange