---
sourceDocument: オーストラリア API リファレンス
sourceDocumentLink: https://servicenow-prod.fluidtopics.net/r/ja-JP/api-reference

 Release :

    - australia

ft:locale :

    - ja-JP

ft:publication_title :

    - オーストラリア API リファレンス

ft:clusterId :

    - crapiref

bundleId :

    - crapiref

workflow :

    - Creator


---

# GlideElementDescriptor - スコープ対象、グローバル

# GlideElementDescriptor - スコープ対象、グローバル {#ariaid-title1}

* リリースバージョン: Australia
* 
* 更新日 2026年03月12日
* 
* ![](https://www.servicenow.com/docs/portal-asset/ico-clock) 所要時間：12分

GlideElementDescriptor API は、Glide レコードの個々のフィールドに関する情報を提供します。

このクラスにはコンストラクターはありません。GlideElement または GlideRecord getED() メソッドを使用して、GlideElementDescriptor オブジェクトを取得します。

## GlideElementDescriptor - getAttachmentEncryptionType() {#ariaid-title2}

要素のテーブルの添付ファイルに使用される暗号化タイプを返します。
このメソッドは エッジ暗号化 プラグインで使用します。
{#r_ScopedGlideElementDescriptorGetAttachmentEncyrptionType__table_a3m_cg4_yr__entry__3}

| 名前 | タイプ | 説明 |
|-|-|-|
| なし |   |   |
[表 : 1. パラメーター]

{#r_ScopedGlideElementDescriptorGetAttachmentEncyrptionType__table_a3m_cg4_yr} {#r_ScopedGlideElementDescriptorGetAttachmentEncyrptionType__table_b3m_cg4_yr__entry__2}

| タイプ | 説明 |
|-|-|
| 文字列 | 添付ファイルで使用される暗号化タイプ。要素のテーブルの添付ファイルが暗号化されていない場合は null を返します。 |
[表 : 2. 返される内容]

{#r_ScopedGlideElementDescriptorGetAttachmentEncyrptionType__table_b3m_cg4_yr}  

    var grInc = new GlideRecord('incident');
    grInc.query('priority', '1');

    var field = grInc.getElement('priority');
    var ed = field.getED();

    var isEdge = ed.getAttachmentEncryptionType();
    gs.info(isEdge);

出力:

    null

## GlideElementDescriptor - getEncryptionType() {#ariaid-title3}

要素の暗号化タイプを返します。
このメソッドは エッジ暗号化 プラグインで使用します。
{#r_ScopedGlideElementDescriptorGetEncryptionType__table_icz_j24_yr__entry__3}

| 名前 | タイプ | 説明 |
|-|-|-|
| なし |   |   |
[表 : 3. パラメーター]

{#r_ScopedGlideElementDescriptorGetEncryptionType__table_icz_j24_yr} {#r_ScopedGlideElementDescriptorGetEncryptionType__table_jcz_j24_yr__entry__2}

| タイプ | 説明 |
|-|-|
| 文字列 | 要素の暗号化タイプ。要素が暗号化されていない場合は null を返します。 |
[表 : 4. 返される内容]

{#r_ScopedGlideElementDescriptorGetEncryptionType__table_jcz_j24_yr}  

    var grInc = new GlideRecord('incident');
    grInc.query('priority', '1');

    var field = grInc.getElement('priority');
    var ed = field.getED();

    sEdge = ed.getEncryptionType();
    gs.info(isEdge);

出力:

    null

## GlideElementDescriptor - getInternalType() {#ariaid-title4}

要素の内部データ型を返します。
{#r_ScopedGlideElementDescriptorGetInternalType__table_rcc_gv3_yr__entry__3}

| 名前 | タイプ | 説明 |
|-|-|-|
| なし |   |   |
[表 : 5. パラメーター]

{#r_ScopedGlideElementDescriptorGetInternalType__table_rcc_gv3_yr} {#r_ScopedGlideElementDescriptorGetInternalType__table_scc_gv3_yr__entry__2}

| タイプ | 説明 |
|-|-|
| 文字列 | 要素の内部データ型。 可能な値： * ブーリアン * char * collection * 条件 * date * 10 進数 * documentation_field * domain_id * due_date * メール * field_name * file_attachment * 浮動小数点数 * glide_date * glide_date_time * glide_duration * glide_list * GUID * html * イメージ * 整数 * long * longint * multi_two_lines * journal * journal_input * 数値 * order_index * password * ph_number * 参照 * スクリプト * script_plain * 文字列 * sys_class_name * table_name * template_value * タイマー * translated_field * URL * user_image * user_input * user_roles * video * ワークフロー {#r_ScopedGlideElementDescriptorGetInternalType__ul_g4m_znv_bkb} |
[表 : 6. 返される内容]

{#r_ScopedGlideElementDescriptorGetInternalType__table_scc_gv3_yr}  

    var grInc = new GlideRecord('incident');
    grInc.query('priority', '1');
     
    var field = grInc.getElement('priority');
    var ed = field.getED();
     
    var isEdge = ed.getInternalType();
    gs.info(isEdge);

出力:

    integer

## GlideElementDescriptor - getLabel() {#ariaid-title5}

要素のラベルを返します。
{#r_ScopedGlideElementDescriptorGetLabel__table_ypm_sw3_yr__entry__3}

| 名前 | タイプ | 説明 |
|-|-|-|
| なし |   |   |
[表 : 7. パラメーター]

{#r_ScopedGlideElementDescriptorGetLabel__table_ypm_sw3_yr} {#r_ScopedGlideElementDescriptorGetLabel__table_zpm_sw3_yr__entry__2}

| タイプ | 説明 |
|-|-|
| 文字列 | 要素のラベル。 |
[表 : 8. 返される内容]

{#r_ScopedGlideElementDescriptorGetLabel__table_zpm_sw3_yr}  

    var grInc = new GlideRecord('incident');
    grInc.query('priority', '1');
     
    var field = grInc.getElement('priority');
    var ed = field.getED();
     
    var isEdge = ed.getLabel();
    gs.info(isEdge);

出力:

    Priority

## GlideElementDescriptor - getLength() {#ariaid-title6}

要素の長さを返します。
{#r_ScopedGlideElementDescriptorGetLength__table_hpy_3x3_yr__entry__3}

| 名前 | タイプ | 説明 |
|-|-|-|
| なし |   |   |
[表 : 9. パラメーター]

{#r_ScopedGlideElementDescriptorGetLength__table_hpy_3x3_yr} {#r_ScopedGlideElementDescriptorGetLength__table_ipy_3x3_yr__entry__2}

| タイプ | 説明 |
|-|-|
| 番号 | 要素のサイズ。 |
[表 : 10. 返される内容]

{#r_ScopedGlideElementDescriptorGetLength__table_ipy_3x3_yr}  

    var grInc = new GlideRecord('incident');
    grInc.query('priority', '1');
     
    var field = grInc.getElement('priority');
    var ed = field.getED();
     
    var isEdge = ed.getLength();
    gs.info(isEdge);

出力:

    40

## GlideElementDescriptor - getName() {#ariaid-title7}

要素の名前を返します。
{#r_ScopedGlideElementDescriptorGetName__table_sh3_zx3_yr__entry__3}

| 名前 | タイプ | 説明 |
|-|-|-|
| なし |   |   |
[表 : 11. パラメーター]

{#r_ScopedGlideElementDescriptorGetName__table_sh3_zx3_yr} {#r_ScopedGlideElementDescriptorGetName__table_th3_zx3_yr__entry__2}

| タイプ | 説明 |
|-|-|
| 文字列 | 要素の名前。 |
[表 : 12. 返される内容]

{#r_ScopedGlideElementDescriptorGetName__table_th3_zx3_yr}  

    var grInc = new GlideRecord('incident');
    grInc.query('priority', '1');
     
    var field = grInc.getElement('priority');
    var ed = field.getED();
     
    var isEdge = ed.getName();
    gs.info(isEdge);

出力:

    priority

## GlideElementDescriptor:getPlural() {#ariaid-title8}

要素の複数形ラベルを返します。
{#r_SGED-getPlural__table_zqp_j1z_dv__entry__3}

| 名前 | タイプ | 説明 |
|-|-|-|
| なし |   |   |
[表 : 13. パラメーター]

{#r_SGED-getPlural__table_zqp_j1z_dv} {#r_SGED-getPlural__table_arp_j1z_dv__entry__2}

| タイプ | 説明 |
|-|-|
| 文字列 | 要素の複数形ラベル。 |
[表 : 14. 返される内容]

{#r_SGED-getPlural__table_arp_j1z_dv}  

    var now_GR = new GlideRecord('incident');
    now_GR.query();
    var ed = now_GR.getED();
    gs.info(ed.getPlural());

出力:

    Incidents

## GlideElementDescriptor - hasAttachmentsEncrypted() {#ariaid-title9}

暗号化された添付ファイルがテーブルに追加されている場合は true を返します。
このメソッドは エッジ暗号化 プラグインで使用します。
{#r_ScopedGlideElementDescriptorHasAttachmentsEncrypted__table_pwt_1h4_yr__entry__3}

| 名前 | タイプ | 説明 |
|-|-|-|
| なし |   |   |
[表 : 15. パラメーター]

{#r_ScopedGlideElementDescriptorHasAttachmentsEncrypted__table_pwt_1h4_yr} {#r_ScopedGlideElementDescriptorHasAttachmentsEncrypted__table_qwt_1h4_yr__entry__2}

| タイプ | 説明 |
|-|-|
| ブーリアン | 暗号化された添付ファイルがテーブルに追加されている場合は true を返します。 |
[表 : 16. 返される内容]

{#r_ScopedGlideElementDescriptorHasAttachmentsEncrypted__table_qwt_1h4_yr}  

    var grInc = new GlideRecord('incident');
    grInc.query('priority', '1');

    var field = grInc.getElement('priority');
    var ed = field.getED();

    var isEdge = ed.hasAttachmentsEncrypted();
    gs.info(isEdge);

出力:

    false

## GlideElementDescriptor:isAutoOrSysID() {#ariaid-title10}

要素が自動生成またはシステムフィールドの場合は true を返します。
自動生成されたフィールドとシステムフィールドは暗号化できません。このメソッドは エッジ暗号化 プラグインで使用します。
{#r_ScopedGlideElementDescriptorIsAutoOrSysID__table_y3g_nd4_yr__entry__3}

| 名前 | タイプ | 説明 |
|-|-|-|
| なし |   |   |
[表 : 17. パラメーター]

{#r_ScopedGlideElementDescriptorIsAutoOrSysID__table_y3g_nd4_yr} {#r_ScopedGlideElementDescriptorIsAutoOrSysID__table_z3g_nd4_yr__entry__2}

| タイプ | 説明 |
|-|-|
| ブーリアン | 要素が自動的に生成されるか、システムフィールドの場合は True。 |
[表 : 18. 返される内容]

{#r_ScopedGlideElementDescriptorIsAutoOrSysID__table_z3g_nd4_yr}  

    var grInc = new GlideRecord('incident');
    grInc.query('priority', '1');
    var field = grInc.getElement('priority');
    var ed = field.getED();

    isEdge = ed.isAutoOrSysID();
    gs.info(isEdge);

出力:

    false

## GlideElementDescriptor:isChoiceTable() {#ariaid-title11}

要素が辞書定義でドロップダウン選択肢として定義されている場合は true を返します。
選択肢フィールドは暗号化できません。
{#r_ScopedGlideElementDescriptorIsChoiceTable__table_upl_31s_ls__entry__3}

| 名前 | タイプ | 説明 |
|-|-|-|
| なし |   |   |
[表 : 19. パラメーター]

{#r_ScopedGlideElementDescriptorIsChoiceTable__table_upl_31s_ls} {#r_ScopedGlideElementDescriptorIsChoiceTable__table_vpl_31s_ls__entry__2}

| タイプ | 説明 |
|-|-|
| ブーリアン | 要素がドロップダウン選択肢として定義されている場合は true を返します。選択肢テーブルにエントリが定義されていない場合でも true を返します。最後の選択肢タイプである提案は true を返しません。 |
[表 : 20. 返される内容]

{#r_ScopedGlideElementDescriptorIsChoiceTable__table_vpl_31s_ls}  

    var grInc = new GlideRecord('incident');
    grInc.query('priority', '1');

    var field = grInc.getElement('priority');
    var ed = field.getED();

    var isChoiceTable = ed.isChoiceTable();
    gs.info(isChoiceTable);

出力:

    true

## GlideElementDescriptor:isEdgeEncrypted() {#ariaid-title12}

要素が暗号化されている場合は true を返します。
このメソッドは エッジ暗号化 プラグインで使用します。
{#r_ScopedGlideElementDescriptorIsEdgeEncrypted__table_jq2_gf4_yr__entry__3}

| 名前 | タイプ | 説明 |
|-|-|-|
| なし |   |   |
[表 : 21. パラメーター]

{#r_ScopedGlideElementDescriptorIsEdgeEncrypted__table_jq2_gf4_yr} {#r_ScopedGlideElementDescriptorIsEdgeEncrypted__table_kq2_gf4_yr__entry__2}

| タイプ | 説明 |
|-|-|
| ブーリアン | 要素が暗号化されている場合は true を返し、それ以外の場合は false を返します。 |
[表 : 22. 返される内容]

{#r_ScopedGlideElementDescriptorIsEdgeEncrypted__table_kq2_gf4_yr}  

    var grInc = new GlideRecord('incident');
    grInc.query('priority', '1');

    var field = grInc.getElement('priority');
    var ed = field.getED();

    var isEdge = ed.isEdgeEncrypted();
    gs.info(isEdge)

出力:

    false

## GlideElementDescriptor - isEncrypted() {#ariaid-title13}

この記述子によって表されるフィールドがフィールド暗号化用に構成されているかどうかを返します。
この方法を使用して、機密データの読み取りまたは書き込み前に暗号化されたフィールドをプログラムで検出したり、フィールドの暗号化ステータスに基づいてアクセスポリシーを適用したりします。

必要なプラグイン:フィールド暗号化スターター (com.glide.field.encryption.starter) このプラグインがないと、 isEncrypted() は false を返します。
{#SGED-isEncrypted__table_jx1_tmp_z3c__entry__3}

| 名前 | タイプ | 説明 |
|-|-|-|
| なし |   |   |
[表 : 23. パラメーター]

{#SGED-isEncrypted__table_jx1_tmp_z3c} {#SGED-isEncrypted__table_kx1_tmp_z3c__entry__2}

| タイプ | 説明 |
|-|-|
| ブーリアン | フィールドがフィールド暗号化用に構成されているかどうかを示すフラグ。 有効な値： * true:フィールドはフィールド暗号化用に構成されます。 * false:フィールドが暗号化されていないか、フィールド暗号化スターター (com.glide.field.encryption.starter) プラグインがアクティブではありません。 {#SGED-isEncrypted__ul_ent_dnp_z3c} |
[表 : 24. 返される内容]

{#SGED-isEncrypted__table_kx1_tmp_z3c}  
次のサーバー側スクリプトでは、 isEncrypted() を使用して、値をログに記録する前にインシデントテーブルのshort_descriptionフィールドが暗号化されているかどうかを確認します。これをインスタンスのバックグラウンドスクリプトまたはビジネスルールにコピーしてテストします。  
注:  
[GlideRecord - getED()](https://servicenow-prod.fluidtopics.net/k3bj5xjwIDZp86NECoEt2A#r_GlideRecord-getED "要素の記述子を返します。") メソッドまたは [スコープ付き GlideElement - getED()](https://servicenow-prod.fluidtopics.net/QV~Sg~onNeudOjbVEFHK0Q#r_ScopedGlideElementGetED "フィールドの要素記述子を返します。") メソッドを使用して、GlideElementDescriptor オブジェクトを取得します。

    // Retrieve a sample Incident record
    var gr = new GlideRecord('incident');
    gr.setLimit(1);
    gr.query();

    if (gr.next()) {
        // Get the GlideElement for the field you want to inspect
        var element = gr.getElement('short_description');

        // Retrieve the descriptor from the element
        var descriptor = element.getED();

        // Check whether the field is configured for Field Encryption
        if (descriptor.isEncrypted()) {
            gs.info('short_description is encrypted. Value: ' + element.getDisplayValue());
        } else {
            gs.info('short_description is NOT encrypted. Value: ' + gr.getValue('short_description'));
        }
    }

出力 (暗号化なし):

    short_description is NOT encrypted. Value: Unable to connect to network

出力 (フィールドで暗号化が有効):

    short_description is encrypted. Value: Unable to connect to network

## GlideElementDescriptor:isMandatory() {#ariaid-title14}

要素が必須であり、レコードを保存する前に値を含める必要があるかどうかを決定します。
{#SGED-isMandatory__table_xxq_xwv_shb__entry__3}

| 名前 | タイプ | 説明 |
|-|-|-|
| なし |   |   |
[表 : 25. パラメーター]

{#SGED-isMandatory__table_xxq_xwv_shb} {#SGED-isMandatory__table_yxq_xwv_shb__entry__2}

| タイプ | 説明 |
|-|-|
| ブーリアン | 関連する要素が必須であり、要素を含むレコードを保存する前に値が含まれている必要があるかどうかを示すフラグ。 可能な値： * true:要素には値が含まれている必要があります。必須フィールド * false:要素に値を含める必要はありません {#SGED-isMandatory__ul_l1h_kxv_shb} |
[表 : 26. 返される内容]

{#SGED-isMandatory__table_yxq_xwv_shb}  
この例は、名前フィールドが必須かどうかを確認する方法を示しています。

    var isRecordValid;
    var now_GR = new GlideRecord('my_table');
    var field = now_GR.getElement('name');
    var elementDescriptor = field.getED();
    now_GR.query();
    while (now_GR.next()) {
    if (elementDescriptor.isMandatory() && !now_GR.name) {
           isRecordValid = false;
      }
    }

## GlideElementDescriptor - isVirtual() {#ariaid-title15}

要素が仮想要素の場合は true を返します。
仮想要素は、フィールドの辞書定義によって設定される計算フィールドです。仮想フィールドは暗号化できません。
{#r_ScopedGlideElementDescriptorIsVirtual__table_xzh_ybs_ls__entry__3}

| 名前 | タイプ | 説明 |
|-|-|-|
| なし |   |   |
[表 : 27. パラメーター]

{#r_ScopedGlideElementDescriptorIsVirtual__table_xzh_ybs_ls} {#r_ScopedGlideElementDescriptorIsVirtual__table_yzh_ybs_ls__entry__2}

| タイプ | 説明 |
|-|-|
| ブーリアン | 要素が仮想要素の場合は true を返します。 |
[表 : 28. 返される内容]

{#r_ScopedGlideElementDescriptorIsVirtual__table_yzh_ybs_ls}  

    var grInc = new GlideRecord('incident');
    grInc.query('priority', '1');

    var field = grInc.getElement('priority');
    var ed = field.getED();

    var isVirtual = ed.isVirtual();
    gs.info(isVirtual);

出力:

    false


