Events (CIF JavaScript API reference) in Channel Integration Framework 1.0

All client-side code is initiated by events and the events occur in Dynamics 365 Unified Interface. You associate s specific function in a JavaScript library to execute when an event occurs. This specific function is called an event handler.

Each event handler specifies a function within a JavaScript library and the parameters that you can pass to the function. The JavaScript API provides methods that you can use to attach event handlers to the events.


Events Description
onClickToAct Invoked when user selects the outbound communication (ClickToAct) field in a form.
onModeChanged Invoked when the panel mode is manually toggled between Minimized (0), Docked (1) and Hidden (2).
onPageNavigate Invoked when the main Unified Interface page navigation occurs.
onSendKBArticle Invoked when the user selects the Send button in the Knowledge Base control.
onSizeChanged Invoked when the side panel width is changed.
onSessionSwitched Invoked when the session is switched.
onSessionClosed Invoked when the session is closed.
CIFInitDone Invoked when the Channel Integration framework is loaded to determine if Channel Integration Framework APIs are ready to be consumed.