How to get the total number of blogs and members within a scripted API

Hello! I am wondering what the best way is to get the total number of blogs and total number of members from the script editor within widget studio.I am using JS not Velocity and my current naive idea was to perform a "List" operation and get the "Count" of the result (with PageSize set to a very high number). I don't like this approach as it is hacky and is very slow to return due to the large page size and I assume the amount of data it's loading into memory.

Current bad approach: " numberOfBlogs: core_v2_blog.List({IncludeSubGroups: true, PageSize: 999999}).Count "

Is there a utility method that I can use to achieve this? I can't seem to find anything from a browse of the docs.


Thanks!

Parents Reply Children
No Data