onEventAdded and saving to DB

Hello.
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.

Hello,

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

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