- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-25-2025 09:06 AM
I have a Notification that is set without any information in the "Who will receive" section (all fields completely blank). In the "What it will contain" section, the Content type is HTML and plain text and the line ${mail_script:Test Records in Rework_script_1} is the first line in the Message HTML section.
The email script is being triggered and correctly sends an email to the person listed as the System Owner in a custom field on the form.
I have changed the email script to instead send to the person listed in the Business Owner field (a custom field on the form). When I check the Mailbox Sent items, I see that the email is being generated and the email is still sent to the person listed as the System Owner.
I have attached the mail script. It is triggered off a custom table called Test Records which has an application CI in it.
What is happening here? Where is ServiceNow getting this email address from when the script has been changed to not use it?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-25-2025 10:35 PM
Hi @kkazik ,
How is this notification being triggered? Is it through an event? If so, do the event parameters include any recipients?
Additionally, try clearing the cache and logging out and back in.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-25-2025 10:35 PM
Hi @kkazik ,
How is this notification being triggered? Is it through an event? If so, do the event parameters include any recipients?
Additionally, try clearing the cache and logging out and back in.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-26-2025 09:13 AM
The notification is being triggered through an event. The event only has one parameter, which is the name of the application record (CI name). I will try the cache clear and relogging to see if that helps. (I will report what I find.)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-26-2025 09:24 AM
Unfortunately, clearing the cache did not have any impact on the recipient. Thank you for the suggestion.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-26-2025 09:34 AM
Sorry, I am incorrect on the event parameters. Looking at the sent email details, it says Notification 'Notify creator of rejection' included recipients via event parm2 field: '[FIRST LAST]' (SYS_ID)'.
I looked at this event and it is related to a workflow that I was unaware of (I think I had this event confused with another event I was closely working on.)
Thank you for the pointers.