- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-27-2025 11:30 PM
User[sys_user]テーブルを参照しているフィールドのDefault valueをログインしているユーザーにしたいのですが、どうすれば実現できますか?
Client scriptなどカスタマイズを実施せずに実現することが理想です。
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-28-2025 12:37 AM - edited 10-28-2025 12:40 AM
Syntax used is incorrect, it should be
Refer below link for more details
https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0718092
If this helped to answer your query, please mark it helpful & accept the solution.
Thanks,
Bhuvan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-28-2025 12:43 AM - edited 10-28-2025 12:45 AM
you have use javascript. it should be " javascript : "
javascript: gs.getUserID(). I have attached the image open the link in incognito once
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-27-2025 11:38 PM - edited 10-27-2025 11:46 PM
Hi @慶吾岡
you can do it without using client scripts by setting the Default value field in the variable or dictionary entry to:
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-27-2025 11:54 PM
あなたの提示した方法を試してみたのですが、「Invalid default value」と表示され正常に実行できませんでした。
原因に心当たりはありませんか?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-28-2025 12:17 AM
Can you send me the screenshot of the error.. and did you give the proper default value? what is the type of column you are using..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-28-2025 12:27 AM
PDIで作成したテーブルで検証しています。
フィールドの設定は添付画像を確認してください。