The CreatorCon Call for Content is officially open! Get started here.

How to Add reference field value in subject of email notification

Arundhati
Tera Contributor

Hello All,

I have custom table named case which has a reference incident number field, In the subject line of compose Email I also want to add the incident number together with the case number can you please help me how can I add the reference field value in subject line?

1 ACCEPTED SOLUTION

Ankur Bawiskar
Tera Patron
Tera Patron

Hi,

you can simply use this and no need to dot walk

${u_incident}

Regards
Ankur

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

View solution in original post

5 REPLIES 5

Voona Rohila
Mega Patron
Mega Patron

Hi Arundhati

Try this in subject 

Modify u_incident with the incident refernce field name

${u_incident.number}

Mark it helpful if this helps you to understand. Accept solution if this give you the answer you're looking for
Kind Regards,
Rohila V
2022-25 ServiceNow Community MVP

Ethan Davies
Mega Sage
Mega Sage

Hey @Arundhati ,

Assuming that the Incident is a reference field on your Case table, you should be able to do the following in your subject.

find_real_file.png

i.e ${incident.number} 

Thanks,

Ethan

Please mark the answer correct if it solved your issue, or upvote if it helped.

Mohith Devatte
Tera Sage
Tera Sage

hello,

you can access it via fields in the what to contain tab

Example: my NOTIFICATION is on RITM table and i wanted to print my request number so in the right side panel i can expand request field and select the number.

find_real_file.png

find_real_file.png

After clicking it printed ${request.number} so i will copy this to my subject and the request number will be printed.

So in your case follow the same process find the incident field and expand it and select number or 

get to know your back end name of incident field and do .number like below in subject

Subject: Incident number : ${incident_field_backend_name.number}

 

Please mark my answer correct if it helps you

Ankur Bawiskar
Tera Patron
Tera Patron

Hi,

you can simply use this and no need to dot walk

${u_incident}

Regards
Ankur

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader