0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

【ServiceNow】クライアントスクリプトをJavaScript Executorで確認する方法

Last updated at Posted at 2025-05-12

🧠 JavaScript Executorとは?

ServiceNowのClient Scripts/UI Policies etcを利用できる、一時的なコード実行環境のことです。
クライアント側のコードをすばやく作成およびデバッグするのに役立ちます。

  • バックグラウンドスクリプトは実行できないため注意:warning:
  • 基本的にはadminロールを持つユーザーのみが使用可能

🛠 使用方法

ステップ1:「Alt + Ctrl + Shift + j」を押下する

Javascript Executorを開きます
image.png

ステップ2:コードを記述して実行

以下のように、スクリプトを入力して「Run my code」をクリックします。
今回の場合、User IDが取得できていることが確認できる。

alert(g_form.getValue("user_name"));

image.png

image.png

参考

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?