From Bright Pattern Documentation
< 3.12:Desktop-integration-api-net-version-tutorial
Revision as of 20:54, 3 August 2016 by Sasha (talk | contribs) (Created new topic from branched topic Documentation:ServicePattern:desktop-integration-api-net-version-tutorial:EnteringDispositionsandNotes:3.11)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
• 3.10 • 3.11 • 3.12 • 3.13 • 3.14 • 3.15 • 3.16 • 3.17 • 3.18

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;
default:
dispositions.AddRange(allDispositions.Where(x => x.showToAgent));
break;
}


The method below is used for:


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.


< Previous | Next >
< Previous | Next >