# Get Work Type Groups

After authentication, you need to show the work type groups for the user to select. A work type group represents a general appointment category or topic, such as a home loan or investment.

Create a page in your app where you can show the work type groups from your org. Use the `Query()` method on the WorkTypeGroup object to retrieve a list of work type groups.

**Sample Request**

This sample REST API call uses the `Query()` request to retrieve work type groups. For more information, see [Execute a SOQL Query](https://developer.salesforce.com/docs/atlas.en-us.api_rest.meta/api_rest/dome_query.htm).

```nolang
https://yourInstance.salesforce.com/services/data/vXX.X/query/?q=SELECT+Id,+Name+From+WorkTypeGroup
+Where+isActive+=+true+ORDER+BY+NAME
```

You can use the `toLabel` method to translate the SOQL query results in the language of the user. For more information, see [Translate SOQL Query Results](/docs/service/salesforce-scheduler-dev-guide/guide/salesforce-scheduler-soql-select-tolabel.md).

**Sample Response**

The request returns the available work type groups from your org.

```nolang
{
  "totalSize": 6,
  "done": true,
  "records": [
    {
      "attributes": {
        "type": "WorkTypeGroup",
        "url": "/services/data/vXX.X/sobjects/WorkTypeGroup/0VSB0000000L6XeOAK"
      },
      "Id": "0VSB0000000L6XeOAK",
      "Name": "General Banking Group"
    },
    {
      "attributes": {
        "type": "WorkTypeGroup",
        "url": "/services/data/vXX.X/sobjects/WorkTypeGroup/0VSB0000000L6XyOAK"
      },
      "Id": "0VSB0000000L6XyOAK",
      "Name": "Insurance Management"
    },
    {
      "attributes": {
        "type": "WorkTypeGroup",
        "url": "/services/data/vXX.X/sobjects/WorkTypeGroup/0VSB0000000L71HOAS"
      },
      "Id": "0VSB0000000L71HOAS",
      "Name": "Investments"
    },
    {
      "attributes": {
        "type": "WorkTypeGroup",
        "url": "/services/data/vXX.X/sobjects/WorkTypeGroup/0VSB0000000L6Y3OAK"
      },
      "Id": "0VSB0000000L6Y3OAK",
      "Name": "Loan Planning"
    },
    {
      "attributes": {
        "type": "WorkTypeGroup",
        "url": "/services/data/vXX.X/sobjects/WorkTypeGroup/0VSB0000000TbhWOAS"
      },
      "Id": "0VSB0000000TbhWOAS",
      "Name": "LSConcurrent Work Type Group"
    },
    {
      "attributes": {
        "type": "WorkTypeGroup",
        "url": "/services/data/vXX.X/sobjects/WorkTypeGroup/0VSB0000000L6Y4OAK"
      },
      "Id": "0VSB0000000L6Y4OAK",
      "Name": "Wealth Planning"
    }
  ]
}
```

Parse the JSON response, and display the work type groups on a page in your app so that users can select a work type group for the appointment. Here’s how that page can look.

![A representation of the Select Work Type Group screen.](https://a.sfdcstatic.com/developer-website/sfdocs/service-cloud/media/salesforce-scheduler-dev-guide/concurrent-workTypeGroups.png)

On the next page in your app, you can provide users an option to search for service territories.
