Hi,
Facing below error while executing the Expression rule -
Expression evaluation error in rule '<Rule Name>' (called by rule '<Rule Name>') at function 'reduce' [line 10]invalid index: Cannot index property 'status' of type String into type list) (Data Outputs)
The expression rule code is
cast( typeof(ri!cdt), reduce( a!update(data: _, index: _, value: _), ri!cdt, merge(ri!fields, ri!newValues) ))
Please help what is missing.
Thanks in advance
Discussion posts and replies are publicly visible
Could you share what exactly you want to achieve it?
This means that there is no field called "status" in the provided list value. Could it be that you pass a list of CDTs into that expression, instead of a single CDT item?
Can you check the output of this expression and confirm if the fields from this expression's output are available in the cdt
nirupamaanuragt said:merge(ri!fields, ri!newValues)
sure checking