setDisposition
Sets a disposition for a call.
Description
setDisposition(dispositionId: number, ?params): void
It sets a disposition for a call, as if the agent has chosen a disposition and saved it.
Note: You can only choose disposition IDs that are available for agent use (it is listed among the ‘Dispositions’ field). The event beforeSetDisposition is not affected and runs independently, therefore it can overwrite or abort the requested disposition ID in setDisposition.
Parameters
dispositionId: number
The ID number of the disposition.
Params object
saveAndRecall: boolean
Defines whether save and recall shall be applied upon disposition. It only works in Afterwork state.
Return values
None
Example
The example code below sets Disposition 42 when Button1 is pressed:
$('page1', 'button1').afterSetData = function () {
vcc.setDisposition(42, { saveAndRecall: true });
}
Comments
Can’t find what you need? Use the comment section below to connect with others, get answers from our experts, or share your ideas with us.
There are no comments yet.