# Sling

> Look up employees, groups, schedules, tasks and timesheets.

App · 14 actions. Web page: https://docs.lodol.com/docs/integrations/sling

## Actions

### Get a group

Get a group.

**Inputs**

- Group (`group_id`, number, required): Group id.

**Outputs**

- `data` (object): The response from get a group.
- `has_more` (true/false): Whether another page is available.
- `next_cursor` (text): The page or cursor to pass to the next request.

**Example output**

```json
{
  "data": {},
  "has_more": false,
  "next_cursor": null
}
```

### Get a scheduled task

Get a scheduled task.

**Inputs**

- Task instance ID (`task_instance_id`, number, required): The identifer of the task instance to be read.

**Outputs**

- `data` (object): The response from get a scheduled task.
- `has_more` (true/false): Whether another page is available.
- `next_cursor` (text): The page or cursor to pass to the next request.

**Example output**

```json
{
  "data": {},
  "has_more": false,
  "next_cursor": null
}
```

### Get a timesheet report

Get a timesheet report.

**Inputs**

- Start date (`start_date`, date, required): First date of the requested interval.
- End date (`end_date`, date, required): Last date of the requested interval.

**Outputs**

- `data` (object): The response from get a timesheet report.
- `has_more` (true/false): Whether another page is available.
- `next_cursor` (text): The page or cursor to pass to the next request.

**Example output**

```json
{
  "data": {},
  "has_more": false,
  "next_cursor": null
}
```

### Get an employee

Get an employee.

**Inputs**

- Employee (`employee_id`, number, required): id of user.

**Outputs**

- `data` (object): The response from get an employee.
- `has_more` (true/false): Whether another page is available.
- `next_cursor` (text): The page or cursor to pass to the next request.

**Example output**

```json
{
  "data": {},
  "has_more": false,
  "next_cursor": null
}
```

### Get schedule totals

Get schedule totals.

**Inputs**

- Location IDS (`location_ids`, list): list of relevant location IDs - default is all.
- Position IDS (`position_ids`, list): list of relevant position IDs - default is all.
- Start date (`start_date`, date, required): First date of the requested interval.
- End date (`end_date`, date, required): Last date of the requested interval.

**Outputs**

- `data` (object): The response from get schedule totals.
- `has_more` (true/false): Whether another page is available.
- `next_cursor` (text): The page or cursor to pass to the next request.

**Example output**

```json
{
  "data": {
    "allShifts": 1,
    "availableShifts": 1,
    "cost": 1,
    "costByLocationId": {},
    "holidayHours": 1,
    "holidayOvertimeCost": 1,
    "holidayOvertimeHours": 1,
    "hourlyCost": 1,
    "hourlyCostByDate": {},
    "hourlyCostByLocationId": {},
    "hourlyCostByUserId": {},
    "hoursByUserId": {},
    "laborPercentage": 1,
    "laborPercentageByLocationId": {},
    "noShows": 1,
    "nonHolidayHours": 1,
    "overtimeCost": 1,
    "overtimeHours": 1,
    "paidMinutes": 1,
    "publishedShifts": 1,
    "salaryCost": 1,
    "salaryCostByLocationId": {},
    "sickCallouts": 1,
    "totalOvertimeCost": 1,
    "totalOvertimeHours": 1,
    "unassignedShifts": 1,
    "unpublishedShifts": 1
  },
  "has_more": false,
  "next_cursor": null
}
```

### Get the Sling session

Get the Sling session.

**Inputs**: None.

**Outputs**

- `data` (object): The response from get the Sling session.
- `has_more` (true/false): Whether another page is available.
- `next_cursor` (text): The page or cursor to pass to the next request.

**Example output**

```json
{
  "data": {},
  "has_more": false,
  "next_cursor": null
}
```

### List calendar events

List calendar events.

**Inputs**

