Decision Table Definitions (PATCH)

Update a decision table definition associated with a decision table.
Resource
/connect/business-rules/decision-table/definitions/${decisionTableId}
Resource Example
https://yourInstance.salesforce.com/services/data/v63.0/connect/business-rules/decision-table/definitions/0lDxx00000002Ur
Available version
58.0
Requires Chatter
No
HTTP methods
PATCH
JSON example
{
   "setupName":"Product Qualificiation eligibility",
   "fullName":"ProductQualificationEligibility",
   "description":"Eligiblity of Products using Qualification Rules",
   "usageType":"ProductEligibility",
   "sourceType":"SingleSobject",
   "sourceObject":"AccountFeed",
   "status":"Draft",
   "decisionResultPolicy":"UniqueValues",
   "doesConsiderNullValue": true,
   "collectOperator":"Count",
   "conditionType":"Any",
   "conditionCriteria":"1 OR 2 OR 3",
   "parameters":[
      {
         "fieldName":"IsDeleted",
         "usage":"INPUT",
         "operator":"Equals",
         "sequence":"1"
      },
      {
         "fieldName":"Id",
         "usage":"INPUT",
         "operator":"Equals",
         "sequence":"2"
      },
      {
         "fieldName":"Title",
         "usage":"INPUT",
         "operator":"Equals",
         "sequence":"3"
      },
      {
         "fieldName":"CreatedById",
         "usage":"OUTPUT"
      }
   ]
}
Request body for PATCH
Properties
Name Type Description Required or Optional Available Version
collectOperator String Operator to apply a filter to outputs. Valid values are:
  • Count
  • Maximum
  • Minimum
  • None
  • Sum
Optional 58.0
condition​Criteria String Custom logic applied on the decision table columns to decide how the input fields are processed. Optional

Required when the condition type is Custom.

58.0
conditionType String Condition logic for input fields. Valid values are:
  • All
  • Any
  • Custom
Optional 58.0
description String Description of the decision table. Optional 58.0
decision​Result​Policy String Results policy to filter results of the decision table. Valid values are:
  • AnyValue
  • CollectOperator—For internal use only
  • FirstMatch
  • OutputOrder
  • Priority—For internal use only
  • RuleOrder—For internal use only
  • UniqueValues—For internal use only
Optional 58.0
doesConsider​NullValue Boolean Indicates whether a column that has a null value is considered for lookup (true) or not (false). The default value is false. Optional 60.0
fullName String Unique name of the rule definition. Required 58.0
isSet​Collect​Operator Boolean For internal use only.

Indicates whether the collectOperator is enabled (true) or not (false).

Optional 58.0
isSet​Condition​Criteria Boolean For internal use only.

Indicates whether the conditionCriteria field is enabled (true) or not (false).

Optional 58.0
isSet​Condition​Type Boolean For internal use only.

Indicates whether the conditionType field is enabled (true) or not (false).

Optional 58.0
isSet​Description Boolean For internal use only.

Indicates whether the description field is enabled (true) or not (false).

Optional 58.0
isSet​Decision​ResultPolicy Boolean For internal use only.

Indicates whether the DecisionResultPolicy field is enabled (true) or not (false).

Optional 58.0
isSetFullName Boolean For internal use only.

Indicates whether the FullName field is enabled (true) or not (false).

Optional 58.0
isSetParameters Boolean For internal use only. Indicates whether the parameters field is enabled (true) or not (false). Optional 58.0
isSetSetupName Boolean For internal use only.

Indicates whether the setupName field is enabled (true) or not (false).

Optional 58.0
isSet​Source​conditionLogic Boolean For internal use only.

Indicates whether the sourceConditionLogic field is enabled (true) or not (false).

Optional 58.0
isSet​Source​Criteria Boolean For internal use only.

Indicates whether the sourceCriteria field is enabled (true) or not (false).

Optional 58.0
isSet​Source​Object Boolean For internal use only.

Indicates whether the sourceObject field is enabled (true) or not (false).

Optional 58.0
isSet​Source​Type Boolean For internal use only.

Indicates whether the sourceType is enabled (true) or not (false).

Optional 58.0
isSetType Boolean For internal use only.

Indicates whether the type field is enabled (true) or not (false).

Optional 58.0
isSetUsageType Boolean For internal use only.

Indicates whether the UsageType field is enabled (true) or not (false).

Optional 58.0
parameters Decision Table Parameter Input[] Array of input and output fields for the decision table. Optional 58.0
setupName String Name of the decision table. Required 58.0
source​condition​Logic String Custom logic to filter the decision table rows. Optional 58.0
sourceCriteria Decision Table Source Criteria Input[] Output array representation of source filters for the decision table rows, such as, fieldName, operators, valueType, and more. Optional 58.0
sourceObject String Object containing business rules for the decision table to read. Required 58.0
sourceType String Type of source to obtain decision table data. Valid values are:
  • CsvUpload
  • MultipleSobjects
  • SingleSobject
Required 58.0
status String Status of the decision table. Valid values are:
  • ActivationInProgress
  • ActivationInProgress
  • Draft
  • Inactive
Required 58.0
type String Type of the decision table. Valid values are:
  • HighVolume
  • LowVolume
Optional 58.0
usageType String Process type that uses the decision table. Valid values are:
  • Pricing
  • ProductEligibility
Optional 58.0
Response body for PATCH
Decision Table Output