Perform Contract Action

Perform actions on a contract based on its status.

This action is available in API version 61.0 and later.

Supported REST HTTP Methods 

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

Where XX.X is the latest API version.

Formats: JSON, XML

HTTP Methods: POST

Authentication: Authorization: Bearer TOKEN

Where TOKEN is a variable.

Inputs 

InputTypeDescription
actionDataStringJSON expression that contains the additional data necessary to perform the action on the contract.
actionNameIDRequired.
API name of the action to perform on the contract.
contractIdBooleanRequired.
ID of the contract to perform the action on.

Output 

OutputTypeDescription
contractIdStringID of the contract the action was performed on.

Usage 

Sample Input

This sample request is for the Perform Contract action.

1{
2  "contractId": "800SG00000HtyxxYAB",
3  "actionName": "activateContract"
4  "actionData": "{\"testField\": \"testVal\"}"
5}
Sample Output

This sample response is for the Perform Contract action.

1{
2  "contractId": [
3    "800SB00000KLbHxxA1"
4  ]
5}