/mcpDescription Name The type of icon in the digital channel. For more information, see Cisco Common Desktop Stock Icon Names with Image, on page 441. ICON_TYPE The color of the icon based on the current state of the digital channel. STATE_STATUS The operation status of the digital channel. STATUS Methods addChannel(channelId, channelData, onMenuClick, onSuccess, onError) Add a digital channel to the FNC menu component. The API requires the complete digital channel state in the form of a JSON payload. Developers must pre-validate the JSON against its corresponding schema by testing it through finesse.utilities.JsonValidator.validateJson. The result of the add operation is returned through the given success or error callback. Example finesse.digital.ChannelService.addChannel(channelId, channelData, onMenuClick, onSuccess, onError); Parameters Required Description Type Name Yes Unique identifier to register the digital channel with FNC. Used in the callback for FNC. String channelId Yes The data of the key-value pair added to the digital channel as JSON payload. The following are the channelData keys: • menuconfig • channelConfig • channelState For more information on the channelData keys, see Digital Channel, on page 438. Object channelData Yes Callback function that is invoked when the menu button of the digital channel is clicked. Function onMenuClick Yes Callback function that is invoked upon a successful add operation. Function onSuccess Yes Callback function that is invoked upon an unsuccessful add operation. Function onError Success payload has the following format: { "channelId": "[ID of the Digital channel]", "status": "success" } Cisco Finesse Web Services Developer and JavaScript Guide, Release 12.5(1) 443 Cisco Finesse JavaScript APIs Channel Service