How to get variables in catalog item by dot-walk in auto-populate ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-12-2025 08:47 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-12-2025 08:55 PM
if it's a reference field then you can dot walk to multiple levels.
As per your screenshot it's not possible
Your 1st variable is referring to which table?
what's your business requirement?
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
02-12-2025 08:59 PM
Hi @namikoY
we cannot directly use Dot-Walk to reference variables in the Auto-Populate tab of a catalog item.
instead, we can Use a Catalog Client Script(either onLoad, onChange, or onSubmit) to populate variables dynamically.
e.g.
function onLoad() {
var previousFieldValue = g_form.getValue('your_field_name');
g_form.setValue('target_variable', previousFieldValue);
}