This class of the apex api allows you to find dimension records that are available for a certain reservation.
Methods
findAvailableDimensionIds(context)
dimensionIds
The dimensionIds property narrows down the search scope. This greatly improves performance. Any simple filters like field values should be performed before calling this method to improve performance.
Declaration
global static Set<Id> findAvailableDimensionIds(AvailableDimensionIds.Context context)
Parameters
context (AvailableDimensionIds.Context)
Returns
Set<Id> The ids of the given context that do not have conflicts if used for the given reservation.
Inner Classes
Context
Properties
reservation (B25__Reservation__c) - Reservation you want to insert.
dimensionFieldName (String) - Name of the field you want to search an available id for
dimensionIds (Set<Id>) - scope of ids to search in have to be of the same type as the lookup dimensionFieldName.