Note: This release is in preview. Features described here don’t become generally available until the latest general availability date that Salesforce announces for this release. Before then, and where features are noted as beta, pilot, or developer preview, we can’t guarantee general availability within any particular time frame or at all. Make your purchase decisions only on the basis of generally available products and features.
Metadata Wizard Expression
Literal Value
An expression that doesn’t match the structure of the other expression types.
- Example
1"{! !(promoTemplate.Name == 'Test' || promoTemplate.Name != 'Test2') }"
2...1"{! promoTemplate.Name }"| Literal | Example | Resolves to |
| true | "{! true }" | Boolean true |
| false | "{! false }" | Boolean false |
| null | "{! null }" | null |
String Expressions
A string with a specific start and end sequence of characters ("{!" and "}").
Use these expressions to retrieve values from other Wizard Component instances by specifying the component ID of the Wizard Component instance.
- Example
1...
2{
3 "id": "myCheckboxField",
4 "type": "Checkbox",
5},
6...
7{
8 "id": "myOtherField",
9 "active": "{! myCheckboxField }",
10...Logical Expressions
An object with these three properties - left, right, and operator.
Use this expression to perform operations between different values.
- Example
1{
2 "left": <expression>
3 "operator": "equal",
4 "right" : <expression>
5}
6
7// Example
8...
9"active" : {
10 "left": "{! myCheckbox}",
11 "operator":"equal",
12 "right": true
13},
14...List of available operators:
- and
- or
- equal
- notEqual
- greaterThan
- lessThan
- greaterThanOrEqual
- lessThanOrEqual
- sum
- subtract
- multiply
- divide
Expression Variables
Additional values can also be referenced from expressions:
- _input_ → The input payload passed to the Wizard instance during its creation. Use this
variable to set default values:
- "{! _input_.Slogan }"
Identifiers for Custom, SObject, and SObject Field Labels
To get custom, sObject, and sObject field labels, use the identifiers, $Label and $SObjectType in expressions.
- Expression Syntax for a Custom Label
- {! $Label.<Label name with namespace> }
- Expression Syntax for an sObject Label
- {! $SObjectType.<SObject names with namespace>.label }
- Expression Syntax for a Field Label
- $SObjectType.<SObject names with namespace>.fields.<SObject Field with namespace>.label }
- Examples
- {! $Label.cgcloud__NPW_KPI }
- {! 'Test ' + $Label.cgcloud__NPW_KPI + ' Test' }
- {! $SObjectType.cgcloud__Promotion__c.label }
- {! $SObjectType.cgcloud__Promotion__c.pluralLabel }
- {! $SObjectType.cgcloud__Promotion__c.fields.cgcloud__Slogan__c.label }
- {! $SObjectType.cgcloud__Promotion__c.label + ' - ' + $SObjectType.cgcloud__Promotion__c.fields.cgcloud__Slogan__c.label }