...
hidden | true |
---|
Info |
---|
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. |
This class of the Apex API allows you to find Dimension records that are available for a certain Reservation.
...
Code Block | ||
---|---|---|
| ||
public static Set<Id> getDimensions(B25__Reservation__c reservationIn, String dimensionFieldNameIn, Set<ID> dimensionIdsIn) { B25.AvailableDimensionIds.Context context = new B25.AvailableDimensionIds.Context(); context.reservation = reservationIn; context.dimensionFieldName = dimensionFieldNameIn; context.dimensionIds = dimensionIdsIn; return B25.AvailableDimensionIds.findAvailableDimensionIds(context); } |
Lightning (Screen) Flow Apex Action
This functionality is also available as an Apex Action in Lightning Flow, called 'Find available dimension records':
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 |
Advanced > Manually assign variables | |
Variable containing 1 resulting ID | |
Available Dimension Ids | Variable containing 1list of resulting IDs |
Related articles
Filter by label (Content by label) | ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
...