Developer Function: Server Script: depts
## Overview
This is an object that performs operations related to "[Depts](/en/manual/table-management-choices-text-depts)" that can be used in "[Server Script](/en/manual/table-management-server-script)".
## Properties
There are no properties.
## Method
|No|Name|Description|
|:---|:---|:---|
|1|Get|Get the "dept object". |
## Usage Example
The following example gets information about the depts to which the logged-in user belongs.
##### JavaScript
```
let myDept = depts.Get(context.DeptId);
if (myDept) {
context.Log(`DeptName: ${myDept.DeptName}`);
}
```
## Related Information
<div id="ManualList"><ul><li><a href="/en/manual/table-management-choices-text-depts">Table Management: Editor: Item Detail Settings: Option List: Departments</a><span>08.13.2024 up</span></li></ul></article>
<ul><li><a href="/en/manual/table-management-server-script">Table Management: Server Script</a><span>08.13.2024 up</span></li></ul></article>
<ul><li><a href="/en/manual/dept">Department Management Function</a><span>08.13.2024 up</span></li></ul></article></div><input id="SearchTextHidden" type="hidden" value="" />