Hi,
I want to call 2 API requests in the same trigger
and I want to include the response of the 2 APIs in the result
Is it possible to have 2 API requests made in the same Zap?
Best answer by jesseBest answer by jesse
Hey
That is possible to do. It looks like you are already using code mode. You will need to write javascript to chain those requests and promise handlers together. You can find more information on how to make HTTP requests here: https://github.com/zapier/zapier-platform/blob/master/packages/cli/README.md#making-http-requests (The documentation is for the CLI platform but you can use the same in Code mode).
Just to be upfront I want to let you know that we don't offer support on how to structure your code and how to write Javascript. Code Mode is an advanced feature and we'd recommend using it if you have some experience in writing JS Code. But we're more than happy to answer questions around specific parts of our docs or help troubleshoot any platform errors you may encounter.
Due to this being Code-related, I am going to move this post into the “Code and Webhooks” category to get the right sets of eyes on this, should you have any follow-up questions.
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.