Create custom email header: importance

Valor1
Giga Guru

I'd like to create a custom email header for the "importance" flag in Outlook.

After much digging, it looks like I need to do the following, but I can't figure out how to view / modify the string
1) Edit the "Header" string in the sys_email table to first get the importance header to be recognized as such,
2) and then create a corresponding "importance" column in the same table.

Any pointers?

1 ACCEPTED SOLUTION

john_roberts
Mega Guru

I recently added options to email notifications to set high/low importance and include actual file attachments from the record. Unfortunately it didn't make the winter release, but will be in Winter 2011 Stable 1.
Notification Options


View solution in original post

12 REPLIES 12

Is there any similar functionality to set the message sensitivity (Private / Confidential) etc ?


hartr, go ahead and submit an enhancement request in hi to get this in the queue. It should be an easy add.


danzak
ServiceNow Employee
ServiceNow Employee

The most straightforward method is to add a business rule on the sys_email table that adds the headers you want on an insert of send-ready emails.


  • Create a business rule on the sys_email
    • Make sure Active is checked
    • When to run:
      • Insert checked (Update not checked)
      • Filter Condition: Type is send-ready
      • This makes sure we only run this when an email is first created and only for outbound emails
    • Advanced flag checked
    • Advanced (Script):
      • (function executeRule(current, previous /*null when async*/) {
              current.headers += "\nX-Hello: World";
        })(current, previous);
    • Note: The "\n" may be unnecessary (you should test) but will be necessary between each of your added headers
    • Also note, the "+=" in the script above. You generally want to append to the headers, not replace them.