User variables in subject and body are showing sys_id instead of name in Send Email of Flow Designer

mgraden
Giga Contributor

When testing the email being sent in the flow of a catalog item, they are showing the sys_id instead of the names of the users in both the subject and body. They are reference variables.

 

EDIT: Once I removed the variables, saved, and then added them again, it finally displayed the names instead of the sys_id.

6 REPLIES 6

Brad Bowman
Kilo Patron

What is the full path you are using in the data pills - are you drilling down to the Name field, or whatever you want to display?

Yes, I am drilling down to the name field.

Ankur Bawiskar
Tera Patron

@mgraden 

Ideally if you are drilling down then it should work if it's reference variable

If it's lookup select box then try below

try to use flow variable to store the display value and then use that

1) create flow variable of type String

2) then use "Set Flow Variables" flow logic and use inline script to set

AnkurBawiskar_1-1767713238560.png

 

💡 If my response helped, please mark it as correct and close the thread 🔒— this helps future readers find the solution faster! 🙏

 

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

@mgraden 

Hope you are doing good.

Did my reply answer your question?

💡 If my response helped, please mark it as correct and close the thread 🔒— this helps future readers find the solution faster! 🙏

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