How to get attached data with .NET Toolkit ApplicationBlocks?

Can anyone please share an example of how to get attached data from the current interaction using the Agent Desktop .NET Toolkit ApplicationBlocksFor.Net? Specifically, I am trying to modify the VoiceSample VoiceToolbar class to get the attached data when a new call is received. I’m unclear of how to use com.genesyslab.ws.ail.interaction.AttachedData to do this. And, I tried using the AgentDesktopToolkit.Interactions.AttachedData class but had issues getting the ConnectionLink to work.

Any help would be appreciated. Thanks

Hi, here is example of using Application Blocks for .NET. If you need additional explanation, please ask.

using com.genesyslab.ail.ws.interaction;
class GenesysApplicationBlocksExample
{
private Genesyslab.Desktop.ApplicationBlocks.Interactions.Batch m_batch = null;
void m_batch_InteractionChanged(object sender, InteractionEventArgs e)
{
if (e.EventReason == InteractionEventReason.RINGING)
{
AttachedData attachedData = iv.GetInteractionAttachedData();
if (attachedData != null)
{
foreach (AttachedData item in attachedData)
{
switch (item.key.ToString())
{
case GlobalConstants.GENESYS_ATTACHEMENT_TIME_OF_START:
timeOfStart = item.value.ToString();
break;
default:
break;
}
}
}
}
}
}

This type of SDK does not exist, so nobody cannot share.

2 Likes

Not sure if this is a spam or annoy bot…Considering blocking this account

1 Like

Stop bot this forum and contact your Genesys contact directly, sir!

2 Likes