User Manual

10.04.2024

MANUAL

Developer Function: Server Script: items.GetSite

## Overview This is the "GetSite Method" of the "「Items Object」". It gets site information based on the specified site ID. ## Syntax ``` items.GetSite(id) ``` ## Parameters |Parameter|Type|Required|Description| |:----------|:----------|:---:|:---------------------------| |id|object|Yes|Specify the site ID| ## Return Value Return an array of "apiModel" for the corresponding site. ## Usage Example The following example gets site information for site ID 123. ``` const sites = Array.from(items.GetSite(123)); if (sites.length) { context.Log(sites[0].SiteId); context.Log(sites[0].Title); context.Log(sites[0].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)
code VS Codeで開発作業をもっとスマートに

スクリプト開発の効率を高めたい方に、Code Assistをご用意しています。

Code Assistの詳細はこちら →
account_tree 複雑な構成も、すっきり視覚化

サイト構成やデータのつながりを可視化し、把握しやすくします。

Site Visualizerの詳細はこちら →
TOP