Skip to main content
All CollectionsTools
Global variables and how they are created
Global variables and how they are created

This article explains what global variables are, some benefits that you can gain from using variables, and how you create global variables.

Betty Blocks avatar
Written by Betty Blocks
Updated over a week ago

Warning!

This is a legacy document. The features described below are only usable within the classic-generation environment.

Currently, Betty Blocks offers faster and more advanced options that are available in next-gen. Before you start working on some new features in your application, consider doing it using the next-gen version. Good luck!

What are global variables?

Global variables can be used throughout your application. These are useful when a specific value is used for multiple actions and is subject to change.

When do you use variables?

You can use a variable as a key for a webservice, for example, an email address from which you send mail as part of a mail action process, or for applying a signature on an email template form.

How do you create variables?

Note: We are constantly updating the Betty Blocks platform to increase the ease-of-use of our platform. Functionality that is currently still managed in our previous IDE may also be available in our updated platform. You can send a message using the support button where you need to check the current status when applying certain settings or building certain functionality for your application.

You can also refer to the Product changes for a list of updates to the platform.

You can create variables as follows. Open the Tools menu (A) and select Global variables. Any existing variables are displayed. In this example, the list is empty. Click on the New (E) button. Select the Kind (F) for the variable from the pull-down menu. Complete the Name and Text (G) details for the variable.

When you have applied the required details, press the Save button to save the variable. The variable now displays in the variable list and you can select it for inclusion as part of an action step.

Note: As shown in the below, creating global variables functionality is provided in our previous environment. You may need to reauthenticate when you log into the previous environment.

Tip! Apply a name that is easily recognizable from the variable list.

Variables and sandboxes

Global variable values are applied across all levels of your application from sandboxes to a live environment. Unique values can only be applied using custom configurations. The configuration can then be used as a variable in the global variable. Where used, separate values need to be applied in each environment in

which you want to test variables.

For more information about Sandboxes, please refer to What are Sandboxes.

Did this answer your question?