Versions Compared

Key

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

...

hiddentrue


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
languagejava
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 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

Image Added

Related articles

Filter by label (Content by label)
showLabelsfalse
max5
spacescom.atlassian.confluence.content.render.xhtml.model.resource.identifiers.SpaceResourceIdentifier@101b6
showSpacefalse
sortmodified
reversetrue
typepage
cqllabel = "apexapi" and type = "page" and space = "BPD"
labelsApexApi

...