The CreatorCon Call for Content is officially open! Get started here.

Download all active incidents in Excel xlsx format using ui page?

arey yaar
Giga Guru

I need to download all active incidents of the incident table in the xlsx format ,When a button is clicked.Need to do this in ui page..

 

 

1 ACCEPTED SOLUTION

Hello,

 

sorry, i was checking the this in simple html page.

for UI page, below thing worked for me.

find_real_file.png

html:

<?xml version="1.0" encoding="utf-8" ?>
<j:jelly trim="false" xmlns:j="jelly:core" xmlns:g="glide" xmlns:j2="null" xmlns:g2="null">

<button type="button" onclick="downloadIncidents()">Click Me!</button>


</j:jelly>

 

client script:

function downloadIncidents(){
window.location.href='https://instanceName.service-now.com/incident_list.do?sysparm_query=active=true&EXCEL';
}

 

This should work for you also.

 

Thanks,

Ali

If I could help you with your Query then, please hit the Thumb Icon and mark my answer as Correct!!

Thank you,
Ali

View solution in original post

13 REPLIES 13

i used the same but it shows an error..can i know y?

 

find_real_file.png

Hello,

 

sorry, i was checking the this in simple html page.

for UI page, below thing worked for me.

find_real_file.png

html:

<?xml version="1.0" encoding="utf-8" ?>
<j:jelly trim="false" xmlns:j="jelly:core" xmlns:g="glide" xmlns:j2="null" xmlns:g2="null">

<button type="button" onclick="downloadIncidents()">Click Me!</button>


</j:jelly>

 

client script:

function downloadIncidents(){
window.location.href='https://instanceName.service-now.com/incident_list.do?sysparm_query=active=true&EXCEL';
}

 

This should work for you also.

 

Thanks,

Ali

If I could help you with your Query then, please hit the Thumb Icon and mark my answer as Correct!!

Thank you,
Ali

Thanks for the reply it worked

In order to download all active incidents in xlsx format you can use the following url:

https://instance_name.service-now.com/incident_list.do?sysparm_query=active%3Dtrue&XLSX