Number not being displayed in incident assigned to me email

Sharique Azim
Kilo Sage

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

1 ACCEPTED SOLUTION

oster
Tera Guru

We had the same issue after Yokahama upgrade. Replacing the ${number} with current.number works as work-around.

View solution in original post

14 REPLIES 14

Hi Siva,

That is a logical workaround, but question is why would it not function properly in the oob scripts itself. Most probably some other configurations on our instance is interfering with the scripts.

Siva, this is a logical workaround. however, probably the issue is something else where the oob script usability is being affected.

@Sharique Azim 

Understood. Better raise a support case with ServiceNow. Since this is OOB, they should come up with the resolution.

Ankur Bawiskar
Tera Patron
Tera Patron

@Sharique Azim 

it's working fine for me, I am in Yokohama

Did you check in your instance and see in Preview?

AnkurBawiskar_0-1746521125305.png

 

This is how the email script looks

AnkurBawiskar_1-1746521176167.png

 

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

Sharique Azim
Kilo Sage

Yes, im referring to the same script and it is not working for us