Inbound Email Action AUTHOR RAJALAKSHMI ACCOUNT TRAVELPORT Inbound
Inbound Email Action AUTHOR: RAJALAKSHMI ACCOUNT: TRAVELPORT
Inbound Email Properties
Email Accounts Email Accounts: Service. Now POP 3 Service. Now SMTP How to get the email id of the Instance Email accounts Service. Now SMTP User Name Email Diagnostics Service. Now SMTP User Name
Watermark / Record Number If an inbound message is recognized as a reply or forward Service. Now attempts to match the incoming email with an existing record by looking for a unique watermark in the subject line or message body. By default, watermarks are inserted as the last line of outbound messages. If no Watermark is found, Service. Now searches the Subject and body of a record number
EMAIL OBJECTS User ID: gs. get. User. ID() EMAIL. SUBJECT: email. subject EMAIL. ORIGEMAIL: email. origemail EMAIL. BODYTEXT: email. body_text EMAIL. BODY. ASSIGN: email. body. assign EMAIL. IMPORTANCE: email. importance
EMAIL OBJECTS Example User ID: gs. get. User. ID() Caller/Requested For: Updated using the email id of the user EMAIL. SUBJECT: Background: Javascript Array Sort EMAIL. ORIGEMAIL: Rajalakshmi. Rathinasabhapathy@travelport. com EMAIL. BODYTEXT: “Need an incident, Server crashed” EMAIL. BODY. ASSIGN: Assign: admin EMAIL. IMPORTANCE: high , low
Example – Type NEW (function run. Action( /*Glide. Record*/ current, /*Glide. Record*/ event, /*Email. Wrapper*/ email, /*Scoped. Email. Logger*/ logger, /*Email. Classifier*/ classifier) { current. u_owned_by = gs. get. User. ID(); current. comments = "Received from: " + email. origemail + "nn" + email. body_text; current. script = email. body_text; if (email. body. assign != undefined) current. u_owned_by = email. body. assign; gs. log("User ID: " + gs. get. User. ID() + "n EMAIL. SUBJECT: "+email. subject+"n EMAIL. ORIGEMAIL: " + email. origemail + "n EMAIL. BODYTEXT: " + email. body_text + "n EMAIL. BODY. ASSIGN: " + email. body_assign + "n EMAIL. IMPORTANCE: " + email. importance); current. insert(); })(current, event, email, logger, classifier);
(function run. Action( current, event, email, logger, classifier) { current. u_owned_by = gs. get. User. ID(); current. add_comments = "Received from: " + email. origemail + "n"+ email. body_text; var script. Text = email. body_text; var new_script. Text = script. Text. substring(0, script. Text. last. Index. Of("Thanks")); var new_script. WA = ''; if(new_script. Text. index. Of('Assign: ')==0) { new_script. WA = new_script. Text. substring(new_script. Text. index. Of("n") + 1) ; current. script = new_script. WA; } else { current. script = new_script. Text; current. short_description = email. subject; if (email. body. assign != undefined) current. u_owned_by = email. body. assign; if (email. importance != undefined) { if (email. importance. to. Lower. Case() == "high") current. important = true; } current. insert(); })(current, event, email, logger, classifier); }
Example – Type REPLY (function run. Action(/*Glide. Record*/ current, /*Glide. Record*/ event, /*Email. Wrapper*/ email, /*Scoped. Email. Logger*/ logger, /*Email. Classifier*/ classifier) { // Implement email action here current. script+='n'+' Email reply is processed'; current. add_comments = "Updated recently by the Reply Email n"+"Received from: " + email. origemail + "n"+ email. body_text; current. update(); })(current, event, email, logger, classifier);
Email Retention You can archive and eventually destroy email messages that you no longer need or if your Email table is excessively large. Plugins Required: Data Archiving Email Retention Archiving means moving records from the Email [sys_email] table to the Archive Email [ar_sys_email] table when they exceed the archive rule time limit. Destroying means deleting records in the Archive Email table when they exceed the destroy rule time limit. System Archiving Archive Rules
- Slides: 10