Loop values not usable in api call body

I'm trying to use retool to automate the sending of mandril emails following a snowflake query.

I've been able to connect a single api request successfully with a JSON object as a mock datasource. Running through a loop, however, I can't call an object's values in by api body (i can successfully call {{value}} in the url parameters strangely .

Can anyone help, thanks?

A number of us are having a similar issue. The Retool team is aware but having difficulties trying to reproduce the problem on their end to make a fix.

@Tess - here's another one!

3 Likes

Hi Gavin! I shared this in the bug report. Still unsure of the root cause, but we'll keep digging and keep you updated :slight_smile:

1 Like

Tess suggested I try to recreate the loop lambda and it fixed a similar issue I was having.

For example, in your loop, pick something else (like where mine is selected to retool workflow) and then reselect it to the thing you actually want. It seems to fix whatever issue was causing it not to be able to read the {{value}}.

2 Likes

Was this ever fixed? I'm experiencing the same issue and the solution described above doesn't work for me.

Hi @Sean_Willerford, does it work when you run the loop? I wonder if it's just a linting issue.

Yes, turns out it is just a linting issue. I was having other issues that concealed that fact

Thanks for the update! I added your feedback to the bug report. :slightly_smiling_face: