User Manual

08.14.2024

MANUAL

Developer Function: Script: $p.apiUrl

## Overview This section explains the methods that can be used to obtain URL values ​​when making an API request via an Ajax POST request. ## Syntax ##### JavaScript ``` $p.apiUrl( <Site ID>, <Action Type> ); ``` ## Description Of Each Parameter |Parameter name|Description| |:--|:--| |Site ID|Site ID for which you want to get the URL| |Action type|get, create, update, delete| ## Usage Example (1) Create a folder or table. In this example, the site ID is 109 and the action type is get. (2) Create a new 「Script」, write the script content below, check 「List」 as the output destination, and update. For Wiki, check "Edit" as the output destination. ##### JavaScript ``` alert('The generated URL is [' + $p.apiUrl(99999,'get') + ']'); ``` (3) Go to the list screen. ##### Result ``` The generated URL is [/api/items/99999/get]. ```
code VS Codeで開発作業をもっとスマートに

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

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

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

Site Visualizerの詳細はこちら →
TOP