Requesting resource from custom database?

Does someone know how it could be done or where I could find documentation about that ?!

I am not trying to replicate the complete functionnality of the mail template and doesn’t want to mess with how the system is working.

So basically what is needed ?

  • User enter StartDate & EndDate (StartTime & EndTime is automatically set for whole day)

NB. If more than one day it should autocalculate number of repeat

  • User select site & category

According to those informations he can select a resource (if available).

I don’t see major problems until there but now which informations should be sent to the R&R database (items name / items type / items content) ?

NB. there is no “before/after mail arrive” agent in R&R db, so the only source of documentation that I have is the mail template (which is quite long to dissecate).

Thanks in advance