Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

ログインしているユーザー情報を自動出力したい

Sota Kimura2
Tera Contributor

こんにちは。

Service Portalでcaseテーブルを拡張したテーブルを参照したRecord Producerを作成しました。

「タイプ=一行テキスト」のフィールドに、ログインしているユーザーのアカウント(customer_account)の値を文字列で自動出力したいです。

具体的に、どのようなスクリプトを書けば良いでしょうか?

以下、試みましたが正常に値を取得できません。

javascript:gs.getUser().getCompanyRecord().name

似たような相談をされていた方の投稿(https://community.servicenow.com/community?id=community_question&sys_id=39ea5bcf1b24d910587a11751a4bcbfe&view_source=searchResult)を見ましたが、解決できませんでした。 ご検討の程よろしくお願いいたします。

0 REPLIES 0