Hello,
II have a workflow that is triggered when provisioning is completed on 2 sources to enable account if it is disabled, so i make an http request with the API /v3/search with the following body: {"indices":["identities"],"query":{"query":"(@accounts(accountId: \"{{$.loop.loopInput.accountId}}\" AND disabled:true) AND \"{{$.trigger.recipient.id}}\")"}}
Hi,
I checked without the loop and static value, the search query works fine but when i add the loop i get an error. I don’t thinks it’s related to authentification.
I am parsing {{$.loop.loopInput.accountId}} that should be accessible and i removed everythin in the loop context and still get the error. And the loop is based on accountRequests array in the trigger.
Hi,
Sure this is what i added : $.trigger.accountRequests
I have nothing in context.
And my JSON body for the search post is : {"indices":["identities"],"query":{"query":"(@accounts(accountId: \"{{$.loop.loopInput.accountId}}\" AND disabled:true))"}}
It can send the accountId in email. I think some issue in parsing only. Add the account ID into a variable inside the loop and pass it into the HTTPRequest. First check if the accountId can get successfully or not.
When i add the accountId in a variable, the variable take the value of it but not in the http request. Is it because my trigger is “Provision completed” ?