Trying inbuild loop and failing

My goal Query (result multiple rows) → loop (for each row) → execute action

I had setup automation

  1. Query returns 3 rows
  2. in loop section I add either return {{data}} or {{steps.query.data}} bit show same array on preview
  3. Then i specify action from action library that calls external webhook

the problem that loop step returns array with nulls after execution and action does not show any activity. And there is no way i know to debug what is happening with each loop step.

Any hints how to do it correctly?

Hi @Mindaugas_Jankauskas,

All in all it sounds correct, but the response of the loop depends on what you’re doing in the looped action.

For example:

I have action “A” with only a “Loop Action” step. It uses [1,2,3] as data for the action that will be looped

All that action “B” does is return the received {{data}} added by 1

Now, if I execute action “A”, the result will be [2,3,4]

That means that the action you run as “Action to execute in loop” always returns null.