Enables developers to find the ids of available dimensions (such as Staff or Resources) that are available for a single reservation. This functionality is also available in Lightning (Screen) Flow, see the last section of this page.
...
Panel
bgColor
white
titleBGColor
lightgray
borderStyle
solid
title
Inner Classes
Panel
borderStyle
solid
title
Context
Context Properties
reservation (B25__Reservation__c,Invocable Variable):Reservation you want to insert.
B25__StartLocal__cand 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__cif 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, Invocable Variable): The 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.
dimensionRecordIds (List<Id>, Invocable Variable): Scope of dimension IDs that the invocable method searches through. This is a duplicate of the dimensionIds Set and is only used for B25.AvailableDimensionIds.findSingleAvailableDimensionId.
excludedReservationIds (Set<Id>): Reservation IDs to ignore in conflict checking. This allows you to exclude reservations you are in the process of moving.
Note
title
dimensionIds
The dimensionIds and dimensionRecordIds properties narrow 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.
Panel
borderStyle
solid
title
Result
Return Properties
availableDimensionIds (List<Id>): A list of available dimension IDs
availableDimensionId (Id) - A single ID of the first dimension in availableDimensionIds list.
Example
The following example shows how you can use B25.AvailableDimensionIds.findAvailableDimensionIds method:
...
Set Input Values for the Selected Action
Dimension Field Name
Name of the Dimension Field to check
Dimension Record Ids
List of IDs of Dimension records to check
Excluded Reservation Ids
List of IDs of Dimension records to exclude
Reservation
Reservation for which a Dimension record is needed