Get Work Type
Default to the work type that is associated with the service territory and work type group.
A work type group represents a general appointment category or topic, such as a home loan or investment.
-
Use the
Query()request on theWorkTypeGroupMemberobject to retrieve the work types associated with the work type group selected on the Select Work Type Group screen.Sample Request
This sample REST API call uses the
Query()request to retrieve the work types.Where
YOUR_INSTANCEis a variable.Sample Response
The request returns the work type records.
-
Use the
Query()request on theServiceTerritoryWorkTypeobject by specifying the work type records retrieved in the previous step to default the work type based on the selected service territory and work type group.Sample Request
This sample REST API call uses the
Query()request to default the work type.Where
YOUR_INSTANCEis a variable.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.