How can we pull the old variables data from respective RITM as a report
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-27-2025 02:46 AM
Hi
We have catalog item "ABC" in that we have variables like
Country --
State ---
Address--
But now I have deactivated these 3 variables as part of the new enhancement and this code push to Prod after this new code existing variables and variables data were removed from the existings RITms so How can we get this old deactivated variables data for the old RITMs as a report because as a Audit purpose we need these old data but these was inactivated as part of new enhancement How can we get this one ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-27-2025 03:43 AM
they can use this script to get the old variable value
these tables are involved to store RITM variable data
sc_item_option_mtom and sc_item_option
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
07-28-2025 04:09 AM
Hope you are doing good.
Did my reply answer your question?
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
08-21-2025 05:31 AM
Hope you are doing good.
Did my reply answer your question?
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-27-2025 04:11 AM
Hello @raj99918 ,
Just wanted to confirm—are you looking to create a report using the old (now deactivated) variable data, or do you want to pull the data via script to use somewhere else? Both are totally possible, just depends on what exactly you need.
We actually had a similar case a while back for our New Hire catalog item. Initially, we had a few different variables, and later we changed the logic and deactivated the old ones. After a few months, our client needed a report to track those old variable values, specifically for audit purposes.
In our case, those were regular variables—not part of any variable set or MRVS—so they were still available to report on without creating any database view or anything, even after being deactivated. I just tested it again to be sure, and yes, you can create a report on the RITM table and include those old/inactive variables in the columns and set the filter condition as that variable value is not empty or you can set the created before date as well so that you can get the old data only the time when those variables were active.
I've attached a screenshot below showing how it looks. Let me know if this is what you were aiming for, or if you had something else in mind!
Please Mark ✅Correct if this solves your query and also mark 👍Helpful if you find my response worthy based on the impact.
Regards,
Aniket
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-22-2025 03:49 AM
Hello @raj99918 ,
Just wanted to check in to see if my earlier response helped you out or if you're still facing any issues. If your query is resolved, it would be great if you could mark my reply as helpful and accept it as the solution — that way it can also benefit others who come across the thread later.😊
Also, if you found any other responses helpful, feel free to mark those as helpful too. You can even accept multiple solutions if they contributed to resolving your issue.
Let me know if you need anything else!
Best regards,
Aniket Chavan
🏆 ServiceNow MVP 2025 | 🌟 ServiceNow Rising Star 2024
