Export all organizations

hi there

i'm wondering if there's any chance to export all external organizations this customer created a huge amount of them and i need to list them for a future integration but seems an endless list.
Any way to do this?

Thanks and kindest regards

Hi,

Using GET /api/v2/externalcontacts/organizations without a search query will list all external organizations

1 Like

hi ronan, i should had been more clear in my question.
I knew about the api, i tried to use it. but after the first 10 pages of organizations from there forward i get the same message

message": "number of records returned cannot exceed 1000",

unfortunately not all, apparently i reach until the letter k and then every query it's an error.

now i'm using the scan api to check but i'm still trying to understand how to get more results.

thanks

You should leverage the scan endpoint we released last summer: https://developer.mypurecloud.com/api/rest/v2/externalcontacts/scan.html

thanks lucie, i'm trying that, since i'm faaaar from a developer some things are still difficult from me.
I'm guessing i need to make my initial query and then use cursor for the rest of the queries?

sorry to bother and thanks!

Yep, that's it! The cursor is just a way to say "give me the next set of orgs."

1 Like

This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.