---
sourceDocument: Xanadu API リファレンス
sourceDocumentLink: https://www.servicenow.com/docs/r/ja-JP/xanadu/api-reference

 Release :

    - xanadu

ft:locale :

    - ja-JP

ft:publication_title :

    - Xanadu API リファレンス

ft:clusterId :

    - crapiref

bundleId :

    - crapiref

workflow :

    - Creator


---

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

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

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

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

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

## 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 * conditions * date * decimal * documentation_field * domain_id * due_date * email * field_name * file_attachment * float * glide_date * glide_date_time * glide_duration * glide_list * GUID * html * image * integer * long * longint * multi_two_lines * journal * journal_input * numeric * order_index * password * ph_number * reference * script * script_plain * string * sys_class_name * table_name * template_value * timer * translated_field * url * user_image * user_input * user_roles * video * workflow {#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 - isMandatory() {#ariaid-title13}

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

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

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

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

{#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-title14}

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

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

{#r_ScopedGlideElementDescriptorIsVirtual__table_xzh_ybs_ls} {#r_ScopedGlideElementDescriptorIsVirtual__table_yzh_ybs_ls__entry__2}

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

{#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


