User Manual

08.14.2024

MANUAL

Developer Function: Server Script: group.ContainsDept

Overview

Determine whether the "group object" in the "「Server Script」" contains the specified "「Depts」".

Syntax

group.ContainsDept(deptId)

Return Value

If the specified "「Depts」" is included, it returns true.; if not, it returns false.

Usage Example

The following example checks whether the "「Group」" with group ID 1 contains the "「Dept」" of the logged-in user.

JavaScript
let group = groups.Get(1);
if (group.ContainsDept(context.DeptId)) {
    context.Log('contains');
} else {
    context.Log('not contains');
}
このページをシェアする
記載された商品名、各製品名は各社の登録商標または商標です。 © Implem Inc.