Variable is Null in script task

Hi, I have a sub form where I’m storing the data into a variable root.members.
image

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.

Nevermind I found the problem, It was a variable misspelling :frowning:

1 Like