Get incident table records as a csv file using the scripted rest api in servicenow

PRKK
Tera Contributor

Hello Guys,

 

I want to download the incident table records as a csv file using the scripted rest api's in servicenow.

 

Please guide me with the steps guys

 

Thank you!

6 REPLIES 6

Ankur Bawiskar
Tera Patron
Tera Patron

@PRKK 

you want to share the API endpoint to some 3rd party application?

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

Yes, i should be able to download the csv file to my system when i hit the end point

 

Thank you!

Ankur Bawiskar
Tera Patron
Tera Patron

@PRKK 

this link has approach

How to return a CSV file from a Scripted REST API (SRAPI) in ServiceNow 

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

@PRKK 

Thank you for marking my response as helpful.

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader