Posts

Pull a pdf attachment into an email containing change info (pdf generator)

Image
Pre-requisite the PDF generator needs to be installed in the instance   this can be installed from plugins I believe: Business rule     ( function executeRule ( current , previous /*null when async*/ ) { var chg = new GlideRecord ( current . target_table ); chg . get ( current . instance ); if ( chg . isValidRecord ()) { var br = '<br/><br/>' ; // Line breaks var html_content = '<h3>' + 'Number: ' + chg . number + br + 'Type: ' + chg . getDisplayValue ( 'type' ) + br + 'State: ' + chg . getDisplayValue ( 'state' ) + br + 'Service Offering: ' + chg . service_offering . name + br + 'Category: ' + chg . category + br + 'Priority: ' + chg . getDisplayValue ( 'priority' ) + br + 'Outage Start Time: &#