---
sourceDocument: Referência de API do Brasil
sourceDocumentLink: https://servicenow-prod.fluidtopics.net/r/pt-BR/api-reference

 Release :

    - brazil

ft:locale :

    - pt-BR

ft:publication_title :

    - Referência de API do Brasil

ft:clusterId :

    - crapiref

bundleId :

    - crapiref

workflow :

    - Creator


---

# GlideElementDescriptor - escopo, global

# GlideElementDescriptor - escopo, global {#ariaid-title1}

Versão de lançamento: Brazil  
Atualizado 10 de set. de 2026  
![](https://www.servicenow.com/docs/portal-asset/ico-clock) 6 min. de leitura  
A API GlideElementDescriptor fornece informações sobre campos individuais em um registro do Glide.

Não há construtor para esta classe. Use o método GlideElement ou GlideRecord getED() para obter um objeto GlideElementDescriptor.

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

Retorna o tipo de criptografia usado para anexos na tabela do elemento.
Este método é para uso com o Edge Encryption plug-in.
{#r_ScopedGlideElementDescriptorGetAttachmentEncyrptionType__table_a3m_cg4_yr__entry__3}

| Nome | Tipo | Descrição |
|-|-|-|
| Nenhum |   |   |
[Tabela 1. Parâmetros]

{#r_ScopedGlideElementDescriptorGetAttachmentEncyrptionType__table_a3m_cg4_yr} {#r_ScopedGlideElementDescriptorGetAttachmentEncyrptionType__table_b3m_cg4_yr__entry__2}

| Tipo | Descrição |
|-|-|
| Cadeia de caracteres | O tipo de criptografia usado em anexos. Retorna nulo se os anexos na tabela do elemento não estiverem sendo criptografados. |
[Tabela 2. Retorna]

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

Saída:

    null

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

Retorna o tipo de criptografia do elemento.
Este método é para uso com o Edge Encryption plug-in.
{#r_ScopedGlideElementDescriptorGetEncryptionType__table_icz_j24_yr__entry__3}

| Nome | Tipo | Descrição |
|-|-|-|
| Nenhum |   |   |
[Tabela 3. Parâmetros]

{#r_ScopedGlideElementDescriptorGetEncryptionType__table_icz_j24_yr} {#r_ScopedGlideElementDescriptorGetEncryptionType__table_jcz_j24_yr__entry__2}

| Tipo | Descrição |
|-|-|
| Cadeia de caracteres | O tipo de criptografia do elemento. Retorna nulo se o elemento não estiver criptografado. |
[Tabela 4. Retorna]

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

Saída:

    null

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

Retorna o tipo de dados internos do elemento.
{#r_ScopedGlideElementDescriptorGetInternalType__table_rcc_gv3_yr__entry__3}

| Nome | Tipo | Descrição |
|-|-|-|
| Nenhum |   |   |
[Tabela 5. Parâmetros]

{#r_ScopedGlideElementDescriptorGetInternalType__table_rcc_gv3_yr} {#r_ScopedGlideElementDescriptorGetInternalType__table_scc_gv3_yr__entry__2}

| Tipo | Descrição |
|-|-|
| Cadeia de caracteres | O tipo de dados internos do elemento. Valores possíveis: * booliano * caract * collection * condições * data * decimal * documentation_field * domain_id * due_date * e-mail * field_name * file_attachment * variável * glide_date * glide_date_time * glide_duration * glide_list * GUID * html * imagem * inteiro * longo * longint * multi_two_lines * registro * journal_input * numérico * order_index * password * ph_number * referência * script * script_plain * Cadeia de caracteres * sys_class_name * table_name * template_value * timer * translated_field * url * user_image * user_input * user_roles * vídeo * fluxo de trabalho {#r_ScopedGlideElementDescriptorGetInternalType__ul_g4m_znv_bkb} |
[Tabela 6. Retorna]

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

Saída:

    integer

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

Retorna o rótulo do elemento.
{#r_ScopedGlideElementDescriptorGetLabel__table_ypm_sw3_yr__entry__3}

| Nome | Tipo | Descrição |
|-|-|-|
| Nenhum |   |   |
[Tabela 7. Parâmetros]

{#r_ScopedGlideElementDescriptorGetLabel__table_ypm_sw3_yr} {#r_ScopedGlideElementDescriptorGetLabel__table_zpm_sw3_yr__entry__2}

| Tipo | Descrição |
|-|-|
| Cadeia de caracteres | O rótulo do elemento. |
[Tabela 8. Retorna]

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

Saída:

    Priority

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

Retorna o comprimento do elemento.
{#r_ScopedGlideElementDescriptorGetLength__table_hpy_3x3_yr__entry__3}

| Nome | Tipo | Descrição |
|-|-|-|
| Nenhum |   |   |
[Tabela 9. Parâmetros]

{#r_ScopedGlideElementDescriptorGetLength__table_hpy_3x3_yr} {#r_ScopedGlideElementDescriptorGetLength__table_ipy_3x3_yr__entry__2}

| Tipo | Descrição |
|-|-|
| Número | O tamanho do elemento. |
[Tabela 10. Retorna]

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

Saída:

    40

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

Retorna o nome do elemento.
{#r_ScopedGlideElementDescriptorGetName__table_sh3_zx3_yr__entry__3}

| Nome | Tipo | Descrição |
|-|-|-|
| Nenhum |   |   |
[Tabela 11. Parâmetros]

{#r_ScopedGlideElementDescriptorGetName__table_sh3_zx3_yr} {#r_ScopedGlideElementDescriptorGetName__table_th3_zx3_yr__entry__2}

| Tipo | Descrição |
|-|-|
| Cadeia de caracteres | O nome do elemento. |
[Tabela 12. Retorna]

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

Saída:

    priority

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

Retorna o rótulo plural do elemento.
{#r_SGED-getPlural__table_zqp_j1z_dv__entry__3}

| Nome | Tipo | Descrição |
|-|-|-|
| Nenhum |   |   |
[Tabela 13. Parâmetros]

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

| Tipo | Descrição |
|-|-|
| Cadeia de caracteres | O rótulo plural do elemento. |
[Tabela 14. Retorna]

{#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());

Saída:

    Incidents

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

Retorna verdadeiro se um anexo criptografado tiver sido adicionado à tabela.
Este método é para uso com o Edge Encryption plug-in.
{#r_ScopedGlideElementDescriptorHasAttachmentsEncrypted__table_pwt_1h4_yr__entry__3}

| Nome | Tipo | Descrição |
|-|-|-|
| Nenhum |   |   |
[Tabela 15. Parâmetros]

{#r_ScopedGlideElementDescriptorHasAttachmentsEncrypted__table_pwt_1h4_yr} {#r_ScopedGlideElementDescriptorHasAttachmentsEncrypted__table_qwt_1h4_yr__entry__2}

| Tipo | Descrição |
|-|-|
| Booliano | Retorna verdadeiro se um anexo criptografado tiver sido adicionado à tabela. |
[Tabela 16. Retorna]

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

Saída:

    false

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

Retorna verdadeiro se o elemento for um campo do sistema OR gerado automaticamente.
Campos do sistema e gerados automaticamente não podem ser criptografados. Este método é para uso com o Edge Encryption plug-in.
{#r_ScopedGlideElementDescriptorIsAutoOrSysID__table_y3g_nd4_yr__entry__3}

| Nome | Tipo | Descrição |
|-|-|-|
| Nenhum |   |   |
[Tabela 17. Parâmetros]

{#r_ScopedGlideElementDescriptorIsAutoOrSysID__table_y3g_nd4_yr} {#r_ScopedGlideElementDescriptorIsAutoOrSysID__table_z3g_nd4_yr__entry__2}

| Tipo | Descrição |
|-|-|
| Booliano | Verdadeiro se o elemento for gerado automaticamente ou um campo do sistema. |
[Tabela 18. Retorna]

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

Saída:

    false

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

Retorna verdadeiro se o elemento for definido como uma opção suspensa na definição de dicionário.
Os campos de escolha não podem ser criptografados.
{#r_ScopedGlideElementDescriptorIsChoiceTable__table_upl_31s_ls__entry__3}

| Nome | Tipo | Descrição |
|-|-|-|
| Nenhum |   |   |
[Tabela 19. Parâmetros]

{#r_ScopedGlideElementDescriptorIsChoiceTable__table_upl_31s_ls} {#r_ScopedGlideElementDescriptorIsChoiceTable__table_vpl_31s_ls__entry__2}

| Tipo | Descrição |
|-|-|
| Booliano | Retorna verdadeiro se o elemento estiver definido como uma opção suspensa. Retorna verdadeiro mesmo se não houver entradas definidas na tabela de seleção. O último tipo de escolha, sugestão, não retorna verdadeiro. |
[Tabela 20. Retorna]

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

Saída:

    true

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

Retorna verdadeiro se um elemento estiver criptografado.
Este método é para uso com o Edge Encryption plug-in.
{#r_ScopedGlideElementDescriptorIsEdgeEncrypted__table_jq2_gf4_yr__entry__3}

| Nome | Tipo | Descrição |
|-|-|-|
| Nenhum |   |   |
[Tabela 21. Parâmetros]

{#r_ScopedGlideElementDescriptorIsEdgeEncrypted__table_jq2_gf4_yr} {#r_ScopedGlideElementDescriptorIsEdgeEncrypted__table_kq2_gf4_yr__entry__2}

| Tipo | Descrição |
|-|-|
| Booliano | Retorna verdadeiro se o elemento estiver criptografado, caso contrário, falso. |
[Tabela 22. Retorna]

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

Saída:

    false

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

Retorna se o campo representado por este descritor está configurado para criptografia em nível de coluna (CLE).
Use este método para detectar campos criptografados de forma programática antes de ler ou gravar dados confidenciais ou para impor políticas de acesso com base no status de criptografia de um campo. O plug-in Suporte de criptografia (com.glide.cle) deve estar ativo, caso contrário isEncrypted() retorna falso, independentemente da configuração do campo.
{#SGED-isEncrypted__table_jx1_tmp_z3c__entry__3}

| Nome | Tipo | Descrição |
|-|-|-|
| Nenhum |   |   |
[Tabela 23. Parâmetros]

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

| Tipo | Descrição |
|-|-|
| Booliano | Sinalizador que indica se o campo está configurado para CLE. Valores válidos: * Verdadeiro: O campo está configurado para CLE. * Falso: O campo não está criptografado ou o plug-in Suporte de criptografia (com.glide.cle) não está ativo. {#SGED-isEncrypted__ul_ent_dnp_z3c} |
[Tabela 24. Retorna]

{#SGED-isEncrypted__table_kx1_tmp_z3c}  
O script do lado do servidor a seguir usa isEncrypted() para verificar se o campo short_description na tabela Incidente está criptografado antes de registrar seu valor em log. Para testar, copie isso em um script em segundo plano ou regra de negócio na sua instância.  
Nota:  
Use o [GlideRecord - getED()](https://servicenow-prod.fluidtopics.net/Q_BMDeKD6IamkvSPQxMBjg#r_GlideRecord-getED "Retorna o descritor do elemento.")[GlideElement com escopo - getED()](https://servicenow-prod.fluidtopics.net/rKf5NwDKlEAspCEucX81kw#r_ScopedGlideElementGetED "Retorna o descritor do elemento do campo.") método OU para obter um objeto 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 Column Level 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'));
        }
    }

Saída (não criptografada):

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

Saída (CLE habilitado no campo):

    short_description is encrypted. Value: Unable to connect to network

## GlideElementDescriptor - isObrigatório() {#ariaid-title14}

Determina se o elemento é obrigatório e deve conter um valor antes que o registro possa ser salvo.
{#SGED-isMandatory__table_xxq_xwv_shb__entry__3}

| Nome | Tipo | Descrição |
|-|-|-|
| Nenhum |   |   |
[Tabela 25. Parâmetros]

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

| Tipo | Descrição |
|-|-|
| Booliano | Sinalizador que indica se o elemento associado é obrigatório e deve conter um valor antes que o registro que contém o elemento possa ser salvo. Valores possíveis: * verdadeiro: o elemento deve conter um valor; campo obrigatório * falso: o elemento não precisa conter um valor {#SGED-isMandatory__ul_l1h_kxv_shb} |
[Tabela 26. Retorna]

{#SGED-isMandatory__table_yxq_xwv_shb}  
Este exemplo mostra como verificar se o campo de nome é obrigatório.

    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}

Retorna verdadeiro se o elemento for um elemento virtual.
Um elemento virtual é um campo calculado conforme definido pela definição do dicionário do campo. Campos virtuais não podem ser criptografados.
{#r_ScopedGlideElementDescriptorIsVirtual__table_xzh_ybs_ls__entry__3}

| Nome | Tipo | Descrição |
|-|-|-|
| Nenhum |   |   |
[Tabela 27. Parâmetros]

{#r_ScopedGlideElementDescriptorIsVirtual__table_xzh_ybs_ls} {#r_ScopedGlideElementDescriptorIsVirtual__table_yzh_ybs_ls__entry__2}

| Tipo | Descrição |
|-|-|
| Booliano | Retorna verdadeiro se o elemento for um elemento virtual. |
[Tabela 28. Retorna]

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

Saída:

    false


