Skip to main content

I am using workflow Automator alert module for some automation. part of it supposed to use a GET request to get a list of requesters. I can narrow down the result to always return 1 requester, but the JSON body will always send requesters in an array. I need to use the requester ID in the next node in a POST web request but using placeholders in the body of the request causes the body to be sent empty regardless of the rest. when i enclose it with “” it works correctly but sends the requester ID as a string, and i need it as a integer. I’ve tried using liquid filters like this:

{{P1.root.requesters.requesters_object.id[0]}}
{{P1.root.requesters.requesters_object[0].id}}

{{P1.root.requesters.requesters_object.id | first}}

{{P1.root.requesters.requesters_object.id | sort: “,” | first}}

when I use the same placeholder to add a note to the alert, it works, but it fails in the body of a web request. 

 

I also tried editing the JSON Parser to output ID as a number and not an array of numbers but didn’t work. 

Join the Community or User Group to Participate in this Discussion