Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

When publishing a template, actual reservations will be created. These reservations can be customized by implementing an Apex class. This article describes how to do this.

Create an Apex Class

  1. Create a global Apex class that implements the Callable Interface.

  2. Implement the call method inside your class.

  3. The call method is expected to return a B25__Reservation__c which will be the blueprint for the generated reservations.
    More details about this method can be found below in the section ‘Implementing the Call Method’.

  4. Save your class and remember the name for the next section.

Create a Custom Setting

  1. Create a new Custom Setting of type B25__System_Setting__c.

  2. For the setting Name, fill in Template Reservation Prototype Class.

  3. For the String Value, fill in the name of the Apex class that you created in the previous section.

  4. Save the setting. When publishing templates, your class will now be used.

Implementing the Call Method

...