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

Offline LucasPenen

  • Newbie
  • *
  • Posts: 6
  • Karma: 0
WDE - Update userdata from a custom command inserted in a chain
« on: November 20, 2020, 12:11:54 AM »
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

  • Sr. Member
  • ****
  • Posts: 431
  • Karma: 16
Re: WDE - Update userdata from a custom command inserted in a chain
« Reply #1 on: November 20, 2020, 12:58:54 AM »
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 20, 2020, 03:29:06 AM »
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: 22
  • Karma: 0
Re: WDE - Update userdata from a custom command inserted in a chain
« Reply #3 on: December 02, 2020, 08:26:35 AM »
Did you try commandChain "InteractionIMSendMessage"? There is only "SendMessage" command so you could to add your command after send message.