WDE - Update userdata from a custom command inserted in a chain

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

Does it have to be done on WDE customization? Because it could be done on the Outbound E-mail strategy.

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.

Did you try commandChain “InteractionIMSendMessage”? There is only “SendMessage” command so you could to add your command after send message.