We are evaluating ReTool and I got stuck into an interesting situation: I want to populate a table using a RestAPI resource, but the URL query string parameters should be dynamically calculated, such that I append the needed query string parameters Only when needed.
For this, I did a JS Transformer where I dynamically calculated a variable and I return it, representing the query string. Then, the transformer is used with the curly braces syntax directly in my query.
For the query, I append the transformer value:
But when running the query I get the following error
Could not find resource for full path: [...]path%3Ffilter=2"}
suggesting there is some encoding going on here, as visible in the preview as well:
Changing the query to
makes no change (note: I cannot add a second picture since I am a new user, but its the preview of the transformer value)
What is happening? It feels like there is some encoding of the value passed to the query that cannot be controlled.