Posted: May 8, 2019 at 4:56 am
|
Hey there, I really need a way to export a list of all my events. The events are being funded by the government and they want information on how many events are being held within a time period and how many people have registered for them, including events with zero registrations. Basically I need an export with the following columns; Event Name Any ideas how I can achieve this? thanks in advance. |
Hi, What you could do is send a request via the built-in REST API, which will give you a JSON response with all the data. Then you can convert the JSON to CSV a file, then open that file in a spreadsheet application. Step 1: Go to https://json-csv.com/ You’ll note that the above request URL will get all the events for one category, so the end results could be merged into one file. Alternatively you could do this to get all events and include the category name:
Then downside with the above is it will output additional rows for each type of event taxonomy which would involve deleting them from the spreadsheet. |
|
|
Hey there, thanks so much for this workaround. very cool. Can I just ask, When I paste the below: I seem to only be getting a few of my events in this list. How can I ensure it exports ALL the events? Also, is there anyway to get the category on the same row? Lastly, how can I edit the columns? I only want to include the date of the event, not the time. thank you so much! |
When you say ‘a few’, would a few be 200 events? using the above I get 200 events from your site as the request has a limit of 200 to prevent time outs, that is set with How many events are you expecting? |
|
|
Well actually it’s 320 in total but this will grow over time. Essentially I only need this report on a monthly basis (maybe 40 events) so is there a way to date limit it? |
Yes, can limit the results based on date using something like:
So then the URL would be: That would show you the events between 2019-04-01 and 2019-05-01. |
|
|
Oh that’s very cool. Thank you. That could work. I will have a play with it. |
You can edit the columns in your spreadsheet editor. In this case, you’d change the date format for the datetime column. The JSON response will always include the time along with the date. |
|
|
wow. thats really obvious now that you say it. hahaha. thank you. |
|
I do have one last little request if you could help. I see that there is a total registrations column. Is there any way to separate out the different ticket types into columns in this report? |
Hi there, Not with the above, no. For that kind of breakdown, you’d need to pull all of the tickets individually for each event and loop over adding the count for each ticket. It’s not something that can be added to the above without custom development (with the help of a developer) and by the time you’ve done that you may as well have developed your own custom report using our models system to pull any and all of the details you need. |
|
|
Interesting… Can you tell me more about the models system? Do you guys have Developers for hire that can produce this type of thing? |
Hi, Event Espresso does not have developers for hire, but you can get a quote from one of the developers at codeable.io. |
|
|
I’m on it Josh! Talking to them now. |
The support post ‘Export Events CSV’ is closed to new replies.
Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.