Hello,
I’m trying to build a workflow to send notification/escalation emails when a campaign is Overdue. Upon the deadline, I get a list of Reviewers who have yet to complete their review, and then I loop through the list and send an email to them and their manager. The initial Loop for the first notice worked perfectly. The list of reviewers is an array from $.hTTPRequest.body.*.reviewer, and the input for the first step (Get Identity) is $.loop.loopinput.id.
For the second notice, I wait for two days, check that the campaign is still not complete, and then I gather a new list of reviewers who have overdue decisions. When trying to do the second loop, it fails to carry out any of the steps in the loop.
I’m getting this error:
{"error":"json: cannot unmarshal array into Go value of type map[string]interface {} (type: Activity Output Error, retryable: false): json: cannot unmarshal array into Go value of type map[string]interface {}","workflowId":"ea807108-7250-4c54-b780-bf7e9dc0a523-1"}
The second loop gets it’s input from $.hTTPRequest1.body.*.reviewer, and the input for the first step (Get Identity) is $.loop1.loopinput.id
The actual input array looks like this:
"input": [
{
"email": "[email protected]",
"id": "720e9ee28f5c45c6bc21eb302b9e543e",
"name": "Joe.Smith_admin",
"type": "IDENTITY"
},
{
"email": "[email protected]",
"id": "2c9180867f89182d017f990c123705cb",
"name": "John.Doe_admin",
"type": "IDENTITY"
}
]
For some reason the first loop accepts the input, but the second doesn’t? Does anyone know if multiple loops in one workflow are not supported? Am I missing something?
First Loop:
Second Loop: