Legacy Dev Forum Posts

 View Only

Sign Up

  • 1.  Export all organizations

    Posted 06-05-2025 19:21

    mmartinez | 2021-02-01 14:28:27 UTC | #1

    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


    anon11147534 | 2021-02-01 17:24:14 UTC | #2

    Hi,

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


    mmartinez | 2021-02-01 18:22:13 UTC | #3

    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


    anon39326996 | 2021-02-01 19:09:23 UTC | #4

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


    mmartinez | 2021-02-01 19:22:21 UTC | #5

    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!


    anon39326996 | 2021-02-01 19:34:22 UTC | #6

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


    system | 2021-03-04 19:34:23 UTC | #7

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


    This post was migrated from the old Developer Forum.

    ref: 9860