How to convert a JSON response from a Scripted rest api into CSV?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-15-2020 11:59 PM
I have a JSON response from a scripted rest API which I need in a csv format. If I append ?CSV at the end of the GET rest url, the csv file is empty. How do I convert the data from json to csv? Any help on this is appreciated.
- Labels:
-
Service Catalog

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-16-2020 12:01 AM
Hi Akshatha - You may find below thread helpful.
- Pradeep Sharma
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-16-2020 12:15 AM
Hi Akshata,
So you are getting a response in json format and you want to convert the data from json to csv file? where this file will be attached to which record?
you will have to parse the json and create csv file and attach to some record
Please share some details on how the setup looks currently.
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-27-2024 03:44 AM
Hi, did you able to solve it?