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 

NameTypeDescriptionRequired or OptionalAvailable Version
recommendation​DecisionStringThe unique identifier of a recommendation decision that is taken for recommendations.Required51.0
recommendation​DecisionParamsMap<String, String>The unique identifier of the other parameters that are relevant to process the decision taken.Optional51.0
recommendationIdsString[]The unique identifier of the recommendations for which the recommendation decision is taken.Required51.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}