> ## Documentation Index
> Fetch the complete documentation index at: https://docs.blinkops.com/llms.txt
> Use this file to discover all available pages before exploring further.

# List Legal Entity Departments

Retrieve the departments of a legal entity by ID.

> [!NOTE]
>
> External Documentation
>
> To learn more, visit the [Paycor documentation](https://developers.paycor.com/explore?version=2#operation/Get%20Legal%20Entity%20Departments%20by%20Legal%20Entity%20ID).

## Parameters

| Parameter | Description |
| - | - |
| Continuation Token | The continuation token to retrieve the next page of results. |
| Legal Entity ID | The ID of the legal entity to get the departments of. |

## Example Output

```json theme={"dark"}
{
	"hasMoreResults": "True",
	"continuationToken": "3ac2fca9-09f2-49fb-86d7-b1b84ed6ca74",
	"additionalResultsUrl": "/v1/myresources/xyz?continuationTokenId=3ac2fca9-09f2-49fb-86d7-b1b84ed6ca74",
	"records": [
		{
			"id": "cb4a1b67-000c-0000-0000-000066000000",
			"code": "123",
			"description": "Department 123",
			"parentId": "cb4a1b67-000c-0000-0000-000066000077",
			"level": 2,
			"payrollId": "cb4a1b67-000c-0000-0000-000066000077",
			"payrollDescription": "string",
			"workLocationId": "5245ae3d-e570-0000-0000-000066000000",
			"workLocationName": "ACME East is an open concept office.",
			"customFieldValues": "{\"name\", \"xyz\"}"
		}
	]
}
```

## Workflow Library Example

[List Legal Entity Departments with Paycor and Send Results Via Email](https://library.blinkops.com/workflows/list-legal-entity-departments-with-paycor-and-send-results-via-email)

![Workflow Library](https://mintcdn.com/blinkops-2/ojHYuDeYX5FWuN8a/img/Icons/play-box.svg?fit=max\&auto=format\&n=ojHYuDeYX5FWuN8a\&q=85\&s=b8af968e71438a9499c3223c9bd29fb2)

Preview this Workflow on desktop

[https://library.blinkops.com/workflows/list-legal-entity-departments-with-paycor-and-send-results-via-email/canvas](https://library.blinkops.com/workflows/list-legal-entity-departments-with-paycor-and-send-results-via-email/canvas)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.