PipeSettings FilterExpression
Hi,
In the following code, the last line "pipeSettings.FilterExpression =..." doesn't appear to be the valid syntax. Does anyone know how to format this string?
PublishingManager manager = PublishingManager.GetManager(PublishingConfig.
IQueryable<
PublishingPoint
> publishingPoints = manager.GetPublishingPoints();
var publishingPoint = publishingPoints.FirstOrDefault();
var pipeSettings = publishingPoint.PipeSettings.FirstOrDefault(ip => ip.PipeName == ContentInboundPipe.PipeName && ((SitefinityContentPipeSettings)ip).ContentTypeName == typeof(NewsItem).FullName) as SitefinityContentPipeSettings;
pipeSettings.FilterExpression = "(eNewsClassifications.Contains(\"3EF5C90E-743D-6A02-AAF8-FF0000765F2C\"))";
Hi,
Please, try formatting the filter expression like the examples in this article:Filter expressions.
Regards,
Atanas Valchev
Telerik