Newer Version Available

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

Next Best Action, Strategy Recommendations

Execute a strategy.
Resource
1/connect/recommendation-strategies/strategyName/recommendations
Available version
45.0
Requires Chatter
No
HTTP methods
POST
Request body for POST
Root XML tag
<nbaStrategyInput>
JSON example
1{
2   "strategyContext": {
3      "key1": "val1",
4      "key2": "val2"
5   },
6   "contextRecordId": "a0lB0000001G2nFIAS",
7   "maxResults": 5
8}
Properties
Name Type Description Required or Optional Available Version
contextRecordId String ID of the context record. For example, if the next best action is on a case detail page, the ID of the case. Optional 45.0
maxResults Integer Maximum number of results. Valid values are from 1 to 25. The default is 3. Optional 45.0
strategyContext Map<String, String> Variable and value mappings for the strategy. Optional 45.0
debugTrace Boolean Specifies whether to return trace and debug information in the response (true) or not (false). If unspecified, the default is false. Optional 45.0
Request parameters for POST
Parameter Name Type Description Required or Optional Available Version
contextRecordId String ID of the context record. For example, if the next best action is on a case detail page, the ID of the case. Optional 45.0
maxResults Integer Maximum number of results. Valid values are from 1 to 25. The default is 3. Optional 45.0
debugTrace Boolean Specifies whether to return trace and debug information in the response (true) or not (false). If unspecified, the default is false. Optional 45.0
Response body for POST
Next Best Action Recommendations