ReasonCodeLookup

Class finesse.restservices.ReasonCodeLookup

Extends finesse.restservices.RestBase Common Parameters

Retrieves the ReasonCode using the reason code value and category provided by the user.

Method

lookupReasonCode(handlers, reasonCodeValue, reasonCodeCategory)

Performs a GET operation against the Cisco Finesse server, for looking up the reason code with its reason code value, and category.

Example

Code Snippet
Copynew finesse.restservices.ReasonCodeLookup().lookupReasonCode({
    success: _handleReasonCodeGet,
    error: _handleReasonCodeGetError
}, '32762', 'NOT_READY');
_handleReasonCodeGet(_reasonCode) {
    var id = _reasonCode.id;
    var uri = _reasonCode.uri;
    var label = _reasonCode.label;
    ...
}

Parameters

Name

Type

Description

Required

handlers

Object

An object containing the handlers for the request.

For more information on handlers, see Request Handlers.

Yes

reasonCodeValue

String

The lookup code for the reasonCode value.

Yes

reasonCodeCategory

String

The lookup category for the reasonCode. The possible values are NOT_READY and LOGOUT.

Yes