Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at

  • Harmen Kooiker 1 post 71 karma points
    May 21, 2019 @ 07:36
    Harmen Kooiker

    ContentService GetPagedOfType query filter

    How to filter the query by a property value?

    I use the following code:

    IQuery<IContent> query = new Query<IContent>(scope.SqlContext)
                    .Where(w => !w.Trashed)
                    .Where(w => w.Properties[memberAlias].GetUdi().Equals(memberUdi));

    But then i get this message:

    Could not get the value with the key Properties from the property info cache, keys available: Id, Name, Key, VersionId, Trashed, Path, SortOrder, ParentId, CreateDate, UpdateDate, Level, ContentTypeId, CreatorId, Published

    It seems i can't use custom properties?

Please Sign in or register to post replies

Write your reply to: