Question

Data not setting properly when using code by Zapier

  • 7 March 2024
  • 1 reply
  • 10 views

Userlevel 1

I'm using Zapier to connect Ticket Tailor with HubSpot. The response I get from Ticket Tailor when this event occurs returns the student information under an object whose parameter depends on the course description, which can be an object of up to 20 positions. 

To account for all possible cases (where there is a purchase with 20 students), I have assigned all possible values to studentData like this:

 

 

However, when testing with the response of a purchase that includes 3 final students, it only takes the first one. I don't see any logic since the path indicated for student 2 and 3 are correct:

  • Custom Attendee Questions MIDE Y Venceras 2 Answer
  • Custom Attendee Questions MIDE Y Venceras 3 Answer

But as seen in the image, it does not set them. Even you can see that the option is there when I click on the field: 


Why does this happen?

Thanks in advance!


This post has been closed for comments. Please create a new post if you need help or have a question about this topic.

1 reply

Userlevel 7
Badge +14

Hi @LIN3S 

We will need to see screenshots with how the code in the Code step is configured in order have full context.