I finally did it by using PSDK:
RequestGetInteractionContent reqGet = RequestGetInteractionContent.Create();
reqGet.InteractionId = interactionId;
EventGetInteractionContent content = ucsConnection.Request(reqGet) as EventGetInteractionContent;
I am also adding the attribute using RequestUpdateInteraction, but when I search for interactions with RequestSearch, the new attribute is not there. Can anyone help here?
------------------------------
Ricardo Sosa
PlusNet Solutions, S.L.
------------------------------
Original Message:
Sent: 09-14-2023 11:06
From: Ricardo Sosa
Subject: Getting parent interaction from an email interaction
Hello,
I am trying to mark all replied emails with a WDE customization. I have not found that these are marked anyway. If there is other ways to know if an email has been replied then this question could be useless :)
Anyway, I am adding a command in InteractionEmailSend chain of command. I can get the parent's id like this:
IInteractionEmail interactionEmail = parameters["CommandParameter"] as IInteractionEmail;string parentInteractionId = interactionEmail.EntrepriseEmailInteractionCurrent.ParentID;
I have also tried to get the interaction with the IInteractionManager, but I guess it only keeps open interactions in my WDE because it returns null
IInteraction parent = interactionManager.GetInteractionById(parentInteractionId);
Does anyone know how to get this interaction?
Thank you in advance.
#Implementation
------------------------------
Ricardo Sosa
PlusNet Solutions, S.L.
------------------------------