Genesys Cloud - Main

 View Only

Discussion Thread View
  • 1.  Mark Number Uncallable via API

    Posted 12-05-2022 08:06
    Hi Community,
    not sure if this is as per design but i am having issues using API "/api/v2/outbound/contactlists/${input.contactListId}/contacts/${input.contactId}" to mark numbers in my contact list as Uncallable.
    I have six numbers in my calling list and each number has an additional column to indicate if the number should be called or not [HomePhone1 has HomePhone1Callable | HomePhone2 has HomePhone2Callable | HomePhone3 has HomePhone3Callable | MobilePhone1 has MobilePhone1Callable | MobilePhone2 has MobilePhone2Callable | MobilePhone3 has MobilePhone3Callable]
    if HomePhone1Callable = 0 - number must not be called, HomePhone1Callable = 1 - number must be called. This applies to all numbers

    i have a rule that looks if value is = 0 then i use API to mark the number as uncallable

    the problem i have is:
    If HomePhone1Callable = 0, the API sets the HomePhone1 number as uncallable but when it detects and MobilePhone1Callable = 0 it sets HomePhone1 number as callable and sets MobilePhone1 number as uncallable


  • 2.  RE: Mark Number Uncallable via API
    Best Answer

    Posted 12-05-2022 10:23
    Have you tried using the Update contact?

    If I remember, when you use the same Contact ID, it will replace all the columns, so you would have to pull in all the columns, change what you want and write back out.  

    On the update contact you are using, you will need to set phoneNumberStatus which will mark a phone number as callable or not.   I am guess the key is the name of the number.  

    Robert Wakefield-Carl
    Avtex Solutions, LLC
    Contact Center Innovation Architect

  • 3.  RE: Mark Number Uncallable via API

    Posted 12-05-2022 14:09
    Thanks that worked


Need Help finding something?

Check out the Genesys Knowledge Network - your all-in-one access point for Genesys resources