Skip to content

$p.deptId

Overview

This explains the function to get the dept ID of the logged-in user.

Syntax

$p.deptId()

Usage Examples

The following is a script that sets the department ID of the logged-in user in the department input column.

JavaScript
$p.set($p.getControl('ClassA'), $p.deptId());