From Bright Pattern Documentation
< 5.19:AgentDesktop-client-side-javascript-api-specification
Revision as of 04:01, 29 May 2024 by BpDeeplTranslateMaintenance (talk | contribs) (Updated via BpDeleteTranslateTags script)
• 5.19
setDisposition
Selects the disposition for the interaction by the internal Agent Desktop disposition ID, code, or name. If the interactionId isn't specified, the method will set the disposition for the currently active interaction.
Request
Syntax
setDisposition(disposition: string, interactionId?: string): Promise<OperationResult<null>> |
Parameters
Parameter | Parameter Values | Data Type | Optional/Required | Description |
disposition | String | Required | The disposition ID, code, or name you want to set for the interaction. | |
interactionId | String | Optional | The specific interaction ID for which you will be setting the disposition. |
Example Request
setDispositionButton.onclick = () => {
const dispositionId = dispositionIdInput.value
const itemId = notesInteractionIdInput.value
adApi.setDisposition(dispositionId, itemId)
}
Return Value
null