How to run background script to print records details/Redable log,if there is 2 Lakhs data in table.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-11-2025 03:27 AM - edited 02-11-2025 03:30 AM
Hi Expert,
How to run background script to print or Display records details in Redable log, when there are 2 Lakhs records in a table. ensuring it will not create any performance issues.
You can say "you can download the list as per your requirement after appling filter and which field you want to see".
But my use case is diffrent, I am dotwalking from a field thats why I need to run a script.
Thank You!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-11-2025 03:34 AM
background script on 2lakh records -> not a good practice and won't recommend.
What's your business requirement?
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-11-2025 03:47 AM - edited 02-11-2025 03:49 AM
Hi @Ankur Bawiskar ,
I want to make a excel file.Where below field should be display.
survey.number +" - "+survey.user.getDisplayValue()+" - "+survey.user.email+" - "+c_value.toString()+" - "+survey.survey_name.getDisplayValue()+'\n'
Note: "c_value" can we generated by link only it depends on Survey records sys_id. I am generating this link( throw calling script include function) and extract C Value from link and pushing these fields value in a array. (My script is working fine if i am showing details for 3000 trecords but more then this transcation get canceled for background script in servicenow)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-11-2025 03:50 AM
try to use export set feature where you can dot walk and specify the type of file excel or csv
It will be exported to mid server
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-11-2025 03:54 AM
C_value is important for me to see in that seat , It is possible?