Newer Version Available
Sales Engagement Actions
Sales Engagement must be set up in your org. The user must have permissions to use cadences.
Supported REST HTTP Methods
- URIs
- Assign Target To Cadence:
- /services/data/vXX.X/actions/standard/assignTargetToSalesCadence
- Remove Target From Cadence:
- /services/data/vXX.X/actions/standard/removeTargetFromSalesCadence
- Pause Cadence Tracker:
- /services/data/vXX.X/actions/standard/pauseSalesCadenceTracker
- Resume Cadence Tracker:
- /services/data/vXX.X/actions/standard/resumeSalesCadenceTracker
- Change Cadence Target Assignee:
- /services/data/vXX.X/actions/standard/changeSalesCadenceTargetAssignee
- Modify Cadence Tracker Attributes:
- /services/data/vXX.X/actions/standard/modifyCadenceTrackerAttributes
- Send Cadence Event:
- /services/data/vXX.X/actions/standard/sendSalesCadenceEvent
- Select Template For 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 Cadence
Available in API version 45.0.
URI: /services/data/vXX.X/actions/standard/assignTargetToSalesCadence
| Input | Details |
|---|---|
| salesCadenceNameOrId |
|
| startStepNameOrId |
|
| targetId |
|
| userId |
|
| relatedToId |
|
- Sample Input
-
The following code sample adds a target to a cadence:
1{ 2 "inputs" : [ { 3 "salesCadenceNameOrId" : "77Cxx0000004CXEEA2", 4 "targetId" : "00Qxx000002TRI2EAO" 5 }] 6}
Remove Target from Cadence
Available in API version 45.0.
URI: /services/data/vXX.X/actions/standard/removeTargetFromSalesCadence
| Input | Details |
|---|---|
| targetId |
|
| completionReasonCode |
|
| completionDisposition |
|
| relatedToId |
|
| relatedToAttributionType |
|
- Sample Input
-
The following code sample removes a target from a cadence:
1{ 2 "inputs" : [ { 3 "completionReasonCode" : "ManuallyRemoved", 4 "targetId" : "00Qxx000002TRI2EAO" 5 }] 6}
Pause Cadence Tracker
Pause a target in its cadence. Available in API version 50.0.
URI: /services/data/vXX.X/actions/standard/pauseSalesCadenceTracker
| Input | Details |
|---|---|
| targetId |
|
| resumeTime |
|
- Sample Input
-
The following code sample pauses a target in its cadence:
1{ 2 "inputs" : [ { 3 "targetId" : "00Qxx000002TRI2EAO", "resumeTime" : "2021-06-15T05:30:00:521917Z" 4 }] 5}
Resume Cadence Tracker
Resume a target in its cadence. Available in API version 50.0.
URI: /services/data/vXX.X/actions/standard/resumeSalesCadenceTracker
| Input | Details |
|---|---|
| targetId |
|
- Sample Input
-
The following code sample resumes a target in its cadence:
1{ 2 "inputs" : [ { 3 "targetId" : "00Qxx000002TRI2EAO" 4 }] 5}
Change Cadence Target Assignee
Available in API version 50.0.
URI: /services/data/vXX.X/actions/standard/changeSalesCadenceTargetAssignee
| Input | Details |
|---|---|
| targetId |
|
| userId |
|
- 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
| Input | Details |
|---|---|
| actionCadenceTrackerId |
|
| completionDisposition |
|
| relatedToId |
|
| relatedToAttributionType |
|
- Sample Input
-
The following code modifies a 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 Cadence Event
Available in API version 52.0.
Send an event to a cadence, such as skipping or manually completing a step.
URI: /services/data/vXX.X/actions/standard/sendSalesCadenceEvent
| Input | Details |
|---|---|
| recordId |
|
| eventType |
|
- Sample Input
-
The following code sends a Manual Complete event to a cadence step tracker:
1{ 2 "inputs" : [ { 3 "recordId" : "8HFR00000005WyqOAE", 4 "eventType" : "Manual Complete" 5 }] 6}
Select Template for Cadence Step Tracker
Retrieve the email template or call script from a cadence step or 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
| Input | Details |
|---|---|
| stepTrackerId |
|
| Output | Details |
|---|---|
| output |
|
| error |
|
- Sample Input
-
The following code retrieves the email template or call script for two 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
Sales Engagement 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 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 Cadence action.
1[ {
2 "actionName" : "assignTargetToSalesCadence",
3 "errors" : [ {
4 "statusCode" : "UNKNOWN_EXCEPTION",
5 "message" : "The object needs to be a valid cadence entity.",
6 "fields" : [ ]
7 } ],
8 "isSuccess" : false,
9 "outputValues" : {
10 "error" : "The object needs to be a valid cadence entity."
11 }
12 } ]