Enables developers to find the ids of available dimensions (such as Staff or Resources) that are available for a single reservation.

This class of the Apex API allows you to find Dimension records that are available for a certain Reservation.



Declaration


global static Set<Id> findAvailableDimensionIds(B25.AvailableDimensionIds.Context context)

Parameters

  • context (B25.AvailableDimensionIds.Context) 

Returns

  • Set<Id> The dimension IDs that would not result in any conflicts, if used for the given Reservation and Dimension Field.





Properties

  • reservation (B25__Reservation__c) - Reservation you want to insert.
    • B25__StartLocal__c and B25__EndLocal__c need to be set.
    • Make sure that any fields that influence conflict checking are set (i.e. the quantity of the reservation, or B25__Status__r.B25__AllowDoubleBooking__c if your Dimension Field is configured to skip conflict checking when this field equals true), or the result might not contain all available dimensions.
  • dimensionFieldName (String) - Name of the dimension field you want to search an available ID for. I.e. 'B25__Resource__c'.
  • dimensionIds (Set<Id>) - Scope of dimension IDs to limit the search to. These have to be of the same type as the dimension field that you are searching in.


  • excludedReservationIds (Set<Id>) - Reservation ids to ignore in conflict checking. This allows you to exclude reservations you are in the process of moving.

    The dimensionIds property narrows down the search scope. This greatly improves performance for dimensions with many records. It is recommended to fill this parameter when searching in dimensions with a large amount of records.




Related articles

Related articles appear here based on the labels you select. Click to edit the macro and add or change labels.


Related issues