Workflow: Define Variable json: cannot unmarshal string into Go struct field MutativeOperatorInput.variables of type definition.Variables

Problem

I want to save the displayNames from the Action “Get List of Identities” in a variable, I tried to do it in following way:
<{
“name”: “TeamArray”,
“description”: “”,
“transforms”: ,
“variableA.$”: “{{$.getListOfIdentities.identities[*].attributes.displayName}}”
}/>

The error we get in testing the workflow is:

Diagnosis

Seems that it has an JSON parsing error?

Solution

[Replace this text with the solution to the problem you are addressing]

You cannot save Array as a variable. There is no capability of variable to store array data. The value you are trying to save is a list/array of data. Variable only support single string at this time, not array of data.

Hi Kapil,
Thanks, is that on the roadmap or not covered at all currently?

At this point, there is no other updates from Sailpoint side. But only primitive data is supported by variable at this point.

1 Like

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.