ReservationBlueprints
Allows you to generate the possible reservation collections based on a reservation blueprint
Methods
Inner Classes
Example
This example shows how you can use the class in your own code.
// Generate possibilities
B25.ReservationBlueprints.Context blueprintContext = new B25.ReservationBlueprints.Context();
blueprintContext.blueprintName = 'Treatment Appointment';
blueprintContext.prototype = new B25__Reservation__c(
B25__Resource__c = 'RESOURCEID'
);
blueprintContext.rangeStartDate = Date.newInstance(2024, 01, 01);
blueprintContext.rangeEndDate = Date.newInstance(2024, 01, 07);
B25.ReservationBlueprints.Result result = B25.ReservationBlueprints.createReservationsFromBlueprint(blueprintContext);