From Bright Pattern Documentation
Contents
- Introduction
- Tutorial
- General Information
- Project and Code Setup
- Threading Model
- Agent Login
- Agent State
- Services
- Making a call
- Transfers
- Conference
- Receiving a call
- Call States
- Wrapping Up After-call Work
- 1 Entering Dispositions and Notes
- Directory
- Recent Interactions
- Favorites
- Notifications
Desktop Integration API .NET Version Tutorial
Entering Dispositions and Notes
The following code snippet shows how to obtain a list of dispositions for an interaction filtered according to the disposition type:
List<Disposition> dispositions = new List<Disposition>();
List<Disposition> allDispositions = item.service.dispositions.Values.ToList();
switch (item.mediaType)
- {
- case ADAPI.MediaType.Preview:
- {
- dispositions.AddRange(allDispositions.Where(x => x.preview && x.showToAgent));
- break;
- case ADAPI.MediaType.Voice:
- if (String.IsNullOrEmpty(item.workitemId))
- {
- dispositions.AddRange(allDispositions.Where(x => x.inbound && x.showToAgent));
- }
- {
- else
- {
- dispositions.AddRange(allDispositions.Where(x => x.outbound && x.showToAgent));
- }
- {
- break;
- if (String.IsNullOrEmpty(item.workitemId))
- default:
- dispositions.AddRange(allDispositions.Where(x => x.showToAgent));
- break;
- }
The method below is used for:
- entering a disposition and notes for a processed call
- rescheduling a call attempt
- indicating whether the voice recording of this call contains a voice signature
- public ResultCode disposition((string dispositionId, string notes, DateTime reschFrom, DateTime reschTo, string reschPhone, string reschTZ, bool bVoiceSignature);
This method can be used both while the call is in progress and after it is disconnected while the user is in the After-call Work.