10,853
edits
Line 347: | Line 347: | ||
|} | |} | ||
== Using variables == | |||
Rules support two types of variables: | |||
* Variable: You can use the variable later in the same script. | |||
* Shared: You can use shared variable even in other scripts within the same user interface component. | |||
Use the buttons '''Variable''' and '''Shared''' to declare a variable and assign an initial value to it. | |||
# Select a type: String, Boolean, Integer, Float, Decimal, Date Time, Lookup, Entity, Picklist, StringList | |||
# Name the variable, for example MyString1 | |||
# Assign an initial value to the value. | |||
{| class="wikitable" | |||
| Integer || MyNumber1 || TimeDifference || Entity.createdon || Entity.modifiedon || minutes | |||
|- | |||
| String || MyString1 || Concat || Email me at || Entity.emailaddress1 | |||
|} | |||
Once the variable has been initialized, you can use it other steps and conditions. | |||
{| class="wikitable" | |||
| Entity.websiteurl || Assign || MyString2 | |||
|} | |||
== See also == | == See also == |