Appearance
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
| Name | Description |
|---|---|
cancellationToken | Cancellation token. |
context | Optional connection context. |
options | Read options (fields, display value, etc.). |
sysId | Record sys_id. |
table | Table name. |
Returns
The row dictionary, or when not found / non-success.