Get Work Types
Get the correct work type record that represents the work type group and service territory that are selected in the previous step.
A work type represents a type of work to be performed in Salesforce Scheduler. A work type is a template representing an appointment topic (work type group) with an appointment location (service territory). It defines key appointment parameters such as appointment duration, preparation and wrap-up buffers, and availability timings.
-
Use the
Query()request on the WorkTypeGroupMember object to retrieve a work type for the work type group selected in the Get Work Type Groups step.Sample Request
This sample REST API call uses the
Query()request retrieve work type records that are associated with the selected work type group.Sample Response
The request returns the work type records.
-
Use the
Query()request on the ServiceTerritoryWorkType object to filter the correct work type for the selected service territory selected in the Get Service Territories step.Sample Request
This sample REST API call uses the
Query()request to find the correct work type for the selected service territory.Sample Response
The request returns the work type records.
On the next page in your app, you can show the service resources and their availability.