public static IDictionary <Guid, int> FetchForumThreadPostCounts(this OrganizationServiceContext serviceContext, IEnumerable <Guid> forumThreadIds) { return(serviceContext.FetchCounts( "adx_communityforumpost", "adx_communityforumpostid", "adx_communityforumthread", "adx_communityforumthreadid", "adx_forumthreadid", forumThreadIds)); }
public static IDictionary <Guid, int> FetchBlogPostCommentCounts(this OrganizationServiceContext serviceContext, IEnumerable <Guid> postIds) { if (FeatureCheckHelper.IsFeatureEnabled(FeatureNames.Feedback)) { return(serviceContext.FetchCounts( "feedback", "feedbackid", "adx_blogpost", "adx_blogpostid", "regardingobjectid", postIds, addCondition => addCondition("adx_approved", "eq", "true"))); } else { return(new Dictionary <Guid, int>()); } }