- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-31-2019 10:44 AM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-31-2019 12:39 PM
You'll have to do a bit more research but you could convert it to a CSV much easier with soemthing like this;
https://github.com/funkyremi/csv-json-convert
This just adds a function with this code;
jsonToCsv: (array, delimiter) => {
let result = '';
for (const key in array[0]) {
result.length === 0 ? result += key : result += `${delimiter}${key}`;
}
result += '\r\n';
array.forEach(line => {
let lineStr = '';
for (const value in line) {
lineStr.length === 0 ? lineStr += line[value] : lineStr += `${delimiter}${line[value]}`;
}
result += `${lineStr}\r\n`;
});
return result;
},
Then just have to somehow make it an attachment.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-31-2019 12:39 PM
You'll have to do a bit more research but you could convert it to a CSV much easier with soemthing like this;
https://github.com/funkyremi/csv-json-convert
This just adds a function with this code;
jsonToCsv: (array, delimiter) => {
let result = '';
for (const key in array[0]) {
result.length === 0 ? result += key : result += `${delimiter}${key}`;
}
result += '\r\n';
array.forEach(line => {
let lineStr = '';
for (const value in line) {
lineStr.length === 0 ? lineStr += line[value] : lineStr += `${delimiter}${line[value]}`;
}
result += `${lineStr}\r\n`;
});
return result;
},
Then just have to somehow make it an attachment.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-31-2019 07:02 PM
that is a great help. if possible can you also guide me on attachment part please?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-23-2021 02:45 PM
Hi
Did you ever figure this out? I'm looking to do the same, but having trouble getting it to work.
Thank you,