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

asifnoor
Kilo Patron

It shuld be variables (plural)

Try ${current.variables.nh_first_name}

Mark answer as correct if this works.

Hi Asifnoor,

 

Sorry for typo mistake, infact  tried with ${current.variables.nh_first_name) but its not working. I am looking to have both variables in Subject of email notification when REQ is opened by HR.

 

Any other suggestion would be great help from you.

Hi,

Please follow the link it's may be helpful for you:

https://community.servicenow.com/community?id=community_question&sys_id=be8d472ddb9cdbc01dcaf3231f96...

 

Please mark reply as Helpful/Correct, if applicable. Thanks!

FIKRI BENBRAHIM
Kilo Guru

Hello Naresh,

 

   current are not accessible from email templates nor emails present in notifications.

   The solution is really simple. Just go to your notification or email template, check the right side of the email where you will find "Fields", click on it and it will give you all the fields present in the table where your notification is set on.

   Here is a doc containing all the variables that you can use in email bodies : https://docs.servicenow.com/bundle/london-servicenow-platform/page/administer/notification/concept/n....

 

Cheers