Skip to main content

Hello,

 

I’d like to show the users a drop down list when they are setting their connection and based on their selection to set two “global variables” each will contain a URL.

I tried to

  • set the value to an attribute on process.env 
  • set the value to an attribute on bundle.authData
  • created computed fields and set the value during the authentication phase

 

none of these worked for me.

What’s the best way to achieve it?

 

Thank you,

I think that this one is going to be a little tricky for us to solve in the community so I’ve escalated this to the Support Team. Someone will be in touch via email as soon as possible!


If a dev has a similar question, here’s what our Support Team said:

 

Computed fields should be the way to go here...

 

It looks like you are setting both env variables and computed fields - you won't need to do both, the authData properties will continue to persist for each connection a user creates in Zapier.

You should also just need to compute these authData properties in the Access Token method. You can use inputData properties to generate your Authorization URL, and the saved authData properties for your Refresh token, and anywhere else in the app you need them.