- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-08-2023 05:24 AM
I have a UI Action in which I am trying to download attachments via a button on the list view. in my client side script, I am using g_form.getUniqueValue to grab the sys_id but it's throwing an error that it is 'not a function'. Screen shots below of the scripts and error.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-08-2023 05:29 AM
on list banner button g_form is not defined as it's a list and not form
make these changes
1) Script include line 10
gr.addQuery('table_sys_id', 'IN', tblSysId);
2) UI action line 7 use this instead of g_form.getUniqueValue()
g_list.getChecked()
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
11-08-2023 05:29 AM
on list banner button g_form is not defined as it's a list and not form
make these changes
1) Script include line 10
gr.addQuery('table_sys_id', 'IN', tblSysId);
2) UI action line 7 use this instead of g_form.getUniqueValue()
g_list.getChecked()
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
11-08-2023 05:34 AM
That worked! Thank you so much