Skip to main content
Skip table of contents

MdaLinkedDimensions

Finds dimensions that have been made available in other dimensions by MDAs (multi-dimension availabilities).

Use this class for example if you want to know all the staff that are available at a given location (during a specific time frame).

This class simply returns which dimensions have been made available using multi-dimension availability records (MDAs). It does not check other factors, such as blocking reservations or capacity, to find out if these dimensions are actually unoccupied. There are other global methods more suitable for that use case.

More information about MDAs can be found here: Multi-Dimensional Availabilities

Methods

getLinkedIds
Description

This method takes a dimension scope, a date range, and a list to specify which kind of dimensions you want to be in the result. It returns the dimensions that have been made available in the given scope.

Signature
CODE
global static B25.MdaLinkedDimensions.Result getLinkedIds(B25.MdaLinkedDimensions.Context)
Parameters
CODE
B25.MdaLinkedDimensions.Context

An instance of B25.MdaLinkedDimensions.Context. This class wraps the input parameters.

Return Type
CODE
B25.MdaLinkedDimensions.Result

An instance of B25.MdaLinkedDimensions.Result. This contains a list of available dimensions mapped by their dimension type (i.e. ‘B25__Staff__c’ or ‘B25__Resource__c’).

Inner Classes

Context
Description

This class wraps the input parameters, which contain a dimension scope, a date range, and a list to specify which kind of dimensions you want to be in the result.

Properties
CODE
global List<Id> dimensionIds

A list of the source dimensions. For example, this could contain all the room ids at a certain location, when you want to know all the staff that have been made available in these rooms.

CODE
global List<String> targetDimensions

A list of strings specifying the target dimension types that you want to be in the result (i.e. ‘B25__Staff__c’ or ‘B25__Resource__c’).

CODE
global Date startOfRange

The start of the range you are interested in. The result will only contain target dimensions that have been made available in the source dimensions within the specified date range.

CODE
global Date endOfRange

The end of the range you are interested in. The result will only contain target dimensions that have been made available in the source dimensions within the specified date range.

Result
Description

This class wraps the result, which contains a list of available time ranges mapped by date and dimension.

Properties
CODE
Map<String, List<Id>> linkedIds

A list of available dimensions mapped by their dimension type (i.e. ‘B25__Staff__c’ or ‘B25__Resource__c’).

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.