Decision Table Refresh Action

Refresh business rules for an active decision table.

For more information about refreshing an active decision table, see Refresh Decision Tables in Flows in Salesforce Help. This object is available in API version 51.0 and later.

Supported REST HTTP Methods 

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

Where XX.X is the latest API version.

Formats: JSON

HTTP Methods: GET, POST

Authentication: Authorization: Bearer TOKEN

Where TOKEN is a variable.

Inputs 

InputTypeDescription
decisionTable​ApiNamestringRequired. API name of an active decision table that you want to refresh.
isDecisionTable​IncrementalbooleanSpecifies whether to trigger an incremental refresh (true) or not (false). If set to true, this field triggers an update only on changes made to the recent sObject data instead of performing a full refresh.
The default value is false.
This feature requires a full refresh to be performed initially. After a full refresh is done, you can proceed with incremental refreshes. However, if the changes exceed 2,000 records, the incremental refresh fails. In such cases, a full refresh is necessary to update the Decision Table with the latest sObject data.
An incremental refresh updates LastIncrementalSyncDate only. A full refresh updates LastRefreshedDate and LastSyncDate.

Outputs 

OutputTypeDescription
errorMessagestringError message to indicate why the request wasn’t successful.
statusstringIndicates whether the decision table is queued for refresh. Valid values are Queued or Failed.

Usage 

Sample Request

1{
2  "inputs": [
3    {
4      "decisionTableApiName": "Points_to_Redeem_Based_on_Product_and_Order_Channel",
5      "isDecisionTableIncremental": true
6    }
7  ]
8}

Sample Response

1{
2   "status":"Queued",//Queued or Failed
3   "errorMessage":"" //in case any failure
4}