Newer Version Available

This content describes an older version of this product. View Latest

RecordActionDeployment

Represents a deployment that contains settings for a Guided Action List. Each deployment specifies channel defaults and actions that users can add at runtime. This type extends the Metadata metadata type and inherits its fullName field.

File Suffix and Directory Location

RecordActionDeployment values are stored in the developer_name.deployment file in the recordActionDeployments directory.

We don't recommend programmatically changing the API name of a RecordActionDeployment.

Note

Version

RecordActionDeployment is available in API version 45.0 and later.

Fields

Field Name Field Type Description
channelConfigurations RecordActionDeploymentChannel Specifies configuration settings for different channels in a Guided Action list deployment.
masterLabel string Required. Specifies the name of the deployment.
selectableItems RecordActionSelectableItem Specifies the actions available for users to add to a Guided Action List at runtime.

RecordActionDeploymentChannel

Specifies channel defaults for a Guided Action List component. The component displays channel defaults when the list is otherwise empty.

Field Name Field Type Description
channel ChannelSource (enumeration of type string) Required. Specifies the channel. Valid values are Phone, Chat, or Other.
channelItems RecordActionDefaultItem Specifies default actions for a channel and attributes for each action, such as whether the action is pinned to the list top or bottom, or whether an action is considered mandatory.
isAutopopEnabled boolean Specifies whether the first guided action in the list is launched when the record page opens. If true, the first action is launched. The default value is false.

RecordActionDefaultItem

Represents actions and attributes specified as channel defaults in a deployment.

Field Name Field Type Description
action string Required. Specifies the API name of an action. For example, the API name of a flow, such as Verify_Information.
isMandatory boolean Specifies whether the action is marked as mandatory. The default value is false.
isUiRemoveHidden boolean Specifies whether the ability to remove the guided action is hidden in the UI. The default value is false. If true, the UI hides the ability to remove the action.
position int Required. Indicates the order of the guided action among all actions associated with this record.
pinned PinnedAction (enumeration of type string) Required. Indicates whether the action is pinned to a region. Valid values are Top, Bottom, or None. The default value is None (unpinned).
type RecordActionType (enumeration of type string) Required. The type of guided action that's associated with the record. The only supported value and the default is Flow.

RecordActionSelectableItem

Specifies channel defaults for a Guided Action List component. The component displays channel defaults only when the list is otherwise empty.

Field Name Field Type Description
action string Required. Specifies the API name of an action. For example, the API name of a flow, such as Verify_Information.
type RecordActionType (enumeration of type string) Required. The type of guided action that's associated with the record. The only supported value and the default is Flow.

Declarative Metadata Sample Definition

The following is a sample of a recordActionDeployment file.

1<RecordActionDeployment xmlns="http://soap.sforce.com/2006/04/metadata">
2    <channelConfigurations>
3        <channel>Phone</channel>
4        <channelItems>
5            <action>Sample_Flow</action>
6            <isMandatory>false</isMandatory>
7            <isUiRemoveHidden>false</isUiRemoveHidden>
8            <position>1</position>
9            <pinned>Top</pinned>
10            <type>Flow</type>
11        </channelItems>
12        <channelItems>
13            <action>Another_Sample_Flow</action>
14            <isMandatory>false</isMandatory>
15            <isUiRemoveHidden>true</isUiRemoveHidden>
16            <position>2</position>
17            <pinned>Top</pinned>
18            <type>Flow</type>
19        </channelItems>
20        <isAutopopEnabled>true</isAutopopEnabled>
21    </channelConfigurations>
22    <masterLabel>Sample Deployment</masterLabel>
23    <selectableItems>
24        <action>Sample_Flow</action>
25        <type>Flow</type>
26    </selectableItems>
27    <selectableItems>
28        <action>Sample_Flow_2</action>
29        <type>Flow</type>
30    </selectableItems>
31</RecordActionDeployment>

The following is an example package.xml that references the previous definition.

1<?xml version="1.0" encoding="UTF-8"?>
2<Package xmlns="http://soap.sforce.com/2006/04/metadata">
3    <fullName>SecondTest</fullName>
4    <types>
5        <members>Sample_Flow</members>
6        <members>Another_Sample_Flow</members>
7        <members>Sample_Flow_2</members>
8        <name>Flow</name>
9    </types>
10    <types>
11        <members>SampleDeployment</members>
12        <name>RecordActionDeployment</name>
13    </types>
14    <version>45.0</version>
15</Package>