Hi, I have a sub form where I’m storing the data into a variable root.members.
If I access this variable using ${root.members} it works and I can see the list of values.
However, when I create a script task and try to retrieve the value like so:
var members = execution.getVariable(“root.members”);
The members variable is empty.
Here’s an example of what root.members looks like:
[
{
member:false,
memberId:“ID123”,
email:"exampleEmail@gmail.com",
userInfo:{firstName:“name”,lastName:“lastname}
},
{
member:true,
memberId:“ID444”,
email:"example@gmail.com”,
userInfo:{firstName:“name”,lastName:"lastname}
}
]
It’s an array of objects and each object has a nested userInfo object.