Set Business Outcome With Personal Callback
    • Dark
      Light

    Set Business Outcome With Personal Callback

    • Dark
      Light

    Article summary

    Overview

    The SetBusinessOutcomeWithCallback API provides an option to set business disposition (outcome) and register a Personal Callback (PCB) request. The business outcome is used only for reporting purposes and the call is rescheduled based on the Callback request time.

    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

    SetBusinessOutcomeWithPersonalCallback

    source

    «app-name-broadcasting-this-message»

    data

    N/A

    Data Parameters

    Parameter

    Mandatory

    Data Type

    Description

    callid

    Yes

    String

    The Call ID generated by the application.

    AccountNumber

    Yes

    String

    The LCM Key.

    OutcomeId

    Yes

    Number

    The outcome ID for the callback outcome.

    BusinessOutcome

    Yes

    Number

    The business outcome to be set.

    StartDate

    Yes

    String

    The callback start date in DD/MM/YYYY format.

    EndDate

    Yes

    String

    The callback end date in DD/MM/YYYY format.

    StartTime

    Yes

    String

    The callback start time in HH:mm (24-h) format.

    EndTime

    Yes

    String

    The callback end time in HH:mm (24-h) format.

    CallbackModeID

    Yes

    Number

    The mode ID for which the callback is set.

    UserID

    Yes

    String

    The agent ID.

    AgentComments

    Yes

    String

    The comments entered by the agent.

    LeadScore

    Yes

    Number

    The lead score for the contact.

    TargetAmount

    Yes

    Number

    The target achieved.

    Response Parameters

    Value

    channel

    LCM

    topic

    Webservice

    subtopic

    SetBusinessOutcomeWithPersonalCallbackResult

    message

    «JSON Object»

    Message Parameters

    Parameter

    Mandatory

    Data Type

    Description

    callid

    Yes

    String

    The call ID generated by the application.

    response

    Yes

    JSON Object

    The response data.

    Response Parameters

    success

    Yes

    Boolean

    The business outcome update status.

    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": "SetBusinessOutcomeWithPersonalCallback",
        "data": 
        {
            "callid": "12345",
            "AccountNumber": "5|3|1|0|0|44|1",
            "OutcomeId": 4,
            "BusinessOutcome": 101,
            "StartDate": "13/01/2021",
            "EndDate": "13/01/2021",
            "StartTime": "13:45",
            "EndTime": "13:45",
            "CallbackModeID": 1,
            "UserID": "testagent",
            "AgentComments": "Test comment",
            "LeadScore": 0,
            "TargetAmount": 0
        }
    } 

    Sample Response

    {
        "channel": "LCM",
        "topic": "WebService",
        "subtopic": "SetBusinessOutcomeWithPersonalCallbackResult",
        "message": 
        {
            "callid": "12345",
            "response": 
            {
                "success": true
            }
        }
    }


    Was this article helpful?

    Changing your password will log you out immediately. Use the new password to log back in.
    First name must have atleast 2 characters. Numbers and special characters are not allowed.
    Last name must have atleast 1 characters. Numbers and special characters are not allowed.
    Enter a valid email
    Enter a valid password
    Your profile has been successfully updated.