I have a REST query with variables:
I wanted to trigger this from a JS query and provide values for those variables. I first tried to do this using additionalScope
hoping that values provided here would be mapped to those variables.
However, I could see that the variables were still undefined
.
The "trick" is that, while the values in additionalScope
are not automatically provided as variable values, you can extract the values from additionalScope
and provide those as the value of the variables yourself

I'd love it if we could trigger queries with variables without the duplicative work here. At the very least, it would be great to see this documented more clearly with respect to accessing additionalScope
outside of the context of a JS query!