London Dev Meetup Rescheduled! Due to unavoidable reasons, the event has been moved to 21st May. Speakers remain the same—any changes will be communicated. Seats are limited—register here to secure your spot!

Comment Count

Vote:
0

Is there an extension or an easy way to get a count of all comments attached to a specific Id?

I don't really want to have to filter/page through all results

Thanks

#224759
Jun 25, 2020 10:30
Vote:
0

Currently thinking that this might be the best way:

            var parent = Reference.Create(id);
            var criteria = new Criteria<CommentFilter>
                           {
                               PageInfo = new PageInfo { PageSize = 1 },
                               Filter = new CommentFilter { Parent = parent }
                           };
            var results = _commentService.Get(criteria).TotalCount;
#224766
Jun 25, 2020 11:22
* 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.