- Org ID (`org_id`, number): Organization ID. Leave blank to use the connected organization.
- Employee ID (`employee_id`, number, required): Identifier of User to fetch events for.
- Location IDS (`location_ids`, list): list of relevant location IDs - default is all.
- Position IDS (`position_ids`, list): list of relevant position IDs - default is all.
- Page size (`page_size`, number): number of results to return. At least 0.
- Page (`page`, number): number of results to return * page. At least 0.
- Show planning events (`show_planning_events`, true/false): controls whether to show events with the status of planning.
- Start date (`start_date`, date, required): First date of the requested interval.
- End date (`end_date`, date, required): Last date of the requested interval.

**Outputs**

- `data` (list): The response from list calendar events.
- `has_more` (true/false): Whether another page is available.
- `next_cursor` (text): The page or cursor to pass to the next request.

**Example output**

```json
{
  "data": [
    {
      "id": "123"
    }
  ],
  "has_more": false,
  "next_cursor": null
}
```

### List channels

List channels.

**Inputs**: None.

**Outputs**

- `data` (list): The response from list channels.
- `has_more` (true/false): Whether another page is available.
- `next_cursor` (text): The page or cursor to pass to the next request.

**Example output**

```json
{
  "data": [],
  "has_more": false,
  "next_cursor": null
}
```

### List employees

List employees.

**Inputs**

- Query (`query`, text): Only return users with matching prefix in name, lastname or email.
- IDS (`ids`, text): Comma separated list of ids, only return users with matching id.
- Include deleted (`include_deleted`, text): Include deleted users.

**Outputs**

- `data` (list): The response from list employees.
- `has_more` (true/false): Whether another page is available.
- `next_cursor` (text): The page or cursor to pass to the next request.

**Example output**

```json
{
  "data": [
    {
      "id": "123"
    }
  ],
  "has_more": false,
  "next_cursor": null
}
```

### List employees working on a date

List employees working on a date.

**Inputs**

- Date (`date`, date): ISO date.

**Outputs**

- `data` (list): The response from list employees working on a date.
- `has_more` (true/false): Whether another page is available.
- `next_cursor` (text): The page or cursor to pass to the next request.

**Example output**

```json
{
  "data": [
    {
      "id": "123"
    }
  ],
  "has_more": false,
  "next_cursor": null
}
```

### List groups

List groups.

**Inputs**

- IDS (`ids`, text): Comma separated list of ids, only return groups with matching ids.
- Type (`type`, text): Return only groups of this type. One of: `location`, `position`, `group`.

**Outputs**

- `data` (list): The response from list groups.
- `has_more` (true/false): Whether another page is available.
- `next_cursor` (text): The page or cursor to pass to the next request.

**Example output**

```json
{
  "data": [
    {
      "id": "123"
    }
  ],
  "has_more": false,
  "next_cursor": null
}
```

### List scheduled tasks

List scheduled tasks.

**Inputs**

- Start date (`start_date`, date, required): First date of the requested interval.
- End date (`end_date`, date, required): Last date of the requested interval.

**Outputs**

- `data` (list): The response from list scheduled tasks.
- `has_more` (true/false): Whether another page is available.
- `next_cursor` (text): The page or cursor to pass to the next request.

**Example output**

```json
{
  "data": [
    {
      "id": "123"
    }
  ],
  "has_more": false,
  "next_cursor": null
}
```

### List shift templates

List shift templates.

**Inputs**: None.

**Outputs**

- `data` (list): The response from list shift templates.
- `has_more` (true/false): Whether another page is available.
- `next_cursor` (text): The page or cursor to pass to the next request.

**Example output**

```json
{
  "data": [],
  "has_more": false,
  "next_cursor": null
}
```

### List task templates

List task templates.

**Inputs**: None.

**Outputs**

- `data` (list): The response from list task templates.
- `has_more` (true/false): Whether another page is available.
- `next_cursor` (text): The page or cursor to pass to the next request.

**Example output**

```json
{
  "data": [],
  "has_more": false,
  "next_cursor": null
}
```
