Skip to content

ServiceNow.Core

SNow.Core.Table<T>

Table<T>.WithQuery(Expression<Func<T,string>>) Method

The query must have only those operators and, or, like, =, !=, startsWith, endsWith see SN Rest Operators

csharp
public SNow.Core.ITable<T> WithQuery(System.Linq.Expressions.Expression<System.Func<T,string>> expression);

Parameters

expression System.Linq.Expressions.Expression<System.Func<T,System.String>>
String that has access to the table model ex.: x => $"{x.Name} like Something and {x.Age} = 10"

Returns

SNow.Core.ITable<T>

Implements WithQuery(Expression >)

Released under the MIT License.