Multiple Get Identity Actions in Workflow Loop

Hi Everyone,

I am trying to use 2 get identity actions inside the Workflow loop where, first get identity action input getting from $.loop.loopInput.reviewer.id now in second get identity action I need to obtained first identity manager details so, as a input I have configured $.getIdentity.managerRef.id.

Now this Workflow giving me below error when I am testing it.

{
“loopOutput”: {*
“failureItems”: [*
{*
“errorMessage”: “expected top-level JSON object in string, got array without attribute wrapper (type: Error Parsing Activity Output, retryable: false)”,* “payload”: null*
}
],*
“successfulItems”: *
}*
}*

I have attached workflow screenshot for reference.

Note: Loop input is list of certification campaigns

Any valuable inputs will be helpful.

Thanks in advance !

Can you check enclosing $.getIdentity.managerRef.id with {{ $.getIdentity.managerRef.id}} ?

I tried but it says invalid JSON Path expression.

Can you check the JSON output from getIdentity step and validate the manager is referenced properly and check how manager and it’s identity id is being populated? Use the same path for manager id in next step to fetch manager.

Hi @Aditya_Veldi, Since you are using curly braces to get the manager id then input type should be “Choose Value” not “Choose Variable”.

Either remove the curly braces or change the type to Choose Value.

1 Like

Thank you @kdfreeman, the identity that I am testing doesn’t have manager now tested with identity that have manager, working as expected.

for get identity 1 action in the workflow screenshot the configuration as in below screenshot