add role needs array
This commit is contained in:
parent
e4690e8cf5
commit
b0f341d61a
|
@ -47,6 +47,15 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"name": "jq_1",
|
||||||
|
"taskReferenceName": "to_array",
|
||||||
|
"type": "JSON_JQ_TRANSFORM",
|
||||||
|
"inputParameters": {
|
||||||
|
"role": "${workflow.input.role}",
|
||||||
|
"queryExpression" : ".role"
|
||||||
|
}
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"name" : "pyrest",
|
"name" : "pyrest",
|
||||||
"type" : "SIMPLE",
|
"type" : "SIMPLE",
|
||||||
|
@ -58,7 +67,7 @@
|
||||||
"Authorization" : "Bearer ${authorize.output.body.access_token}",
|
"Authorization" : "Bearer ${authorize.output.body.access_token}",
|
||||||
"Content-type" : "application/json"
|
"Content-type" : "application/json"
|
||||||
},
|
},
|
||||||
"body" : "${retrieve_member_role.output.body}"
|
"body" : "${to_array.output.resultList}"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|
Loading…
Reference in New Issue