@servicenow/sdk - v4.13.3
    Preparing search index...

    Variable sys_scope_privilegeConst

    sys_scope_privilege: {
        allowWebServiceAccess: true;
        attributes: { update_synch: true };
        display: "source_scope";
        extends: "sys_metadata";
        label: "Cross scope privilege";
        name: "sys_scope_privilege";
        schema: {
            operation: Typed<
                "read"
                | "delete"
                | "create"
                | "execute"
                | "write",
                {
                    choices: {
                        create: {
                            dependentValue: "sys_db_object";
                            label: "Create";
                            sequence: 3;
                        };
                        delete: {
                            dependentValue: "sys_db_object";
                            label: "Delete";
                            sequence: 4;
                        };
                        execute: [
                            {
                                dependentValue: "sys_script_include";
                                label: "Execute API";
                                sequence: 6;
                            },
                            { dependentValue: "scriptable"; label: "Execute API"; sequence: 7 },
                        ];
                        read: { dependentValue: "sys_db_object"; label: "Read"; sequence: 1 };
                        write: { dependentValue: "sys_db_object"; label: "Write"; sequence: 2 };
                    };
                    default: "read";
                    dependent: "target_type";
                    dropdown: "dropdown_without_none";
                    label: "Operation";
                    mandatory: true;
                },
            >;
            source_scope: Typed<
                | string
                | ExplicitKey<"sys_scope">
                | TableBrand<"sys_scope">
                | Record<"sys_scope">,
                {
                    default: "javascript:gs.getCurrentApplicationId();";
                    label: "Source Scope";
                    mandatory: true;
                    readOnly: true;
                    readOnlyOption: "client_script_modifiable";
                    referenceQual: "restrict_runtime_access=true^sys_id=javascript:gs.getCurrentApplicationId()^EQ";
                    referenceTable: "sys_scope";
                    useReferenceQualifier: "simple";
                },
            >;
            status: Typed<
                "requested"
                | "allowed"
                | "denied",
                {
                    choices: {
                        allowed: { label: "Allowed"; sequence: 3 };
                        denied: { label: "Denied"; sequence: 2 };
                        requested: { label: "Requested"; sequence: 1 };
                    };
                    default: "requested";
                    dropdown: "dropdown_without_none";
                    label: "Status";
                },
            >;
            target_name: Typed<
                string,
                { label: "Target Name"; mandatory: true; maxLength: 255 },
            >;
            target_scope: Typed<
                | string
                | ExplicitKey<"sys_scope">
                | TableBrand<"sys_scope">
                | Record<"sys_scope">,
                {
                    label: "Target Scope";
                    mandatory: true;
                    referenceQual: "private=false^ORprivateISEMPTY^EQ";
                    referenceTable: "sys_scope";
                    useReferenceQualifier: "simple";
                },
            >;
            target_type: Typed<
                "sys_db_object"
                | "sys_script_include"
                | "scriptable",
                {
                    choices: {
                        scriptable: { label: "Scriptable"; sequence: 3 };
                        sys_db_object: { label: "Table"; sequence: 1 };
                        sys_script_include: { label: "Script Include"; sequence: 2 };
                    };
                    default: "sys_db_object";
                    dropdown: "dropdown_without_none";
                    label: "Target Type";
                    mandatory: true;
                },
            >;
        };
    } = ...

    Type Declaration

    • ReadonlyallowWebServiceAccess: true
    • Readonlyattributes: { update_synch: true }
    • Readonlydisplay: "source_scope"
    • Readonlyextends: "sys_metadata"
    • Readonlylabel: "Cross scope privilege"
    • Readonlyname: "sys_scope_privilege"
    • Readonlyschema: {
          operation: Typed<
              "read"
              | "delete"
              | "create"
              | "execute"
              | "write",
              {
                  choices: {
                      create: {
                          dependentValue: "sys_db_object";
                          label: "Create";
                          sequence: 3;
                      };
                      delete: {
                          dependentValue: "sys_db_object";
                          label: "Delete";
                          sequence: 4;
                      };
                      execute: [
                          {
                              dependentValue: "sys_script_include";
                              label: "Execute API";
                              sequence: 6;
                          },
                          { dependentValue: "scriptable"; label: "Execute API"; sequence: 7 },
                      ];
                      read: { dependentValue: "sys_db_object"; label: "Read"; sequence: 1 };
                      write: { dependentValue: "sys_db_object"; label: "Write"; sequence: 2 };
                  };
                  default: "read";
                  dependent: "target_type";
                  dropdown: "dropdown_without_none";
                  label: "Operation";
                  mandatory: true;
              },
          >;
          source_scope: Typed<
              | string
              | ExplicitKey<"sys_scope">
              | TableBrand<"sys_scope">
              | Record<"sys_scope">,
              {
                  default: "javascript:gs.getCurrentApplicationId();";
                  label: "Source Scope";
                  mandatory: true;
                  readOnly: true;
                  readOnlyOption: "client_script_modifiable";
                  referenceQual: "restrict_runtime_access=true^sys_id=javascript:gs.getCurrentApplicationId()^EQ";
                  referenceTable: "sys_scope";
                  useReferenceQualifier: "simple";
              },
          >;
          status: Typed<
              "requested"
              | "allowed"
              | "denied",
              {
                  choices: {
                      allowed: { label: "Allowed"; sequence: 3 };
                      denied: { label: "Denied"; sequence: 2 };
                      requested: { label: "Requested"; sequence: 1 };
                  };
                  default: "requested";
                  dropdown: "dropdown_without_none";
                  label: "Status";
              },
          >;
          target_name: Typed<
              string,
              { label: "Target Name"; mandatory: true; maxLength: 255 },
          >;
          target_scope: Typed<
              | string
              | ExplicitKey<"sys_scope">
              | TableBrand<"sys_scope">
              | Record<"sys_scope">,
              {
                  label: "Target Scope";
                  mandatory: true;
                  referenceQual: "private=false^ORprivateISEMPTY^EQ";
                  referenceTable: "sys_scope";
                  useReferenceQualifier: "simple";
              },
          >;
          target_type: Typed<
              "sys_db_object"
              | "sys_script_include"
              | "scriptable",
              {
                  choices: {
                      scriptable: { label: "Scriptable"; sequence: 3 };
                      sys_db_object: { label: "Table"; sequence: 1 };
                      sys_script_include: { label: "Script Include"; sequence: 2 };
                  };
                  default: "sys_db_object";
                  dropdown: "dropdown_without_none";
                  label: "Target Type";
                  mandatory: true;
              },
          >;
      }