PureConnect

 View Only

Discussion Thread View
  • 1.  Getting parent interaction from an email interaction

    Posted 09-14-2023 11:07

    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.
    ------------------------------


  • 2.  RE: Getting parent interaction from an email interaction
    Best Answer

    Posted 09-18-2023 05:53

    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.
    ------------------------------



Need Help finding something?

Check out the Genesys Knowledge Network - your all-in-one access point for Genesys resources