add role needs array

This commit is contained in:
Marco Lettere 2021-06-04 10:49:24 +02:00
parent e4690e8cf5
commit b0f341d61a
1 changed files with 10 additions and 1 deletions

View File

@ -46,6 +46,15 @@
"Accept" : "application/json"
}
}
},
{
"name": "jq_1",
"taskReferenceName": "to_array",
"type": "JSON_JQ_TRANSFORM",
"inputParameters": {
"role": "${workflow.input.role}",
"queryExpression" : ".role"
}
},
{
"name" : "pyrest",
@ -58,7 +67,7 @@
"Authorization" : "Bearer ${authorize.output.body.access_token}",
"Content-type" : "application/json"
},
"body" : "${retrieve_member_role.output.body}"
"body" : "${to_array.output.resultList}"
}
}
]