> For the complete documentation index, see [llms.txt](https://docs.fieldmotion.com/fieldmotion-api-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.fieldmotion.com/fieldmotion-api-docs/departments/_getbyid.md).

# \_getById

### Parameters:

#### ids

The ids of the listed departments

#### fields

The fields about a department that are returned: (id, name, last\_edited, cdate)

### Example

```
FM_api("Departments_getById",["ids"=>"[337102]","fields"=>'["id","name","last_edited","cdate"]'])
```

### Result

```
[{"id":"337102","name":"askf","last_edited":"2022-11-06 14:10:52","cdate":"2022-11-06 14:10:52"}]
```
