LoginSignup
0
1

【ServiceNow】sys_userの参照項目で姓名の表示順番を変更する方法

Last updated at Posted at 2023-10-02

概要

ユーザーテーブル(sys_user)の参照項目でユーザーを選択した場合、OOTBでは「<名><姓>」で表示されます。
(表示値はOOTBで「名前(name)」になっています。)

日本では基本的に「<姓><名>」で表示されることが多いため、表示の変更方法を記載していきます。
※言語は「日本語」の画面で説明します。

image.png
image.png

バージョン

サンディエゴ

実装方法

1.sys_userテーブルの「名前(name)」のディクショナリーを開く
image.png

2.計算された値のスクリプトを修正する。
image.png

14行目の処理(OOTBのスクリプト)で「<名(first_name)><姓(last_name)>」の順で表示するように設定されている。
この1行の処理を逆にした以下のスクリプト挿入する。(画像の15行目)

current.last_name + ' ' + current.first_name;

image.png

結果

ユーザーテーブル(sys_user)の参照項目が「<姓><名>」の順に表示されるようになる。
image.png

0
1
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
1