Get Work Type Groups

A work type group represents a general appointment category or topic, such as a home loan or investment. Show your users your work type groupson the landing page of your app by retrieving the list of work type groups from your Salesforce instance. Your users can select a work type group from the list while booking appointments.

  1. Create a page to show your work type groups.

  2. To retrieve the list of work type groups from your Salesforce instance, use the Query() request on the WorkTypeGroup object.

    Sample Request

    Where YOUR_INSTANCE is a variable.

    Sample Response

    The request returns the work type group records.

  3. Parse the JSON response, and display the work type groups on a page that you created. Your users can select a work type group for the appointment.