User Manual

10.04.2024

MANUAL

Developer Function: Server Script: items.GetSiteByGroupName

## Overview This is the "GetSiteByGroupName method" of the "[Items Object](/en/manual/server-script-items)". It gets site information based on the specified site group name. ## Syntax ``` items.GetSiteByGroupName(groupName) ``` ## Parameters |Parameter|Type|Required|Description| |:----------|:----------|:---:|:---------------------------| |groupName|object|Yes|Specify the site group name| ## Return Value Return an array of ["ApiModel"](/manual/server-script-api-model) for the corresponding site. ## Usage Example The following example gets site information for the site named "SiteAdministrationGroup". ``` const sites = Array.from(items.GetSiteByGroupName('SiteAdministrationGroup')); if (sites.length) { sites.forEach(site => { context.Log(site.SiteId); context.Log(site.Title); context.Log(site.ReferenceType); }); } ``` ## Related Information ・[Manage Table: Server Script](/manual/table-management-server-script) ・[Execution Timing for Each Object](/manual/server-script-conditions) ・[Items Object](/manual/server-script-items)
TOP
このページをシェアする
記載された商品名、各製品名は各社の登録商標または商標です。 © Implem Inc.