Hi,Having the below scenario,Having 2 different object lists as below. Now A type of object having 1,2,3 fields, similarly for B object list as well.A - 1,2,3
B - 1,2,3
Now in the first for each the Items will be A object list. foreach(
items: ri!A,
expression: foreach(
items: ri!B,
expression: {
If(fv!item[B.2] = fv!item[A.2],
"Hi",
"Hello"
)
}
)Here, I am getting an error on below line for referencing the fv!item of A's object list in second for each.fv!item[B.2] = fv!item[A.2]Can anyone help me out this? Thanks in advance.
Discussion posts and replies are publicly visible
Sure. Wrap the inner loop into an a!localVariables storing the outer item into a local. You then use this local to reference the outer item inside the inner loop.
And, to make your code more readable: