How to bring Requested Item Number in Subject on Notification Created on sc_request table?

baqar rizvi
Mega Expert

Hello Guys,

I have a requirement where I need to add RITM number in the Email Notification Subject which is sent when a Service Request is placed in ServiceNow.

In the email body, I already have RITM number with the help of an email notification script where I have glided sc_req_item table and fetched the number of current record but this mail script doesn't work in SUBJECT.

Any help will be highly appreciated.

Thanks in Advance.

find_real_file.png

1 ACCEPTED SOLUTION

Why don't you write this email notification on "sc_req_item" table. By doing that you can get both Request Number and Requested Item Number in subject.



It will not affect the email notification body content. Only thing is you may need to do some dot walking if you want to pull request fields.



Hope it helps.



Kind Regards,


Jotiram



Hit like /helpful / answered as applicable.



Kind Regards,


Jotiram


View solution in original post

12 REPLIES 12

Rajesh Mushke
Mega Sage
Mega Sage

you just have to place This ${number} and remove the email script name.




Thanks,
Rajashekhar Mushke
Rising star : 2022 - 2024
Community Leader -2018
Connect me on LinkedIn : Rajashekhar Mushke

hi,



${number} will bring only REQUEST NUMBER since this notification is created on the sc_request table.


I want REQUESTED ITEM number in the subject.


Can you clarify:



i'm trying to understand, So now tell me which one do you want put in your subject.


select yours from below two numbers


  1. RITM00412672 --> Retested Item number --> for this ${number}
  2. REQ875872698 --> Request number --> for this ${request.number}


Let me know, if you need more help.




Thanks,
Rajashekhar Mushke
Rising star : 2022 - 2024
Community Leader -2018
Connect me on LinkedIn : Rajashekhar Mushke

I want subject to be like this on the notification that is created on the sc_request table where I cannot find option to insert requested item(RITM) number.


Example-


Your REQ875872698 / RITM00412672 has been registered.