Vlad
Vlad

Reputation: 287

Bundle context and variable propagation

I'm looking for a way of propagating information between the authentication script I've setup in my Zapier app and the different actions/triggers I have.

For now it would be a URL defined in a custom zapier form when authenticating a user that I could spread across all the actions/triggers scripts to make the calls properly using a context variable somewhere (not existing in bundle apparently).

I guess the environment global var is not the way as it's not bound to a specific zap but for all usages of the app.

Thank you for your help!

Upvotes: 1

Views: 282

Answers (1)

xavdid
xavdid

Reputation: 5262

David here, from the Zapier Platform team. Great question!

If you're looking for data that will be unique to each user, but consistent across each of that user's zaps, you're looking for auth fields! They're filled out when a user authenticates (enters their password, connects oauth, etc) and are accessible to all zaps that use that auth via bundle.authData. A user might have multiple auths (in the case of multiple accounts with your service), and each one will have its own version of the auth fields.

Hope this helps. ​Let me know if you've got any other questions!

Upvotes: 1

Related Questions