Skip to content

ServiceNow.Core

SNow.Core

ITable Interface

Handle ServiceNow tables API

csharp
public interface ITable

Derived
Table

Properties
RequestUrl
Methods
AllToListAsync()Makes HTTP requests to get all data (from all pages)
AllToListAsync(CancellationToken)Makes HTTP requests to get all data (from all pages)
CreateAsync(object, CancellationToken)
CreateAsync(object)
DeleteAsync(Guid, CancellationToken)
DeleteAsync(Guid)
GetByIdAsync(Guid, CancellationToken)
GetByIdAsync(Guid)
Limit(int)The maximum number of results returned per page (default: 10,000)
OrderBy(string)
OrderByDesc(string)
Select(string[])List of properties to return,
impacts the size of the response
SetHeaders(List<KeyValuePair<string,string>>)
ToListAsync(Nullable<int>)Makes the actual HTTP request
ToListAsync(CancellationToken, Nullable<int>)Makes the actual HTTP request
UpdateAsync(Guid, object, bool)
UpdateAsync(Guid, object, CancellationToken, bool)
WithQuery(string)The query must have only those operators
and, or, like, =, !=, startsWith, endsWith
see SN Rest Operators

Released under the MIT License.