Expensify.org is accepting proposals for new campaigns. Submit yours here by April 30th to receive up to $100,000 in funding for campaigns dismantling injustice related to: Climate, Homes, Hunger, Reentry, or Youth.
Export large amount of data issue as JSON

I am trying to export a large amount of data by using a custom template so that the exported result is a JSON (since I prefer to have nested data instead of a flat csv). Given the big amount of data I got the following error:
"Too many reports to be processed at once, template needs to use the \"addHeader\" statement."
Do you have any idea about what to add if my template is JSON and not a CSV (as per API Documentation examples)?
The only workaround I can see is to call many times the api, but it can break at any moment.
Thanks in advance
Comments
Maybe can be useful to other people: a solution is just to have smaller date ranges and iterated over them.
- Spam
- Abuse
- Report
0 · Accept Answer Off Topic Insightful Vote Up AwesomeHi @gg1234 - For JSON export templates, you can use
addHeader
andaddFooter
for large exports. Here is an example of how this might look, but please note that this is just a rough example and isn't tested.- Spam
- Abuse
- Report
0 · Accept Answer Off Topic Insightful Vote Up AwesomeThank you, I will try it
- Spam
- Abuse
- Report
0 · Accept Answer Off Topic Insightful Vote Up Awesome