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)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
• 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

< Previous | Next >