Explore more
...
Scenarios
Variables
Scenario variables
2min
{{scenario singular}} variables are useful when you need to reuse the same information multiple times they make {{scenario plural lowercase}} easier to manage and maintain to use {{scenario singular lowercase}} variables, use the set variable or set multiple variable tools in your {{scenario singular lowercase}} if you need to access the defined variable(s) in a different route than where they were set, use the get variable or get multiple variable tools create a {{scenario singular lowercase}} variable you can create {{scenario singular lowercase}} variables in your {{scenario singular lowercase}} click the tool icon on the scenario builder toolbar to select the set variable tool you can also click the giant plus in your canvas to select tools < set variable to set multiple variables at once, select the set multiple variables tool fill in the following information field description variable name this field is mandatory the name is the identifier of the variable variable value enter the value for your variable you can use letters, digits, spaces, and special characters variable lifetime select the lifetime of your variable one cycle one execution if you are using the set multiple variables tool, repeat this for each variable click save to save your variable example send an email with weather conditions for a selected city in this example, we use the set variable module to select a city, retrieve weather information for the city, and use the set multiple variables and get multiple variables modules to send the information in an email to a team member scenario variables example in your {{scenario singular lowercase}} , click the tool icon on the scenario builder toolbar to select the set variable tool you can also click the giant plus in your canvas to select tools < set variable in the variable name field, enter city for this example, we have set the variable value to paris click save add a router in the first route at the top, add a weather module in the i want to enter a location by field, select cities in the city field, map the value to the city variable that you set in step 1 click save after the weather module in the first route, add a set multiple variables module add two variables status mapped to the status value from the weather module description mapped ot the description value from the weather module click save in the second route at the bottom, add a get multiple variables module to retrieve the information from the previously set variables for variable name 1 , enter status for variable name 2 , enter description click save note that this step is not necessary if you are not using a router in this example, we've chosen to split the scenario into two routes to demonstrate both the set mutliple variables and get multiple variables modules after the get multiple variables module in the second route, add an email > send an email to a team member module and create a connection in the to field, select the member of your team you want to send the email to in the subject field, enter a relevant subject in the content field, enter the text of your email, mapping the city , status , and description variables you can use html tags click save click run once to test your scenario the person you selected in the email module receives an email like this