Make any query accept parameters

Many of the challenges that I face using Retool can be addressed by simply allowing to trigger(param1, params2) them using parameters. Examples:

  1. currentRow is inaccessible anywhere outside the widget in expanded row. This means that I can't use use it i.e. to fetch corresponding remote resource;
  2. S3 queries do not take in any parameters, so I can't use them as a 'transformer' to generate signed links.
    Currently, every time I face this issue, I have to create an endpoint on my backend that implements required functionality.
1 Like

Have you looked into “AdditionalScope” when triggering your queries? I don’t use S3 so not sure if it doesn’t work there, but in general AdditionalScope lets you send parameters into the queries.

1 Like

Agreed with this solution! Here's an example of using additionalScope to pass currentRow values to an S3 query:

@pavelgur Let us know if this doesn't fully solve any of your use cases

1 Like

Oh nice. It should work. Thank you!