var x = 5;
return x * 2;
Because I need to reference the table.changeset array in the body and pass that as a param to the JS function. I suppose it could be done, but why does JS not work directly in the body, is it a bug?
I will try your idea, thanks!
Your idea does not work, although I successfully create a JS query (called it query17) I cannot reference it in the body of my REST API request as again I am told that there is an error in my JS syntax
Just put the js that creates your body in js query17 and return it.
Then use query17.value in your rest api body.
Trigger your rest api query from query17 using js or on succes event handler.
You’re now trying to trigger query17 from the rest query and passing values to it.