Question

Why is the data merged in a sigle field?

  • 26 September 2023
  • 7 replies
  • 24 views

Hi!

I have multiple steps in my zap, One converts data into a json.

However when I try to use it both destinations are in the same field and not considered as 2 different entities.

Any idea why?

Thanks!

 

Frederic


7 replies

Userlevel 7
Badge +14

Hi @fred1601 

Good question.

In this example, the “destinations” are an array of objects.

Zapier pre-parses the data into individual data points to use in following Zap steps.

We would need to see fuller screenshots with how your Zap step 5 is configured.

If you need to iterate thru each Destination, then you can use the Looping app: https://zapier.com/apps/looping/help

 

Hi Troy,

I tried and it only looped once when they are 2 occurrences. It just took the first destination. Any idea why?

Thanks,

 

Frederic

Hi Troy,

In fact the next action is sending to a private API, it would I guess send several times which is not the goal.

I’m a bit puzzled ;)

Userlevel 7
Badge +14

@fred1601 

If you are manually testing, then only the first loop iteration is processed.

Help: https://help.zapier.com/hc/en-us/articles/8496106701453-Loop-your-Zap-actions#create-a-loop-from-line-items-0-2

 

I tested it automatically and live. But it did not loop. I have a trip json with one destination and 2 flights. If I put the loop before my custom API app, I guess it would loop and send twice the trip? Anyway for now it does not loop….

Userlevel 7
Badge +14

@fred1601 

In the Zap Runs each loop will be it’s own Zap Run.

We would need to see updated screenshots with how your Looping step is configured.

I found the solution: the issue was not in the zap but in the custom app json formating. Thank you for your help.

Reply