I tried to get attached data in custom command which should be run before release call using the code below
this.container = container;
IInteractionVoice Context = container.Resolve();
IDictionary<string, object> contextDictionary = (Context.UserData as IDictionary<string, object>);
object caseObject;
if (contextDictionary.TryGetValue(“Case”, out caseObject))
{
ICase theCase = caseObject as ICase;
// Get attached data
string urlField = theCase.MainInteraction.GetAttachedData(“AttachedDataX”) as string;
}
Or Even Parties of interaction but i keep getting null values.
container is passed in constructor.