Variables in RITM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-04-2025 06:30 AM
Hello All ,
I want to get all the variables in a RITM to send them in a file .
The name of the variables and the content .
Do you have an easy way to do that ?
Thanks for your support
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-04-2025 06:48 AM
Hi @KouassiP
Why don’t you create a report on the RITM table using the list type? Add the variables as list columns, schedule the report, and your work is done.
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.
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
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]
****************************************************************************************************************
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-04-2025 07:15 AM
Thanks @Dr Atul G- LNG , the fact is this file must be attached on the task and it will be used by another team in the process
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-04-2025 08:52 AM
You can refer the approach I shared below for csv, enhance for txt file or any other file and then attach it to RITM or Task wherever you want.
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-05-2025 04:55 AM
Thanks @Ankur Bawiskar , i tried and i see the file is generated ... I will set some modification due to the header in the file .
However i want to clarify a point . Let's say we have an RITM with 7 tasks and some variables are not defined during the creation of the RITM , but in the Task 4 .
My question is to know , when i will run my script at the creation of the RITM , i will only have the variable defined at this moment , do you think if i run the script again after the closing oh the task 4 , i will have the new variable in my file ?