onEventAdded and saving to DB

I need to create an event, save it to DB and immediately after send the details of an event by email. However, when I use onEventAdded and query from DB, I get an empty email. Can I somehow delay my sendMail method to wait for values being saved into DB? Thanks.


OnEventAdded event fires after displying event in the Scheduler. You need to use DataProcessor API for working with server-side of your app.

Please don’t repost the question in multiple threads in future.