- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-09-2025 01:33 AM
I am using a variable lookup select box in my catalog and the column is refering to the reference field from another table if I var a = g_form.getValue(lookup Variable) what is the value I am going to get ?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-09-2025 02:13 AM
I was wrong. It gives the sysId of the referenced record within that table.
See below, I am referring to Department table and Lookup value = Department Head (Reference to sys_user) and it gave me sysId of user
1) Variable configuration
2) alert for printing the variable value
3) sysId of user
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-09-2025 01:51 AM
what do you mean by column is referring to reference field from another table?
share some screenshots etc
with this line it should give you the record sysId
g_form.getValue(lookup Variable)
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-09-2025 02:01 AM
column which refreing another table
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-09-2025 02:13 AM
I was wrong. It gives the sysId of the referenced record within that table.
See below, I am referring to Department table and Lookup value = Department Head (Reference to sys_user) and it gave me sysId of user
1) Variable configuration
2) alert for printing the variable value
3) sysId of user
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader