Skip to content

ServiceNowSchema Class ​

Definition ​

Provides static methods for retrieving ServiceNow schema metadata, including table definitions, dictionary entries, and Glide type definitions.

  • Namespace: JASE.ServiceNow
  • Assembly: JASE.ServiceNow.dll

Methods ​

NameDescription
Task<List<SysDictionary>> GetDisplayFieldsAsync(ConnectionContext context = null, bool suppressCaching = null, CancellationToken cancelToken = null)Returns a list of Display fields in the Service Now instance
Task<List<SysGlideObject>> GetGlideTypeDefinitions(bool sort = null, bool suppressCaching = null, ConnectionContext context = null, CancellationToken cancelToken = null)Retrieves all Glide type definitions from the sys_glide_object table.
List<SysGlideObject> GetGlideTypeDefinitionsSync(bool sort = null, bool suppressCaching = null)
Task<List<string>> GetListTableNames(string query = null, int limit = null, bool sort = null, ConnectionContext context = null)Retrieves a list of all table names from the sys_db_object table.
List<string> GetListTables(ConnectionContext context = null, string query = null, int limit = null, bool sort = null)Returns a list of Tables names defined in Service Now's sys_db_object table
SysDbObject GetSysDbObject(string table, ConnectionContext context = null, QueryType type = null)Retrieves the sys_db_object metadata for a given table.
Task<SysDbObject> GetSysDbObjectAsync(string table, ConnectionContext context = null, QueryType type = null, bool includeInheritance = null)Retrieves the sys_db_object metadata for a given table.
ServiceNowTable GetTable(string name, ConnectionContext context = null, bool suppressCaching = null)Constructs a ServiceNowTable instance by combining schema and field metadata for a table.
Task<ServiceNowTable> GetTableAsync(string name, ConnectionContext context = null, bool suppressCaching = null, bool includeInheritance = null, CancellationToken cancelToken = null)Constructs a ServiceNowTable instance by combining schema and field metadata for a table.
List<SysDictionary> GetTableDictionary(string table, int limit, QueryType type = null, bool includeInherited = null)Retrieves the dictionary (field definitions) for a specified table. Optionally includes inherited fields from the table's superclass chain.
Task<List<SysDictionary>> GetTableDictionaryAsync(SysDbObject table, ConnectionContext context = null)Retrieves the dictionary (field definitions) for a specified table. Optionally includes inherited fields from the table's superclass chain.
Task<List<SysDictionary>> GetTableDictionaryAsync(string table, int limit, QueryType type = null, bool includeInherited = null, ConnectionContext context = null)Retrieves the dictionary (field definitions) for a specified table. Optionally includes inherited fields from the table's superclass chain.