Hi, I have a workflow where I'm reading data from SQL server and manipulating to get what I need - user ids. Then I need to pass these user ids to an API call to delete users. Now I have tested this API call on postman and it works without any issue. I need to pass a JSON in the body:
{"userIds":[1234]}
This works no problem in Postman (but there I can select JSON as the format). But when I create this using the formula tool and I checked using Browse that it looks exactly like this and pass this as Payload using "Take Query String/Body from Field" (see 1.png). I have tried passing it in various ways using Formula tool to format it like JSON, but it fails with "400: Bad Request"
I also tried using the JSON Build to build the JSON but that either creates it in this format if I keep that ID as Double: {"userIds":1234} (so without the square brackets but I need the square brackets)
If I try to keep that ID as string it creates it in this format: {"userIds":"[1234]"}, but I don't want the quotes around the id. I've tried created using JSON Parse and then using a formula tool to add square brackets or remove quotes but none of that works and returns a Bad Request.
Any ideas on how to approach this?