Results 1 to 4 of 4

Thread: Scan email body before sending

  1. #1
    Join Date
    Mar 2010
    Posts
    8

    Scan email body before sending

    Hi,

    I need to scan the body of our outbound email responses to look for a Social Security Number and mask it if I find one prior to sending. ***-**-####

    Has anyone done anything similar and would be willing to share what they did?

    Thanks!
    Craig.

  2. #2
    Join Date
    Jan 2013
    Location
    Nashville, TN
    Posts
    127
    You could use the customization point called "CustomOutgoingQueueEmail" and perform your masking there if needed.

  3. #3
    Join Date
    Mar 2010
    Posts
    8

    How do you replace an attribute

    This seems like such a basic question. :-)

    How do you replace a call attribute value?

    I am retrieving the "Eic_EmailBody" attribute into a sting. I successfully scan the string and replace any SSNs with ***-**-****.

    How do I put the updated string back into the "Eic_EmailBody" attribute? When I try a Set Attribute it does nothing.


    thanks!

  4. #4
    Join Date
    Oct 2002
    Location
    Indianapolis
    Posts
    2,077
    I think you'll find it's a bit more complicated than that...you can't just update the attribute, bu thave to update the email itself.

    So, try the following sequence to see if you can get it to work:

    Use Email Interaction Get Message to get the cookie using Interaction1
    Use Open Message By Cookie to open the email into its component parts
    Use Parse Email Body using GetHead(lebBody) for the email body you want to retrieve (if there is more than one body attached to the email, you may need to check how many with a loop involving GetCount(lebBody) and looping through to check each of the bodies in thelist)
    Use you current functionality to check for SSN in the sData variable that comes out of Parse Email Body and create a modified string
    Use Make Email Body to create a new email body containing the changes
    Create the new lebBody, containing however many bodies you need to put back (make sure if you have multiple to begin with that you build it all back up in the same order they were to start)
    Use Email Interaction Update Message to update the original email associated with Interaction1, using all the original variables from Open Message By Cookie, which will replace the old lebBody with the new lebBody you created.

    I haven't tried all of that...but I think it's the route you'll need to go.
    George Ganahl
    Principal Technology Consultant
    Genesys University

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •