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

Hi Naresh,

You can try email script in the email body to set email subject. Try something like below:

In the email body use : ${mail_script:ritm_subject}

Email script : ritm_subject

 

var subj = '';

subj = ('Request: '+current.number+' has been opened on your behalf '+current.variables.nh_first_name +' '+ current.variables.nh_last_name);

email.setSubject(subj);

 

Please try and let me know if it works?

Thanks!

Chetan

Hi Chetan,

 

Sorry for delay in responding, I have tried this but unfortunately not working. Do i need to apply condition as opened by? ? I have lost the condition after changing the table from request(sc_request) to sc_req_item.

 

Regards,

Naresh