How to pass value from each iteration as a ruleinput value for an another object

a!localVariable(

local!array: rule!integration2,

a!forEach(items: rule!integration2, 

expression: 'type!{urn:com:appian:types:TEST}TEST_CDT'(

name: index(split(index(index(rule!integration1(input: fv!item)), 1), 2), "/), "name"),

email: index(split(index(index(rule!integration1(input: fv!item)), 1), 2), "/), "email")

)

I want to perform the calculations in one local variable and pass fv!items from each iteration in the expression to that local variable and then simple index the values and fill in the values in the CDT.

My idea is:

a!localVariable(

local!calculation: index(split(index(index(rule!integration1), 1), 2), "/), 1),

local!array: rule!integration2,

a!forEach(items: rule!integration2, 

expression: 'type!{urn:com:appian:types:TEST}TEST_CDT'(

name: index(local!calculation(intVal: fv!item), "name"),

email: index(local!calculation(intVal: fv!item), "email"),

)

)

But intVal is a rule input for integartion1 object. What is the most efficient way to achieve this.

  Discussion posts and replies are publicly visible

Parents Reply Children
No Data