The Now Platform® Washington DC release is live. Watch now!

Help
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
TechNow
ServiceNow Employee
ServiceNow Employee

Make your administrative tasks easier and quicker! Chuck and Andrew share a solution to reduce maintenance for one of the most common notification requirements - standardized outbound headers and/or footers. Sure, copy/paste works well to make them all the same the first time, but maintenance can be time consuming. Join us and start to become a Jedi of managing data instead of going back to dev to make changes.

  

Featured Experts

find_real_file.pngChuck Tomasi is a Platform Architect for ServiceNow. He is a computer science major with over 30 years of IT experience. As a former ServiceNow customer, Chuck won the first Innovation of the Year Award at Knowledge 10. Since joining ServiceNow in 2010 as a Technical Consultant, he has done many large scale ITSM implementations and custom applications, acted as an adjunct instructor for Education Services, created and lead the Technical Best Practices program, and co-hosts the ServiceNow series "TechNow".

 

find_real_file.pngAndrew Kincaid is a Sr. Software Engineer for ServiceNow. His extensive platform knowledge extends back to 2009 as a customer, Technical Consultant, and Developer.

 



Here is the script include from the video:

Name: AcmeMailScriptUtil

Active: true

Description: A collection of mail script utilities

Script:

var AcmeMailScriptUtil = Class.create();
AcmeMailScriptUtil.prototype = {
  initialize: function() {
    this.headerTable = 'u_mail_header';
  },

  /*
   * getHTML - retrieve the specified header/footer record
   *
   * @param name - name of the record to retrieve
   * @return - string to insert in the notification
   *
   */
   getHTML : function(name) {

     var blk = new GlideRecord(this.headerTable);

     blk.addQuery('u_active', true);
     blk.addQuery('u_name', name);
     blk.query();
       if (blk.next())
         return blk.getValue('u_html');
     
     return '';
   
   },

   type: 'AcmeMailScriptUtil'

}   
 
15 Comments