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.

サーバサイドスクリプトで項目のカラムネームを取得する方法

Fagi
Tera Contributor

コミュニティーの皆様

いつもお世話になっております。

サーバサイドスクリプトで項目のカラムネームを取得したいのですが、可能でしょうか?

GlideRecordのgetLabelメソッドを使用することで、カラムラベルの取得は可能なことはわかっていますが、

カラムネームを取得する方法が分かりません。

 

1 REPLY 1

senon
Tera Sage
Tera Sage

getFields()メソッドを使用することで、フィールド名を取得することが可能です。

 

GlideRecord - getFields | ServiceNow Developers