Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

This class of the apex api allows you to find dimension records that are available for a certain reservation.


Methods
findAvailableDimensionIds(context)

dimensionIds

The dimensionIds property narrows down the search scope. This greatly improves performance. Any simple filters like field values should be performed before calling this method to improve performance.

Declaration

global static Set<Id> findAvailableDimensionIds(AvailableDimensionIds.Context context)

Parameters

  • context (AvailableDimensionIds.Context) 

Returns

Set<Id> The ids of the given context that do not have conflicts if used for the given reservation.


Inner Classes
Context

Properties

  • reservation (B25__Reservation__c) - Reservation you want to insert.
  • dimensionFieldName (String) - Name of the field you want to search an available id for
  • dimensionIds (Set<Id>) - scope of ids to search in have to be of the same type as the lookup dimensionFieldName.

Related articles

On this page

  • No labels