Don't miss out Virtual Happy Hour this Friday (April 26).

Try our conversational search powered by Generative AI!

How to define two BlogType criteria in one EntryQuery

Vote:
 

I have a query to retrieve blogs of BlogType.UserBlog;

EntryQuery entryQuery = new EntryQuery();
entryQuery.Blog = new BlogCriterion();
entryQuery.Blog.BlogType = new BlogTypeCriterion();
entryQuery.Blog.BlogType.Value = BlogType.UserBlog; 
EntryCollection entries = QueryHandler.Instance.GetQueryResult(entryQuery, TimeSpan.MinValue, 1, int.MaxValue, out totalItems);

Now, I need to retrieve Blogs of both BlogType.UserBlog AND BlogType.ClubNews. 

Can I define two BlogType values in the same query?

#188807
Mar 05, 2018 6:47
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.