Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.


Enables developers
Info
Excerpt

Use the AvailableDimensionIds class to find the ids of available dimensions (such as Staff or Resources) that are available for a single given reservation.


Info

This functionality is also available in Lightning (Screen) Flow, see the last section of this page.

...

.


Panel
bgColorwhite
titleBGColorlightgray
borderStylesolid
titleMethods

findAvailableDimensionIds

Panel
borderStylesolid
titlefindAvailableDimensionIds(context)

Declaration

Code Block
languagejava
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.


Panel
borderStylesolid
titlefindSingleAvailableDimensionId(context)

findSingleAvailableDimensionIds

This 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

Code Block
languagejava
global static List<AvailableDimensionIds.Result> findSingleAvailableDimensionId(List<AvailableDimensionIds.Context> contextList)

Parameters

  • contextList (List<B25.AvailableDimensionIds.Context>) : Only a single context needs to be passes. This property is a list in order to support bulkification.

Returns

  • List<AvailableDimensionIds.Result>: A result object that contains a single dimension ID and a list of dimension IDs that would not result in any conflicts, if used for the given Reservation and Dimension Field. Only a single result object will be returned, this property is a list in order to support bulkification.


...

Set Input Values for the Selected Action
Dimension Field NameName of the Dimension Field to check
Dimension Record IdsList of IDs of Dimension records to check
Excluded Reservation IdsList of IDs of Dimension records to exclude
ReservationReservation for which a Dimension record is needed
Advanced > Manually assign variables
Variable containing 1 resulting ID
Available Dimension IdsVariable containing 1list of resulting IDs

...