Skip to content

GetBySysIdAsync Method ​

Definition ​

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

Task<IDictionary<string, object>> GetBySysIdAsync(string table, string sysId, TableReadOptions options, ConnectionContext context = null, CancellationToken cancellationToken = null) ​

csharp
Task<IDictionary<string, object>> GetBySysIdAsync(string table, string sysId, TableReadOptions options, ConnectionContext context = null, CancellationToken cancellationToken = null)

Returns a single row via resource GET (/api/now/table/{table}/{sys_id}) using options. Prefer this overload with Lean over query-by-sys_id.

Parameters ​

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

Returns ​

The row dictionary, or when not found / non-success.