Genesys CTI User Forum > Genesys-related Development
How can I get the User Data from an interaction in a workbin?
(1/1)
Gabi:
Hello.
I have been asked to retrieve the User Data of an e-mail in a workbin when agents click on the Reply button to reply to that e-mail.
The e-mail has never been pulled from the workbin, so I cannot store its information in advance.
Checking the logs, I see that there is an EventInteractionProperties which contains the information I need, but I do not know how to capture that event. I have an interaction event handler in my InteractionManager, but it does not capture the EventInteractionProperties.
Could anyone please help me figure out how to make a handler for this event or otherwise retrieve this information from the workbin?
Thank you in advance.
Kubig:
I would recommend you to use commands for that purpose. Within command you can get an object of interaction with all appropriate properties
Gabi:
Thank you for your reply, but the only command to which I have access at that point is InteractionEmailReplyById, which gives me the Interaction Id but not the User Data, and so far I have been unable to find a way to retrieve the User Data associated to that ID since, again, the interaction itself has never been loaded.
If you would be so kind as to tell me how I can find it, I would appreciate it.
Kubig:
You can use command IsPossibleToCreate within that chain to get the current interaction also with user data
Gabi:
Thank you!
Navigation
[0] Message Index
Go to full version