PureEngage On-Premises

 View Only

Sign Up

Expand all | Collapse all

Fetching complete Email header from UCS DB - Input : Interaction ID.

  • 1.  Fetching complete Email header from UCS DB - Input : Interaction ID.

    Posted 08-04-2014 08:34
    Hi,

    I have a requirement in which I need the complete Email header in the form of a string. I am able to retrieve individual components of the header, but not the entire header in the form of a string.

    Is there any implementation in the Genesys SDK with which I can retrieve the complete Email header? If so, can you please post here? Any details regarding where the header can be found in the DB (Table details?) would also be fine.

    Thanks and regards,
    Sudhakar


  • 2.  RE: Fetching complete Email header from UCS DB - Input : Interaction ID.

    Posted 08-13-2014 19:25

    Hi,

    You can find "Header" column which has a "BLOB" data type in EmailIn table. It contains the full text of the header of this inbound e-mail. Some other
    attributes, such as FromAddress and ToAddresses, have values that are
    extracted from the header, whereas Header contains the entire header text.

    Please note that this field is not mandatory. There is no guaruntee that it will be filled under all email conditions.

    For more info refer to "Selected Conceptual Data  Models for the UCS Database" doc.

    To get the Header attribute use PSDK contact protocol com.genesyslab.platform.contacts.protocol.contactserver.requests.RequestGetInteractionContent class.

    On successful request you receives "EventGetInteractionContent" event. It returns the binary content of the interaction. You can get interaction attributes\values by using getInteractionAttributes() method.  Entity attributes can be obtained using getEntityAttributes().


    Roman Tereschenko