I have created a custom handler to use the ACD Statistics (Queue) tool step to retrieve the longest waiting interaction from an ACD Workgroup. Based on the value I set a custom attribute to one of 3 values on th: 0, 1 ,2. I call this handler in my Inbound Profile of Attendant and set the custom attribute on the incoming call (Interaction1), then use a Selection step to determine which path the call needs to take based on the custom attribute. To ensure this was working properly, I logged the Custom Attribute so I could easily see what it was set to. In the handler, there is no way for it to go without setting the custom attribute. But when I look at calls that are coming in, the majority of them do not have a value for the custom attribute. Is there a best practice method or way to ensure this attribute is being set on the incoming interaction? If needed I can provide a more in depth look at the handler I created.
Thanks,
Andrew