First Name & Last Name Variable to be populated in email notification Subject

Naresh_5120
Tera Contributor

Hello All,

I am working on to modify our employee on-boarding process, our On on-boarding form looks like below. In our process HR submit the request for New Hire by filling below form , where HR manually mention the New Hire First Name & Last Name.

find_real_file.pngWhat i want is , when HR submit this form, HR should be receiving an email notification something like below

Service Desk <instance@service-now.com>

Subject : Request REQ0010097 has been opened on your behalf Firstname Lastname 

 

Below are the Variables details.

find_real_file.png

find_real_file.png

I have tried adding ${current.variable.nh_first_name} in email notification subject , however it is not working for me. Can anyone suggest me the solution or advise what mistake I am doing. Thanks in advance for help.

11 REPLIES 11

Hello,

Thank you for quick suggestion , but my requirement is to add variables in email notification Subject not in the body of email. in my requirement our HR team Submit the New Hire request in Service Catalog form, When HR Submit the request they should be receiving a email notification stating that they have opened a REQ on behalf of New Hire 

Example

Email Service Desk <instance@service-now.com>

Subject : Request REQ0010097 has been opened on your behalf Firstname Lastname

rad2
Mega Sage

Hi Naresh,

Are these values first_name and last_name saved? (check for this in question_answer table with the corresponding table_sys_id).

Naresh_5120
Tera Contributor

Hi Rad,

Yes, these vaules are saved

Chetan Sondhi
Kilo Sage

Hi Naresh,

 

With the subject line you mentioned i.e. Subject : Request REQ0010097 has been opened on your behalf Firstname Lastname, it seems you have configured email notification on Request [sc_request] table and not on RITM[sc_req_item] table.

If yes, current.variables won't be accessible in it. Instead you'll have to configure notification on sc_req_item table and use current.variables.nh_first_name & current.variables.nh_last_name in the email subject line.

 

Can you please try above and let me know if it works?

 

Mark Helpful/Correct based on the response.

Thanks!

Chetan

Hi Chetan,

Yes, I have configured the email notification on request(sc_request) table. As per your suggestion i have tried configuring notification on sc_req_item table but its not working either.