Note: This release is in preview. Features described here don’t become generally available until the latest general availability date that Salesforce announces for this release. Before then, and where features are noted as beta, pilot, or developer preview, we can’t guarantee general availability within any particular time frame or at all. Make your purchase decisions only on the basis of generally available products and features.

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.
isDecisionTable​Incremental
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.

An incremental refresh updates LastIncrementalSyncDate only. A full refresh updates LastRefreshedDate and LastSyncDate.

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      "isDecisionTableIncremental": true
6    }
7  ]
8}

Sample Response

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