From Bright Pattern Documentation
Jump to: navigation, search
This page contains changes which are not marked for translation.
• 5.19

getDispositionsList

Get an array of allowed dispositions for a specific service or interaction. If neither the service nor the interaction ID is specified, you will receive dispositions for the active interaction.

Request

Syntax

getDispositionsList(target: DispositionTarget): Promise<OperationResult<DispositionData[]>>

Where:

type DispositionTarget = {

  service?: string

  interactionId?: string

}

type DispositionData = {

  id: string

  code: string

  name: string

  type: DispositionType

}

type DispositionType = "SUCCESS" | "FAILURE" | "CONTINUE" | "SPAM" | "DO_NOT_CALL"

Parameters

Parameter Parameter Values Data Type Optional/Required Description
target
service String Optional The ID or the name of the specific service for which you will be retrieving the list of allowed dispositions.
interactionId String Optional The specific interaction ID for which you will be retrieving the allowed dispositions.

Example Request

    getDispositionsListButton.onclick = () => {

        const serviceId = notesServiceIdInput.value

        const itemId = notesInteractionIdInput.value

        adApi.getDispositionsList({

            service: serviceId,

            interactionId: itemId,

        })

    }

Return Value

Object Object Values Data Type Optional?

(Y/N)

Value Description
DispositionData
id String N Returns the unique ID of the disposition
code String N Returns the disposition code
name String N Returns the disposition’s display name
type DispositionType N Returns the disposition type; values are as follows:
  • "SUCCESS"
  • "FAILURE"
  • "CONTINUE"
  • "SPAM"
  • "DO_NOT_CALL"

Note: With the "CONTINUE" disposition, you should also set the reschedule call window with API method setRescheduleWindow.


< Previous | Next >