- DarkLight
Get Business Outcome By Parent
- DarkLight
Overview
The GetBusinessOutcomebyParent API provides the list of secondary Dispositions for a parent (primary) outcome. Values listed are dependent on the parameter selected in the parent outcome.
Pre-requisite
The Agent must be on an active call or logged in to the application.
Sequence Diagram

Message Structure
Request Parameters | Value |
|---|---|
channel | LCM |
topic | Webservice |
subtopic | GetBusinessOutcomeParent |
source | «app-name-broadcasting-this-message» |
data | «JSON Object» |
Data Parameters
Parameter | Mandatory | Data Type | Description |
|---|---|---|---|
callid | Yes | String | Call ID. |
AccountNumber | Yes | String | LCM Key. |
ParentBusinessOutcomeId | Yes | String | Parent Business Outcome ID. |
Response Parameters | Value |
|---|---|
channel | LCM |
topic | Webservice |
subtopic | BusinessOutcomeParent |
message | «JSON Object» |
Message Parameters
Parameter | Mandatory | Data Type | Description |
|---|---|---|---|
callid | Yes | String | Call ID. |
response | Yes | JSON Array | Business Outcome data. |
Response Parameters | |||
OutcomeID | Yes | String | The business outcome ID. |
Description | Yes | String | The business outcome description. |
Campaign ID | Yes | String | The campaign ID. |
Lead Score | NA | NA | NA |
ParentID | NA | NA | NA |
Possible Error Cases
Error Type | Actual Error | Message |
|---|---|---|
WS_Error | Callid is empty | Invalid Call ID. |
WS_Error | Invalid Call ID:<call_id> | Invalid Call ID. |
Sample Request
{
"channel": "LCM",
"topic": "WebService",
"subtopic": "GetBusinessOutcomeParent",
"data":
{
"callid": "12345",
"AccountNumber": "5|3|1|0|0|44|1",
"ParentBusinessOutcomeId": "1"
}
}Sample Response
{
"channel": "LCM",
"topic": "WebService",
"subtopic": "BusinessOutcomeParent",
"message":
{
"callid": "12345",
"response":
[
{
"OutComeID": "101",
"Description": "Payment Done",
"CampaignID": "1",
"LeadScore": "0",
"ParentID": null
},
{
"OutComeID": "102",
"Description": "Payment Failure",
"CampaignID": "1",
"LeadScore": "0",
"ParentID": null
}
]
}
}