Launching specific pages of the standard Booking Wizard from a custom script
From a custom script, you can launch the standard Booking Wizard and show only specific pages of that wizard. This way, you can execute the actions of some of the pages silently, but still use user interaction for other pages.
To do so:
Create a WizardUserInteraction object defining which pages will be presented to user, for example:
var wizardUserInteraction = new WizardUserInteraction { CreateNewBooking = false, AssignProfilesAndResources = true, ManageEvents = false, ManageProperties = false };Use the same code as is used to silently create a booking, but use the overloaded TryCreateNewBooking or TryEditBooking method:
bookingManager.TryCreateNewBooking(Engine, wizardUserInteraction, bookingData, this.functions, null, bookingProperties, out reservation);bookingManager.TryEditBooking(Engine, wizardUserInteraction, reservationId, bookingData, null, null, null, null);