Author Topic: WDE - Update userdata from a custom command inserted in a chain  (Read 4104 times)

Offline LucasPenen

  • Newbie
  • *
  • Posts: 6
  • Karma: 0
WDE - Update userdata from a custom command inserted in a chain
« 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

Offline hsujdik

  • Hero Member
  • *****
  • Posts: 541
  • Karma: 30
Re: WDE - Update userdata from a custom command inserted in a chain
« Reply #1 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.

Offline LucasPenen

  • Newbie
  • *
  • Posts: 6
  • Karma: 0
Re: WDE - Update userdata from a custom command inserted in a chain
« Reply #2 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.

Offline MJaskowski

  • Newbie
  • *
  • Posts: 27
  • Karma: 0
Re: WDE - Update userdata from a custom command inserted in a chain
« Reply #3 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.