Genesys CTI User Forum

Genesys CTI User Forum => Genesys-related Development => Topic started by: LucasPenen on November 19, 2020, 03:11:54 PM

Title: WDE - Update userdata from a custom command inserted in a chain
Post by: LucasPenen on November 19, 2020, 03:11:54 PM
Hi everyone,

I would like to update a user-data at some point after using the "send email" button in WDE.
I need to consume a web service with the email body and update a user-data key with the response.
I'm trying to put a custom command at any point of the InteractionEmailSend chain of command and I can't update user data impacting the interaction once it was sent. I can update CaseData view accessing using the ICaseDataViewModel object obtaining from CommandParameter the IInteractionEmail object and then ICaseDataViewModel from IDictionary interaction.UserData but this does not impact interaction if I check out URS logs or interaction history.

What should I do to achieve that?

Regards
Title: Re: WDE - Update userdata from a custom command inserted in a chain
Post by: hsujdik on November 19, 2020, 03:58:54 PM
Does it have to be done on WDE customization? Because it could be done on the Outbound E-mail strategy.
Title: Re: WDE - Update userdata from a custom command inserted in a chain
Post by: LucasPenen on November 19, 2020, 06:29:06 PM
I need to be done in WDE because I need to obtain an attachment transform it to base64 and send it through web service and then attach the response.
I think I don't have a way to do this in IRD.
Title: Re: WDE - Update userdata from a custom command inserted in a chain
Post by: MJaskowski on December 01, 2020, 11:26:35 PM
Did you try commandChain "InteractionIMSendMessage"? There is only "SendMessage" command so you could to add your command after send message.