07-24-2024 01:20 AM
Hi, hopefully a fairly simple one this, but is anyone aware of a API call that will produce a simple count of networks under an Org please? We have some MSPs and customers with a very large number of networks, and for one particular function where we just want a quick count, we want to avoid paging through a very long list from getOrganizationNetworks.
Best
Martin
07-24-2024 01:50 AM
Assuming Python, can't you just do len() on the return object from getOrganizationNetworks to get a count?
07-24-2024 02:20 AM
Yes and that's the method we use today, but it's on an interactive element of our UI and on big orgs it takes over 30 seconds to get through all the pages of results. I was hoping there is a simple count somewhere as there is on the Global Overview table:
07-24-2024 06:42 AM
Woops, we just realised the getOrganizationNetworks call allow a page of up to 100,000, default of 1000. That'll do!
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide