Nested IF Expression in Cloud Flow

 Introduction

We have been using Action-Condition for IF in Cloud flow, while this is easy to use, it ends up making your flow bigger in size. Instead if we just need to validate conditions,  we can use expression to do the same checks.

 

Solution:

Add a compose action>> Go to Expression>> Add if()

Graphical user interface, application, Word

Description automatically generated

 

 

Example:

If(empty(field),'No Data', 'Data found')

 

Nested IF Example:

If(empty(field),'No Data', if(equals(field,'xyz'),' XYZ Data', 'Data Found'))

 

Input: Account with Name XYZ is created.

Graphical user interface, text, application, email

Description automatically generated

Action:

Graphical user interface, application

Description automatically generated

 

Output:

Graphical user interface, text, application, email, Teams

Description automatically generated

 


Comments

Popular posts from this blog

The supplied reference link is invalid Error in Cloudflows

Retrieve Email Recipients (TO, CC, BCC) in Cloud Flow

Set Dynamic Recipients of D365 Email in Power Automate