Scenario
User wants to find out from which NetSuite record was sent particular email notification.
Solution
You can use a combination of a standard NetSuite notification and Saved Searches to generate notifications based on particular criteria, like a notification when a Case has been updated or when it has changed its Status.
After some time, when you want to change the notification email, you might not be sure what mechanism was used to send the notification. Below is a way how to determine if an email notification was sent via a Saved Search or otherwise, by checking the email header:
Saved Search Notification Email Header
X-MailingID: scompid=123456; action=create; recordtype=-23; recordid=425; search=154; owner=71; recipientemail=user@netSuite.com; attachment=none;
X-NetSuite: c=123456; s=be5.sv; t=SEARCH; v=2010.1.1.3
scompid: NetSuite Account Number
action: Trigger that sent the email
recordtype: Type of record in NetSuite
recordid: Internal ID of the record
search: Internal ID of the Search in NetSuite
owner: Internal ID of the Employee who owns the Saved Search
recipientemail: Email address of the recipient
attachment: Information whether attachment was included or not
c: NetSuite Account Number
s: NetSuite AppServer
t: Type of record that sent the email
v: Version of NetSuite used to send the email alert
Default Notification Email Header
X-NetSuite: c=TSTDRV544809; s=be2.sv; v=2010.1.1.30; t=CASE_SUPPORT_REP;
Anatomy of the Header:
c: NetSuite Account Number
s: NetSuite AppServer
v: Version of NetSuite used to send the email alert
t: Type of record that sent the email