First Name & Last Name Variable to be populated in email notification Subject
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-05-2019 02:23 AM
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.
What 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.
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.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-05-2019 03:40 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-08-2019 07:17 AM
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