Nested IF Expression in Cloud Flow

Posted On May 19, 2021 by Rilsina Pegado Posted in 

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()

Example:

Compose 
• Inputs 
Inputs 
'Inputs' is required. 
+ New step 
boolean, 
valuelfFalse: any) 
Add dynamic content 
valuelfTrue: 
any ' 
. Required. A boolean value that determines which 
. value the expression should return. 
Save 
[ Returns a specified value based on whether the 
expression resulted in true or false 
L Äf(D

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.

When a row is added, modified or deleted 
INPUTS 
Change type 
1 
Table name 
account 
Scope 
body 
"statecode": e, 
" statecode label": "Active" 
namel'; "XYZ", 
open s 
"modifiedon": " 
"open revenue_5tate": I, 
Show raw inputs 
S how raw outputs

Action:

Compose 
Inputs 
Found))

Output:

Compose 
INPUTS 
Inputs 
XYZ Data 
XYZ Data 
Show raw inputs 
S raw Outputs

Share Story :

SEARCH BLOGS :

FOLLOW CLOUDFRONTS BLOG :


Secured By miniOrange