Hi,
I have a process model like below
I have the data in each of the variable like below.
Name Type Multiple Value
-------------------- ---------- ---------- ------------
listOfSubmitters Text Yes [addedby:AA1234]; [addedby:AA1235]; [addedby:AA1236]
I need the value of each "addedby". When I am trying to make a loop and get each addedby like below. I am NOT getting required output.
a!localVariables(local!lst: a!forEach(pv!listOfSubmitters,property(fv!item, "addedby", null)),local!lst[pv!totalCountOfSubmitters])
Please advise if I have to declare the process variable with any other type instead of "Text".
Or, let me know if anything wrong in above code.
Thanks in advance.
Discussion posts and replies are publicly visible
The images you added are way to small to be able to see anything.
Your variable is a list of text values. Is there a specific reason you did that? A type list of map might be a better fit. Then you can just do
pv!listOfSubmitters.addedby
to get these values.