alialjohani | 2018-12-03 10:43:15 UTC | #1
Dears,
Is there an API to export all downloadable URLs for all contactlists I have?
I am looking for an API similar to the following:
/api/v2/outbound/contactlists/{contactListId}/export
But, for all contactlists I have?
Best Regards, Ali
tim.smith | 2018-12-03 14:16:56 UTC | #2
No, they must be done individually. You can request new features at https://purecloud.ideas.aha.io/ideas.
alialjohani | 2018-12-04 08:54:20 UTC | #3
Dear Tim,
Thank you for the help you provided. But I have windows-service, which consumes this API: /api/v2/outbound/contactlists/{contactListId}/export
in order to export 10 contactlists. However, it responses with the following error randomly:
{"status":404,"code":"no.available.list.export.uri","message":"There is no available download URI for contact list {380d5582-8a27-4696-9c8e-407fccfe745b} at this time","messageWithParams":"There is no available download URI for contact list {380d5582-8a27-4696-9c8e-407fccfe745b} at this time","messageParams":{},"contextId":"3d56bbe3-262f-4d09-b052-ea39cdda1320","details":[],"errors":[]}
In other words, the API works perfectly, but sometime it returns this error.
I have added a pause/sleep time between each contactlist, the number of error response has been decreased, but it is still exist.
Any idea, how can I avoid this error?
Thank you again and best regards, Ali
tim.smith | 2018-12-04 15:07:39 UTC | #4
You'll get this message if the contact list isn't ready to be exported yet. The POST request starts the export, but it won't be ready immediately for sizable contact lists. Wait several seconds and try the GET again.
alialjohani | 2018-12-05 09:44:35 UTC | #5
Thank you, Tim.
system | 2019-01-05 09:44:36 UTC | #6
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: 4088