Skip to content

GetAsync Method ​

Definition ​

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

Overloads ​

NameDescription
Task<TableApiResult> GetAsync(string table, TableReadOptions options, ConnectionContext context = null, CancellationToken cancellationToken = null)Returns entries matching options from the ServiceNow table. Prefer Lean for field-projected, display-value reads.
Task<TableApiResult> GetAsync(string table, string query, int limit, IEnumerable<string> fields, ConnectionContext context = null, CancellationToken cancellationToken = null)Return entries matching the query from the ServiceNow table

Task<TableApiResult> GetAsync(string table, TableReadOptions options, ConnectionContext context = null, CancellationToken cancellationToken = null) ​

csharp
Task<TableApiResult> GetAsync(string table, TableReadOptions options, ConnectionContext context = null, CancellationToken cancellationToken = null)

Returns entries matching options from the ServiceNow table. Prefer Lean for field-projected, display-value reads.

Parameters ​

NameDescription
cancellationTokenCancellation token.
contextOptional connection context.
optionsRead options (fields, display value, pagination, etc.).
tableTable name.

Returns ​

Instance of TableApiResult.

Task<TableApiResult> GetAsync(string table, string query, int limit, IEnumerable<string> fields, ConnectionContext context = null, CancellationToken cancellationToken = null) ​

csharp
Task<TableApiResult> GetAsync(string table, string query, int limit, IEnumerable<string> fields, ConnectionContext context = null, CancellationToken cancellationToken = null)

Return entries matching the query from the ServiceNow table

Returns ​

Instance of TableApiResult