pyconnectwise icon indicating copy to clipboard operation
pyconnectwise copied to clipboard

Configurations extraction

Open ssirag opened this issue 2 years ago • 4 comments

I'm trying to use the library to export the full list of active configs, but I'm only getting a subset. How can I get a complete dump of all configurations for a specified company?

ssirag avatar Nov 16 '23 15:11 ssirag

I've reviewed the pageSize limits referenced, but even with pageSize 1000 I only get 25 items at a time.

ssirag avatar Nov 16 '23 20:11 ssirag

Hi ssirag, I've managed to do this for my own environment with no issue. Can you share the section of the code you're using to pull the CI's?

See my own below.

manage_api_client = ConnectWiseManageAPIClient(...)

config_search = manage_api_client.company.configurations.paginated(1, 1000)

# and then later iterate through items in those pages like so:

config_list = []
for config in config_search.all():
    config_list.append(config)

EMoonArchiTech avatar Nov 20 '23 00:11 EMoonArchiTech

Unfortunately I am also unable to replicate this issue - @ssirag, could you perhaps share your code or some information about your environment?

Yoshify avatar Nov 22 '23 21:11 Yoshify

Maybe we should close this one off for inactivity?

EMoonArchiTech avatar Feb 22 '24 23:02 EMoonArchiTech