- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-23-2023 09:12 AM
Complete newby here so please ignore my ignorance. We have a termination workflow that has recently been updated to send out a notification to an HR admin group. This new notification is sent out pre-approval when a checkbox indicating an emergency offboard is selected.
The workflow is working properly but I'm having trouble formatting the notification. The user leaving the company is selected from a drop down or entered manually when an employee isn't in the list.
The notification fields available only give me options for the person opening the request, meaning 'requested for' gives me the HR persons name, not the person being terminated. I've tried using field names but am clearly missing something in the syntax. The link works and I can get the name of teh person opening the request and their location. I can't get the departing employees name, the reason for leaving, or the date and time leaving. Based on the screen shots below how would I find the correct syntax to use for teh fields pictured.
Notification body
Click here to view Request: ${URI_REF}
Requested by: ${requested_for.first_name} ${requested_for.last_name}
Departing Employee:
Location: ${location}
Emergency Reason:
Termination date and time:
Variables
Name manually selected (first_name, last_name structured the same)
Name selected from a list
Emergency Reason
Termination date and time
I think there is a prefix other than 'request_for' I should be using for each field but I've had no luck making sense out of what they should be. I'm also not sure if there is a special 'display_value' command I should use to get the field contents rather than the title or how that works if that understanding is correct.
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-23-2023 09:31 AM
Hi @Alan42 ,
Your almost there , use variables ex: for user name --> current.variables.requested_for.getDisplayValue() and so on... for other variables
Thank you,
Hemanth
Certified Technical Architect (CTA), ServiceNow MVP 2024, 2025

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-23-2023 10:59 AM
Hi @Alan42 ,
I just saw your are trying to get in the email itslef then use as below
User Name: ${variables.requested_for}
Thank you,
Hemanth
Certified Technical Architect (CTA), ServiceNow MVP 2024, 2025

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-11-2023 02:26 AM
Hi @Tungw ,
"activity_date" is your catalog item variable??
Thank you,
Hemanth
Certified Technical Architect (CTA), ServiceNow MVP 2024, 2025
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-11-2023 10:08 PM
Hi Hemanth,
Yes, the variable name is activity_date?
Refer to the attached screenshot from my test activity. In flow designer
In service catalog
Thank you in advance!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-12-2023 06:32 AM
Hi @Tungw ,
You don't see this in the date pills
Please remove and add this variable from Availble to selected and save the flow and see ,
Quick question ; are you using catalog builder?? if so make sure item is published.
if still not visible, we can use flow varibale to get it
1)create flow variable:
2)ex:
3)Use the flow variable in the email
Thank you,
Hemanth
Certified Technical Architect (CTA), ServiceNow MVP 2024, 2025
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-15-2023 06:50 AM
Hi Hemanth,
I can see that in Flow designer, just can't see that notification variable. By the way, is there a documentation for common variables in the platform? For eg. ${opened.by}
Thank you again!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-16-2023 12:30 AM - edited 10-16-2023 12:31 AM
Hi @Tungw ,
We don't have variable options specific to emails in the flow designer, you have to use varibales from Get catalog variables data pills.
if you still want to use variables option, Use "Send notification" action choose the notification you want to include.
Thank you,
Hemanth
Certified Technical Architect (CTA), ServiceNow MVP 2024, 2025