From Bright Pattern Documentation
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 >