Newer Version Available

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

High Velocity Sales Actions

Manage your High Velocity Sales Cadences using invocable actions.

High Velocity Sales must be set up in your org. The user must have permissions to use sales cadences.

Supported REST HTTP Methods

URIs
Assign Target To Sales Cadence:
/services/data/vXX.X/actions/standard/assignTargetToSalesCadence
Remove Target From Sales Cadence:
/services/data/vXX.X/actions/standard/removeTargetFromSalesCadence
Pause Sales Cadence Tracker:
/services/data/vXX.X/actions/standard/pauseSalesCadenceTracker
Resume Sales Cadence Tracker:
/services/data/vXX.X/actions/standard/resumeSalesCadenceTracker
Change Sales Cadence Target Assignee:
/services/data/vXX.X/actions/standard/changeSalesCadenceTargetAssignee
Modify Cadence Tracker Attributes:
/services/data/vXX.X/actions/standard/modifyCadenceTrackerAttributes
Send Sales Cadence Event:
/services/data/vXX.X/actions/standard/sendSalesCadenceEvent
Select Template For Sales Cadence Step Tracker:
/services/data/vXX.X/actions/standard/selectTemplateForSalesCadenceStepTracker
Formats
JSON, XML
HTTP Methods
GET, HEAD, POST
Authentication
Authorization: Bearer token
Other Information
Error Response Types

Assign Target To Sales Cadence

Available in API version 45.0.

URI: /services/data/vXX.X/actions/standard/assignTargetToSalesCadence

Table 1. Inputs
Input Details
salesCadenceNameOrId
Type
string
Description
Required. The name or ID of the sales cadence.
targetId
Type
ID
Description
Required. The ID of the contact, a lead, or person account to add to the sales cadence.
userId
Type
ID
Description
The ID of the user designated as the target assignee. The target assignee is the sales rep who performs the sales cadence steps for the target.
relatedToId
Type
ID
Description
The ID of the target’s related opportunity. This field is only available when Relate Opportunities to Sales Cadences is turned on in High Velocity Sales Setup.
Sample Input

The following code sample adds a target to a sales cadence:

1{
2  "inputs" : [ {
3    "salesCadenceNameOrId" : "77Cxx0000004CXEEA2",
4    "targetId" : "00Qxx000002TRI2EAO"
5    }] 
6}

Remove Target From Sales Cadence

Available in API version 45.0.

URI: /services/data/vXX.X/actions/standard/removeTargetFromSalesCadence

Table 2. Inputs
Input Details
targetId
Type
ID
Description
Required. The ID of the contact, a lead, or person account to remove from the sales cadence.
completionReasonCode
Type
string
Description
Required. The completion reason code indicates how the target competed the sales cadence. Valid value is:
  • ManuallyRemoved
completionDisposition
Type
string
Description
The disposition of the completed sales cadence tracker. Valid values are:
  • Success
  • Customer Engaged
  • Customer Connected
  • Contact Later
  • No Response
  • Not Interested
  • Disqualified
  • Bad Data
  • Duplicate
relatedToId
Type
ID
Description
The ID of the target’s related opportunity. This field is only available when Relate Opportunities to Sales Cadences is turned on in High Velocity Sales Setup.
relatedToAttributionType
Type
string
Description
The attribution type of the target’s related opportunity. This field is only available when Relate Opportunities to Sales Cadences is turned on in High Velocity Sales Setup. Valid values are:
  • Activation
  • Maturation
Sample Input

The following code sample removes a target from a sales cadence:

1{
2  "inputs" : [ {
3    "completionReasonCode" : "ManuallyRemoved",
4    "targetId" : "00Qxx000002TRI2EAO"
5    }]
6}

Pause Sales Cadence Tracker

Pause a target in its sales cadence. Available in API version 50.0.

URI: /services/data/vXX.X/actions/standard/pauseSalesCadenceTracker

Table 3. Inputs
Input Details
targetId
Type
ID
Description
Required. The ID of the contact, a lead, or person account to pause.
Sample Input

The following code sample pauses a target in its sales cadence:

1{
2  "inputs" : [ {
3    "targetId" : "00Qxx000002TRI2EAO"
4    }]
5}

Resume Sales Cadence Tracker

Resume a target in its sales cadence. Available in API version 50.0.

URI: /services/data/vXX.X/actions/standard/resumeSalesCadenceTracker

Table 4. Inputs
Input Details
targetId
Type
ID
Description
Required. The ID of the contact, a lead, or person account to pause.
Sample Input

The following code sample resumes a target in its sales cadence:

1{
2  "inputs" : [ {
3    "targetId" : "00Qxx000002TRI2EAO"
4    }]
5}

Change Sales Cadence Target Assignee

Available in API version 50.0.

URI: /services/data/vXX.X/actions/standard/changeSalesCadenceTargetAssignee

