Newer Version Available
FlowStageRelation
Represents a relationship between a paused flow interview and its stages. When
a flow interview is paused, Salesforce creates a FlowStageRelation record for each stage
that’s set to the $Flow.CurrentStage or $Flow.ActiveStages global variable. Available in API version
43.0 and later.
Supported Calls
delete(), describeSObjects(), getDeleted(), getUpdated(), query(), retrieve(), undelete()
Fields
| Field | Details |
|---|---|
| Name |
|
| ParentId |
|
| StageLabel |
|
| StageOrder |
|
| StageType |
|
Usage
You can use the FlowStageRelation records to represent the paused interview and its active and current stages visually.
For example, an Online Purchasing flow interview starts with several stages in
$Flow.ActiveStages. If the interview is paused, Salesforce creates a FlowStageRelation
record for each stage in $Flow.ActiveStages or $Flow.CurrentStage.
| StageLabel | StageType | StageOrder |
|---|---|---|
| Review Cart | Active | 0 |
| Shipping Details | Active | 1 |
| Billing Details | Active | 2 |
| Payment Details | Active | 3 |
| Order Confirmation | Active | 4 |
| Shipping Details | Current | 1 |