- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-07-2025 07:54 AM - edited 02-07-2025 08:01 AM
Hi All,
I am trying to export related list tab data to excel/pdf sheet using UI Action button. Code is working as expected but last column of the list view is not being exported to the sheet.
Why it's skipping the last column ? How I could fix it ?
Here is the script I am using,
output :
TotalCount is missing exported pdf,
Regards,
Virendra
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-10-2025 02:43 AM
Ensure you are in correct update set
Configure the list layout on that related list table and then add that and save.
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-10-2025 01:22 AM
that's correct.
but did you open that in new tab, add the column in gear icon and then export?
See if that contains that column
Also add alert and see which view is coming here and if that field is present in that view or not?
var view = g_list.view;
alert(view)l
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-10-2025 02:17 AM
You are correct. Total count column was missing in the custom table view. I added it and worked out.
but adding total count did not captured in update set. How I could capture it ?
Regards,
Virendra
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-10-2025 02:43 AM
Glad to know that my comment helped you resolve your issue.
Please mark my response as correct and close the thread.
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-10-2025 02:43 AM
Ensure you are in correct update set
Configure the list layout on that related list table and then add that and save.
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