Table 5. Inputs
Input Details
targetId
Type
ID
Description
Required. The ID of the contact, a lead, or person account to pause.
userId
Type
ID
Description
The ID of the user designated as the target assignee. The target assignee is the sales rep who performs the sales cadence steps for the target.
Sample Input

The following code changes a target’s assignee:

1{
2  "inputs" : [ {
3    "targetId" : "00Qxx000002TRI2EAO",
4    "userId" : "005R0000000eg3zIAA",
5    }] 
6}

Modify Cadence Tracker Attributes

Available in API version 51.0.

URI: /services/data/vXX.X/actions/standard/modifyCadenceTrackerAttributes

Table 6. Inputs
Input Details
actionCadenceTrackerId
Type
ID
Description
Required. The ID of the sales cadence tracker to modify.
completionDisposition
Type
string
Description
The disposition of the completed sales cadence tracker. Valid values are:
  • Success
  • Customer Engaged
  • Customer Connected
  • Contact Later
  • No Response
  • Not Interested
  • Disqualified
  • Bad Data
  • Duplicate
relatedToId
Type
ID
Description
The ID of the target’s related opportunity. This field is only available when Relate Opportunities to Sales Cadences is turned on in High Velocity Sales Setup.
relatedToAttributionType
Type
string
Description
The attribution type of the target’s related opportunity. This field is only available when Relate Opportunities to Sales Cadences is turned on in High Velocity Sales Setup. Valid values are:
  • Activation
  • Maturation
Sample Input

The following code modifies a sales cadence tracker with a Completion Disposition of “Customer Engaged”, a related opportunity, and an Attribution Type of “Activation”:

1{
2  "inputs" : [ {
3    "actionCadenceTrackerId" : "0qBR00000005CXvMAM",
4    "completionDisposition" : "Customer Engaged",
5    "relatedToId" : "006R0000003DNpJIAW",
6    "relatedToAttributionType" : "Activation"
7    }] 
8}

Send Sales Cadence Event

Available in API version 52.0.

Send an event to a sales cadence, such as skipping or manually completing a step.

URI: /services/data/vXX.X/actions/standard/sendSalesCadenceEvent

Table 7. Inputs
Input Details
recordId
Type
ID
Description
Required. The ID of the sales cadence step tracker to send the event to.
eventType
Type
string
Description
Required. The type of event to send. Valid values are:
  • Skip
  • Manual Complete
Sample Input

The following code sends a Manual Complete event to a sales cadence step tracker:

1{
2  "inputs" : [ {
3    "recordId" : "8HFR00000005WyqOAE",
4    "eventType" : "Manual Complete"
5    }] 
6}

Select Template For Sales Cadence Step Tracker

Retrieve the email template or call script from a sales cadence step or sales cadence step variant (if variant testing) to be used while executing a step for a particular target. Available in API version 53.0.

URI: /services/data/vXX.X/actions/standard/selectTemplateForSalesCadenceStepTracker

Table 8. Inputs
Input Details
stepTrackerId
Type
ID
Description
Required. The ID of the sales cadence step tracker.
Table 9. Outputs
Output Details
output
Type
JSON
Description
The email template or call script ID and its related split percentage.
error
Type
string
Description
The error message returned when the action fails.
Sample Input

The following code retrieves the email template or call script for two sales cadence steps:

1{"inputs": [ {
2        "stepTrackerId" : "8HFR00000006LE8OAM"
3    },
4    {
5        "stepTrackerId" : "8HFR00000006LEDOA2"
6    }]
7}
Sample Output

The following code sample illustrates a response after one success and one failure.

1[ {
2  "actionName" : "selectTemplateForSalesCadenceStepTracker",
3  "errors" : null,
4  "isSuccess" : true,
5  "outputValues" : {
6    "output" : {
7      "SplitPercentage" : 10.0,
8      "TemplateId" : "00XR0000000UOtZMAW"
9    }
10  }
11}, {
12  "actionName" : "selectTemplateForSalesCadenceStepTracker",
13  "errors" : [ {
14    "statusCode" : "UNKNOWN_EXCEPTION",
15    "message" : "No template was found.",
16    "fields" : [ ]
17  } ],
18  "isSuccess" : false,
19  "outputValues" : {
20    "error" : "No template was found."
21  }
22} ]

Error Response Types

High Velocity Sales actions can respond with success or errors.

If any type of error occurs with an action, the isSuccess field is false.

This example illustrates a success response for the Assign Target To Sales Cadence action.

1[ {
2         "actionName" : "assignTargetToSalesCadence",
3         "isSuccess" : true
4         } ]

This example illustrates an error caused by sending invalid input values to the Assign Target To Sales Cadence action.

1[ {
2         "actionName" : "assignTargetToSalesCadence",
3         "errors" : [ {
4         "statusCode" : "UNKNOWN_EXCEPTION",
5         "message" : "The object needs to be a valid sales cadence entity.",
6         "fields" : [ ]
7         } ],
8         "isSuccess" : false,
9         "outputValues" : {
10         "error" : "The object needs to be a valid sales cadence entity."
11         }
12         } ]