Question

How to create a global variable or global constant?

  • 25 February 2023
  • 3 replies
  • 705 views

Userlevel 3

I have values that I need to store and be accessible to different zaps.  For instance, email addresses, form URLs and other things that may need to change.  I don’t want to update dozens of places across numerous zaps, I want to update in 1 place.

This is coding 101 basics… but, I can’t see how to accomplish this in Zapier??

Thanks.


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

3 replies

Userlevel 7
Badge +14

Hi @Trying_Hard 

Good question.

Try using Storage: https://zapier.com/apps/storage/integrations#triggers-and-actions

 

Similarly you can use GSheets or Airtable to act as a lookup table:

 

Userlevel 3

Actually ya, I figured out a hack-ish way yesterday using GSheets to store key/val pairs and then parse the config into a usable list of variables using Python.  Seems to work, but it uses 2 task executions in each Zap just to load a basic config. 

The Storage by Zapier… how can I load/manage the configuration outside of Zaps? I don’t want to run Zaps to update a config… seems a bit ridiculous.  What trigger to use in such case anyway?

It is beyond ridiculous that I need to do such things just to access some global vars/config… 

Userlevel 7
Badge +14

@Trying_Hard 

The Storage by Zapier… how can I load/manage the configuration outside of Zaps? I don’t want to run Zaps to update a config… seems a bit ridiculous.  What trigger to use in such case anyway?

You can use a Zap that is NOT turned ON to set the Storage variable values.

There is also an API available for Storage.

 

It is beyond ridiculous that I need to do such things just to access some global vars/config… 

Zapier has not had global variables.

You can submit feedback and feature requests via a ticket to Zapier Support to be logged: https://zapier.com/app/get-help