Genesys Engage on-premises

 View Only
Discussion Thread View
  • 1.  WDE How to retrieve email body

    Posted 09-30-2020 11:32
    Hello,
    I have developed a command when a email is loaded
    commandManager.CommandsByName["InteractionEmailLoad"].Insert(0,
    new CommandActivator() { CommandType = typeof(BeforeLoadEmailCommand) });

    I can capture all attributes of the email interactions(subject, to, ...) except the body
    IInteractionEmail interactionEmail = parameters["CommandParameter"] as IInteractionEmail;

    I know the body is stored on UCS interaction table in "text" and "structuredtext" fields, and I can also see that WDE has got the information because of GetInteractionContent method.
    'Event3rdServerResponse' ('501')
    message attributes:
    ReferenceId [int] = 7
    UserData [bstr] = KVList:
    Request [bstr] = KVList:
    'AppName' [str] = "UCS_p"
    'AppType' [str] = "CONTACT_SERVER"
    'Service' [str] = "OMInteractions"
    'Method' [str] = "GetInteractionContent"

    My question is: how could retrieve the body of an email when it is loaded? What could be the best solution? I don't know if there is any service implementation that has that information.
    Thank in advance
    #DigitalChannels
    #Implementation
    #Omni-ChannelDesktop/UserInterface

    ------------------------------
    Miguel Angel Garcia
    ------------------------------


  • 2.  RE: WDE How to retrieve email body

    Posted 10-08-2020 11:11
    I answer myself:
    I have added my custom command at the end
    commandManager.CommandsByName["InteractionEmailLoad"].Add(
    new CommandActivator() { CommandType = typeof(BeforeLoadEmailCommand) });

    Then, it is as simply as 
    i_body = interactionEmail.EntrepriseEmailInteractionCurrent.MessageText;

    ------------------------------
    Miguel Angel Garcia
    ------------------------------



Need Help finding something?

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