Resource - gomeddo/js-sdk GitHub Wiki
Resource object representing a resource in the salesforce org. Including time-slots on when the resource is available and services and whether they are available or not. The AvailabilityTimeSlot data and services will only be available if they were requested with the ResourceRequest.
Instance properties
Inherits properties from its parent, DimensionRecord.
- parentId The id of the parent resource
- parent The parent Resource.
- children A list of child Resource.
- services A Map<string, Service> services mapped by id.
Instance methods
Inherits methods from its parent, DimensionRecord.
getAvailableServices
Syntax
getAvailableServices()
Return value: The available Services for this resource.
Description Gets the available services for this resource. Only available if withAvailableSlotsBetween, and includeServices were called.
getService
Syntax
getService(idOrName)
Parameters:
idOrName
The name or id of the service
Return value: The Service or undefined if not found
Description Get the service matching the given id or name.