Question

How to use async/wait to allow multiple, synchronous, API calls in the authorization test area of a custome app?

  • 22 October 2023
  • 0 replies
  • 91 views


I tried this methold here as i need to make muiltple API calls in the test section of the Auothorization area in a custom app. However…

1.  When I create a new connection the two api calls run twice or duplicate themselves but when then hit the test connection after the initial authenticaton has taken place they run just once each. How do I prevent the duplicate calls when a user is making a new connection?

2.  As soon as i introduce multiple calls the meta data stops saving to the connection as a label for the connection? How do you fix this?

Zapier also flags the provided code in in the from post below as missing before statments on line 24,26, and 33 in their editor so not sure if that is an issue?

Tried both of these approaches below. Any advice appreciated.

 

 


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