Newer Version Available

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

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}