Hi Team,
I am fetching list of records from account which are modified yesterday or certain date. But it throws Internal Server Error.
Below is my code snippet:
var selectFilters = new Filters()
{
FilterType = Terrasoft.Nui.ServiceModel.DataContract.FilterType.FilterGroup,
Items = new Dictionary
{
{
"FilterByCreatedOn",
// Value.
new Filter
{
FilterType = Terrasoft.Nui.ServiceModel.DataContract.FilterType.CompareFilter,
ComparisonType = FilterComparisonType.GreaterOrEqual,
LeftExpression = new BaseExpression ()
{
// Expression type - SchemaColumn.
ExpressionType = EntitySchemaQueryExpressionType.SchemaColumn,
// Path to the column relative to the root schema.
ColumnPath = "ModifiedOn",
},
// Filter range final expression.
RightExpression= new BaseExpression ()
{
ExpressionType = EntitySchemaQueryExpressionType.Parameter,
Parameter = new Parameter ()
{
DataValueType = DataValueType.DateTime,
Value = "5/11/2018" or new DateTime(2018,05,11)
}
}
}
}
}
};