DimensionRecord - gomeddo/js-sdk GitHub Wiki
Dimension record object representing a dimension record in the salesforce org. Including time-slots on when the resource is available. The AvailabilityTimeSlot data will only be available if they were requested with the DimensionRecordRequest.
Instance properties
Inherits properties from its parent, SObject.
- name The name of the dimension record
Instance methods
Inherits methods from its parent, SObject.
generateDimensionRecordTimeSlots
Syntax
const config = new TimeSlotConfiguration();
generateDimensionRecordTimeSlots(config);
Parameters:
config
The TimeSlotConfiguration to use to generate the timeslots.
Return value: The open SimpleTimeSlot for this dimension record and config.
Description Use the data from getTimeSlots to generate simple open timeslots that are easier to use when making UI for users to pick a timeslot.
getTimeSlots
Syntax
getTimeSlots()
Return value: The AvailabilityTimeSlot for this dimension record.
Description Gets raw the time-slots for this dimension record. Only available if withAvailableSlotsBetween was called.