- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā05-06-2025 01:32 AM
Hello,
We are seeing this issue where the number is not being displayed instead we are seeing
{number} was recently assigned to you.
I am sure the issue is with the notification script "incident_assigned_to_you"
template.print(sn_i18n.Message.getMessage('global',
"{html0}{incidentNumber} {html1}{html2}was recently assigned to you.{html3}", {
"incidentNumber": "${number}",
"html0": '<div style="font-size: 16px;" ><span style="font-weight: 700; color: #181A1F;">',
"html1": '</span>',
"html2": '<span style="font-weight: 400;">',
"html3": '</span></div>'
}));
where probably, the script is not being emulated properly.
Just an FYI, we do not have translation enabled in our instance.
Please suggest how to fix this?
Thanks,
Shariq
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā05-08-2025 06:49 AM
We had the same issue after Yokahama upgrade. Replacing the ${number} with current.number works as work-around.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā05-06-2025 01:36 AM
that is an OOTB email script?
when was it working fine?
did you recently upgrade?
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
⨠Certified Technical Architect || ⨠9x ServiceNow MVP || ⨠ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā05-06-2025 01:39 AM
Yes and it was working before we upgraded to yokohama from washington.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā05-06-2025 01:52 AM
it's an OOTB email script and since you said it was working fine earlier, did you check what changes were applied?
I shared below and it worked fine for me in my Yokohama instance
Did you check in your instance and see in Preview?
This is how the email script looks
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
⨠Certified Technical Architect || ⨠9x ServiceNow MVP || ⨠ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā05-06-2025 01:44 AM - edited ā05-06-2025 01:50 AM
Hi @Sharique Azim
I don't think it's OOB script. However, I tried that in my PDI and it's working fine.
Try the below script (OOB) and see how it goes.
template.print('<div style="font-size: 16px;" ><span style="font-weight: 700; color: #181A1F;">${number} </span>');
template.print('<span style="font-weight: 400;">was recently assigned to you.</span></div>');
Regards,
Siva