Versions Compared
Key
- This line was added.
- This line was removed.
- Formatting was changed.
Excerpt | ||
---|---|---|
| ||
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.
Panel | ||||||||
---|---|---|---|---|---|---|---|---|
| ||||||||
findAvailableDimensionIds Panel | | |||||||
borderStyle | solid | title |
findAvailableDimensionIds(context) | |||||
---|---|---|---|---|---|
Declaration
Parameters
Returns
|
findSingleAvailableDimensionId(context) | |||||
---|---|---|---|---|---|
findSingleAvailableDimensionIdsThis method checks, in compliance with the conflict detection engine, which dimensions are available for a given reservation, and then returns a single ID of one of the dimensions. This is an invokable method and can be accessed from flows. Declaration
Parameters
Returns
|
Panel | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||
Panel | borderStyle | solid|||||||||||
title |
Context | |||||
---|---|---|---|---|---|
Context Properties
|
Result |
---|
Return Properties
|
Example
The following example shows how you can use B25.AvailableDimensionIds.findAvailableDimensionIds
method:
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); } |
Related articles
Filter by label (Content by label) | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
|
|
Page Properties | ||
---|---|---|
| ||
|
Panel | ||
---|---|---|
| ||
|