How to include Catalog Variables when exporting RITM/SC Task records to Excel or CSV?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 hours ago
Hi Team,
We have a requirement to include Catalog Variables when exporting RITM (sc_req_item) and SC Task (sc_task) records.
Currently, when we use the standard Export option (Excel/CSV) from either the list view or a single record, only the table fields are exported. The catalog variables are not included, as they are stored separately.
Our requirement is:
Export should include both the standard table fields (e.g., Number, State, Requested For, Opened By, etc.) and the catalog variables as additional columns.
Ideally, this should work when exporting a single RITM from the form as well as from the list view.
I understand that one approach is to build a custom "Export with Variables" solution using a UI Action and server-side script.
I have a few questions:
Has anyone implemented a similar solution?
What is the recommended approach to generate an Excel/CSV that includes both table fields and catalog variables?
Is there any out-of-the-box functionality or existing API that supports exporting catalog variables along with the record details?
If a custom solution is required, what would be the best practice for generating the export file?
Any suggestions, sample implementations, or best practices would be greatly appreciated.
Thank you
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 hours ago
Hi
You can create a report using a variable. and download in excel.
Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
****************************************************************************************************************
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
an hour ago
Thank you for your response.
I also tried exporting an individual RITM and SCTASK record to PDF using the standard Export → PDF option. However, I noticed that the catalog variables are not included in the generated PDF either.
It seems that the standard PDF export only captures the table fields and not the associated catalog variables. Could you please confirm if this is the expected behavior? If so, is there any out-of-the-box way to include catalog variables in the exported PDF, or would a custom solution be required
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 hours ago
there is no out of the box way to include them in list view in native
But here are some links which uses workaround and then you can export them from list itself
Article #19 - How to show Catalog Variables on RIT... - ServiceNow Community
💡 If my response helped, please mark it as correct ✅ and close the thread 🔒— this helps future readers find the solution faster! 🙏
Ankur
✨ Certified Technical Architect || ✨ 10x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
an hour ago
Thank you for your response.
I also tried exporting an individual RITM and SCTASK record to PDF using the standard Export → PDF option. However, I noticed that the catalog variables are not included in the generated PDF either.
It seems that the standard PDF export only captures the table fields and not the associated catalog variables. Could you please confirm if this is the expected behavior? If so, is there any out-of-the-box way to include catalog variables in the exported PDF, or would a custom solution be required?