Newer Version Available
ExpressionFilter
Supported Calls
create(), delete(), describeSObjects(), getDeleted(), getUpdated(), query(), retrieve(), undelete(), update(), upsert()
Fields
| Field | Details |
|---|---|
| ContextId |
|
| FilterConditionLogic |
|
| FilterDescription |
|
| Name |
|
Usage
The ExpressionFilter object is used with the IF and ELSEIF operations in a MacroInstruction. It lets you specify a logical expression that determines whether macro instructions are executed. The object indicates whether any or all conditions must be true.
To represent the conditions that are evaluated, this object uses one or more ExpressionFilterCriteria child objects. The ExpressionFilter to be used with each criteria is specified in the ExpressionFilterCriteria’s ExpressionFilterId field.
For example, to represent the following conditional statement, the ExpressionFilter object specifies the FilterConditionLogic field as 1 AND 2, where 1 and 2 are ExpressionFilterCriteria objects. In this example, condition 1 is Case.Status EQUALS New, and condition 2 is Case.Origin EQUALS Phone.
1IF (Case.Status EQUALS New) AND (Case.Origin EQUALS Phone)
2 Select Email QuickAction
3 Set Subject…
4 Set To…
5 Set Body…
6 Submit
7ENDIF