Class finesse.restservices.ReasonCodeLookup
Utility class for looking up a ReasonCode using the code and category.
Defined in: finesse.js.
Constructor Attributes | Constructor Name and Description |
---|---|
Method Attributes | Method Name and Description |
---|---|
lookupReasonCode(handlers, reasonCodeValue, reasonCodeCategory)
Performs a GET against the Finesse server, for looking up the reason code
with its reason code value, and category.
|
Method Detail
lookupReasonCode(handlers, reasonCodeValue, reasonCodeCategory)
Performs a GET against the Finesse server, for looking up the reason code
with its reason code value, and category.
Note that there is no return value; use the success handler to process a
valid return.
new 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:
- {finesse.interfaces.RequestHandlers} handlers
- An object containing the handlers for the request
- {String} reasonCodeValue
- The code for the reason code to lookup
- {String} reasonCodeCategory
- The category for the reason code to lookup. The possible values are "NOT_READY" and "LOGOUT".