I have an API call that needs to fail once and supply a CSRF token, and then I can use that token in a retry set to a x-csrf-token token.
I'm attempting to migrate a Budibase automation to a Retool workflow. In Budibase, there's the idea of dynamic variables and REST requests retrying once on failure, filling in things like x-csrf-token with a dynamic variable if the failed request supplies it via dynamic variables.
It seemed like I should've just been able to grab the token via query.metadata.headers but the failed request and query doesn't seem to provide headers or any metadata at all.
Is there a work around?