Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Export report to CSV in URL

timtoennies
Mega Contributor

I was able to create a custom report and I can browse to it directly in the URL by entering

https://slu.service-now.com/sys_report_template.do?jvar_report_id=myreallylongreportid

is there a way I can add a switch or value to the URL to automatically launch the export to CSV option?

3 REPLIES 3

bernyalvarado
Mega Sage

sokhachhun
Kilo Contributor

Please try this.


URLDescription

https://<instance name>.service-now.com/incident_list.do?CSV


Export all incidents to a comma-separated value text file.

https://<instance name>.service-now.com/incident_list.do?CSV&sysparm_query=sys_id%3E%3Db4aedb520a0a0b1001af10e278657d27


Export a particular incident to a comma-separated value text file.

https://<instance name>.service-now.com/incident_list.do?CSV&sysparm_order_by=sys_id


Export all incidents to a comma-separated value text file and sort the list by sys_id.

Thank you Sokha.   I was able to export the CSV from the URL with this string:



https://slu.service-now.com/sys_report_template.do?CSV&jvar_report_id=myreallylongreportid