Appearance
ServiceNow.Core
SNow.Core
Table Class
Handle ServiceNow tables API
csharp
public class Table : SNow.Core.TableBase,
SNow.Core.ITable
Inheritance System.Object 🡒 TableBase 🡒 Table
Implements ITable
Constructors | |
---|---|
Table(IServiceNow, string, ILogger) | Used by typed and untyped Table |
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) | |
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 |