# PeopleForce

> Sync employee directories, departments and locations for HR operations. Read-only beta integration.

App · 3 actions. Web page: https://docs.lodol.com/docs/integrations/peopleforce

## Actions

### List departments

List departments using the documented API. Returns one page; use the pagination fields to continue.

**Inputs**

- Page (`page`, number): Page index; first page is 1. At least 1.

**Outputs**

- `data` (object): The response from PeopleForce.

**Example output**

```json
{
  "data": {
    "data": [
      {
        "id": 1,
        "name": "Operations",
        "parent_id": 2
      }
    ],
    "metadata": {
      "pagination": {
        "count": 1,
        "items": 1,
        "page": 1,
        "pages": 1
      }
    }
  }
}
```

### List employees

List employees using the documented API. Returns one page; use the pagination fields to continue.

**Inputs**

- Page (`page`, number): Page index; first page is 1. At least 1.

**Outputs**

- `data` (object): The response from PeopleForce.

**Example output**

```json
{
  "data": {
    "data": [
      {
        "email": "employee@example.com",
        "first_name": "Example",
        "id": 1,
        "last_name": "Employee"
      }
    ],
    "metadata": {
      "pagination": {
        "count": 1,
        "items": 1,
        "page": 1,
        "pages": 1
      }
    }
  }
}
```

### List locations

List locations using the documented API. Returns one page; use the pagination fields to continue.

**Inputs**

- Page (`page`, number): Page index; first page is 1. At least 1.

**Outputs**

- `data` (object): The response from PeopleForce.

**Example output**

```json
{
  "data": {
    "data": [
      {
        "country_code": "GB",
        "id": 1,
        "name": "London"
      }
    ],
    "metadata": {
      "pagination": {
        "count": 1,
        "items": 1,
        "page": 1,
        "pages": 1
      }
    }
  }
}
```
