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.

Recommendation Decisions

Save visit or task recommendation decisions.
Resource
1services/data/vXX.X/connect/visit/recommendations/recommendation-decisions
Available version
51.0
Requires Chatter
No
HTTP methods
POST
Request body for POST
JSON example
1{  "recommendationDecision": "Accept",
2  "recommendationIds": ["9Tuxx0000004Eu0CAE"],
3}
Properties
Name Type Description Required or Optional Available Version
recommendation​Decision String The unique identifier of a recommendation decision that is taken for recommendations. Required 51.0
recommendation​DecisionParams Map<String, String> The unique identifier of the other parameters that are relevant to process the decision taken. Optional 51.0
recommendationIds String[] The unique identifier of the recommendations for which the recommendation decision is taken. Required 51.0
Response body for POST
Recommendation Decisions Output
Sample Response Body
1{
2  "recommendationDecisionDetails" : [ {
3    "message" : "Visit cannot be created in the past date",
4    "isSuccess" : false,
5    "recommendationId" : "9Tuxx0000004Eu0CAE"
6  },
7  {
8    "message" : "",
9    "isSuccess" : true,
10    "recommendationId" : "9Tuxx0000004Eu0CAE"
11  }
12  ],
13  "status" : {
14    "code" : "200",
15    "message" : "70 out of 80 visits are scheduled."
16    “totalRecommendations” : 80
17    “successCount: : 70
18  }
19}