Service portal- convert json array into excel file and download it
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-10-2022 05:15 AM
Hi All,
Can you please help me in resolving the issue on how to convert the json response into excel file and make it downloadable??
Regards,
Shalani Rajendran

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-15-2022 08:02 AM
Hi Shalini,
Could you mention from where you're getting the response ?
If you've any client script written, try adding the below code.
var json= g_form.getValue('items').toString ;
var x = json.slice(1,-1);
var obt = JSON.parse(x);
for(var i = 0 ; i< obt.length ; i ++){
alert(obt[i].item_id);
}
Let me know for any queries.
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-04-2022 09:49 PM
Hi Bhaba,
Thank you for the response....The json i'm getting is through api but then issue got resolved like on click of the api the excel file is downloadable so just added that in html using ng-click function.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-11-2022 10:00 PM
Hi Shalini,
I have the same kind of requirements. I have array of json, need to convert that in excel and downloadable.
Could you please help me in this, if you have any solution for that.
Thanks,
Akhil