Legacy Dev Forum Posts

 View Only

Sign Up

  • 1.  Contact List Export

    Posted 06-05-2025 18:06

    TaylorNelsonQT | 2020-12-20 22:09:30 UTC | #1

    How can I tell when a Contact List export job is completed? Right now, if I call the export endpoint, then download endpoint, I get an error that there is no download available, but if I put a wait of 5-10 seconds between the two API calls, it works.

    I don't see any contextual information returned by the PostOutboundContactlistExport that would allow me to poll for a status of the export file, so what is the recommended practice here?

    Alternatively, can I retrieve the data from the list, as JSON etc. instead of downloading a CSV file? This would be better.


    tim.smith | 2020-12-23 16:53:40 UTC | #2

    You can subscribe to the topic v2.users.{id}.outbound.contactlists.{id}.export, which is documented as "Subscribe to receive notifications when an exported contact list is ready to download." https://developer.mypurecloud.com/api/rest/v2/notifications/available_topics.html


    TaylorNelsonQT | 2020-12-23 21:19:32 UTC | #3

    I eventually found that, but the problem is that I am using client credentials, not code authorisation, so I can’t get a user context, so I cannot subscribe to a user contextual notification. How do I get around this?


    system | 2021-01-23 21:19:35 UTC | #4

    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: 9557