Newer Version Available

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

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
Formats
JSON
HTTP Methods
GET, POST
Authentication
Authorization: Bearer token

Inputs

Input Details
decisionTable​ApiName
Type
string
Description
Required. API name of an active decision table that you want to refresh.
isIncremental
Type
boolean
Description
Specifies 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.

Outputs

Output Details
errorMessage
Type
string
Description
Error message to indicate why the request wasn't successful.
status
Type
string
Description
Indicates 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      "isIncremental": true
6    }
7  ]
8}

Sample Response

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