Follow Up Outcome Controller
All about the endpoints
Endpoints
| METHOD | API ENDPOINT | FUNCTION |
|---|---|---|
| POST | /v1/open/followupoutcome | getEnvironment() |
createFollowupoutcome()
- When the api is hit, the flow goes to
followupservice.createFollowupOutcome()and gets callback id, incident id and follow up type id. - If callback id is not null and greater than 0 , then callback task and incident are fetched using
crudservice.getObject ()and if followup type is not null and is disconnected (1003) then the no. of disconnected is incremented accordingly else if the follow up type is not null and is no answer (1001) then the no.of noanswer is incremented accordingly - If the FollowupOutcomeResponse message is null or empty then the follow up outcome is fetched using
crudService.getObject(), with the follow up outcome details followuptask, incident and callbacktask is created using ‘crudService.create()’ and response message “Followup Outcome Created!” is returned.