Salesforce admins: Urgent action required!

Rules editor: Difference between revisions

Jump to navigation Jump to search
Line 481: Line 481:
== Using variables ==
== Using variables ==


Rules support two types of variables:
Rules support two types of user-defined variables:
* Variable: You can use the variable later in the same script.
* 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.
* Shared: You can use a 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.
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
# Select a type: String, Boolean, Integer, Float, Decimal, Date Time, Lookup, Entity, Picklist, StringList.
# Name the variable, for example MyString1
# Name the variable, for example MyString1.
# Assign an initial value to the value.
# Assign an initial value to the value.


Navigation menu