Ruud_Reinold | 2023-03-14 21:18:10 UTC | #1
I was trying to retrieve the expirationDateTime from a number in the DNC table to find that there is no GET command on either of the API's that can add or delete an entry: /api/v2/outbound/dnclists/{dncListId}/phonenumbers /api/v2/outbound/dnclists/{dncListId}/customexclusioncolumns /api/v2/outbound/dnclists/{dncListId}/emailaddresses
It would be very helpful to be able to find the expiration time for records so you can use that to add them to additional numbers of the same record, since the /api/v2/outbound/conversations/{conversationId}/dnc only adds the current number that was used to contact on rather than all numbers that belong to that record, so can you please update the description of the API to "Add current phone number only to a Dialer DNC list." rather than what it is currently states "Add phone numbers to a Dialer DNC list.", as I found to my disappointment, that is not the case.
tim.smith | 2023-03-15 14:47:17 UTC | #2
You are correct that there are not GET endpoints to return a list of contacts. The correct approach is to export the contact list and download the CSV file: https://developer.genesys.cloud/routing/outbound/exportcontactlists. If you want to get a single specific contact and already know the contact ID, you can fetch the single row using GET /api/v2/outbound/contactlists/{contactListId}/contacts/{contactId}.
Ruud_Reinold | 2023-03-20 14:13:55 UTC | #3
This needs to be done on the fly after a call is abandoned and not manually, that isn't going to work.
tim.smith | 2023-03-21 14:36:15 UTC | #4
I just realized I linked to contact list export resources, but you were referencing DNC lists above. My apologies, but the answer is still largely the same. You must export and download the DNC list to view its contents; you cannot access individual records.
Ruud_Reinold, post:3, topic:18903
This needs to be done on the fly after a call is abandoned
This can be automated fairly simply; it needn't be done manually. I'd recommend a batch process that does an analytics query for abandoned calls. With that data, you can get the caller's number and add that number to the DNC list. If you're using external contacts, you can look up that information as well and add additional numbers to the DNC list. This can of course be done in many different ways depending on your exact needs and desired technologies.
Ruud_Reinold | 2023-03-23 16:09:40 UTC | #5
I've solved this by ,creating a data action that calls a workflow flow. the input are the nrs from the contact list. The expirationDatetime I get from an external API call to a site that provides the ability to give me a 73 hour window. Then I use that return info to add as expirationDatetime on the write out to the DNC table however it eats API attempts.
John_Carnell | 2023-03-30 17:05:21 UTC | #6
This post was migrated from the old Developer Forum.
ref: 18903