Wednesday, 28 May 2025

ServiceNow bash export XML

 ServiceNow import limit 1G

https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0564441&utm_source=chatgpt.com

but close or less than limit might still break system


export xml limit

https://www.servicenow.com/docs/bundle/yokohama-platform-administration/page/administer/exporting-data/concept/c_ExportLimits.html


A warning threshold property called glide.ui.export.warn.threshold controls how the records are exported. When you export enough records from a list to exceed the threshold, a choice dialog appears. You can choose to wait for the export to complete or email the exported records as an attachment. The warning threshold can be changed in the system property. The email attachment must not exceed the maximum Email size limits.

For export XML UI:

For XML go to UI use filter created at or after xxx date -> export xml

KB

break record into chunks

https://www.servicenow.com/docs/bundle/yokohama-platform-administration/page/administer/exporting-data/task/t_BreakUpALargeExport.html

If the record number is higher than the defined threshold, issue a sysparm query for the first 10,000 records using the following syntax:

Explain this code

https://<instance name>.service-now.com/syslog_list.do?XML&sysparm_orderby=sys_id&sysparm_record_count=10000


Access the next series of records with a greater than or equal to query run against the sys_id of record 10,001.

The following example shows a query that uses a sys_id of b4aedb520a0a0b1001af10e278657d27. Use the syntax shown in this query to export the next set of records.

https://<instance name>.service-now.com/syslog_list.do?XML&sysparm_query=sys_id%3E%3Db4aedb520a0a0b1001af10e278657d27&sysparm_orderby=sys_id&sysparm_record_count=10000

No comments:

Post a Comment