Genesys Cloud (formerly PureCloud)

Discussion Thread View
Expand all | Collapse all

Block numbers based on data table

  • 1.  Block numbers based on data table

    Posted 04-02-2020 03:40

    Hello,

    I am trying to block numbers based on a data table that i can fill with numbers to be blocked.
    But when i call to the test number i receive the error message spoken in:



    i created a data table with 2 collums Name and Number:


    after that i created a flow, the main menu always has "Nieuw taak 1" as default choice:


    And the flow looks like this:

    Is the number found in the data table? drop call
    is the number not found? Connect to ACD

    at 71 the expresion that i added this: Call.Ani
    at 72





    #ArchitectureandDesign

    ------------------------------
    Donny Willems
    KEMBIT B.V.
    ------------------------------


  • 2.  RE: Block numbers based on data table

    Posted 04-02-2020 07:49
    Edited by Angelia Harper 04-02-2020 07:50
    Try

    Right(Call.Ani,12) that way you are feeding in only the +1xxxxxxxxxx and not the Tel:+1xxxxxxxxxx that will not match your table entry. If your phone number is more than 12, you just need to do Right(Call.ANI,then the number of digits plus the + and the country code).

    ------------------------------
    Angelia Harper
    Avtex Solutions, LLC
    ------------------------------



  • 3.  RE: Block numbers based on data table

    Posted 05-05-2020 08:32
    I tried that, but for some reason it's still give me the: There is an error occured message:

    Followed by

    I Have put in 9 because this is the number of digits used in the netherlands.



    ------------------------------
    Donny Willems
    KEMBIT B.V.
    ------------------------------



  • 4.  RE: Block numbers based on data table

    GENESYS
    Posted 05-05-2020 09:26
      |   view attached
    Action 71 is setting Task.ani to the expression ToBool(Call.Ani).  ToBool accepts a string but only a handful of values (case-insensitively, one of "true", "1", "t", "false", "0", or "f").  The Call.Ani value will cause it to go into error handling.

    ------------------------------
    Melissa Bailey
    Genesys - Employees
    ------------------------------



  • 5.  RE: Block numbers based on data table

    Posted 05-05-2020 10:31
    Hi Melissa,

    Thanks for the reply, problem is our current admin who fixed al Purecloud stuff left the company and i got appointed.
    My knowledge at the moment is limited.

    Is it possible to receive a example flow (i3InboundFlow) of this situation?

    ------------------------------
    Donny Willems
    KEMBIT B.V.
    ------------------------------



  • 6.  RE: Block numbers based on data table

    GENESYS
    Posted 05-05-2020 10:59
      |   view attached
    Read https://help.mypurecloud.com/articles/about-the-phone-number-data-type/.  Make sure to expand all the sections.

    Then in your data table lookup, the input value should be the expression ToPhoneNumber(Call.Ani).subscriberNumberor maybe ToPhoneNumber(Call.Ani).e164, depending on whether you want to exclude the + and dialing code (i.e. country code) or not.

    The play audio in this example is just for demonstration.

    ------------------------------
    Melissa Bailey
    Genesys - Employees
    ------------------------------



  • 7.  RE: Block numbers based on data table

    Posted 8 days ago
    Finaly i solved this one, i want to share the solution with the people that are struggeling with this:

    1) Create a data tabel with 2 colums Blocked_Numbers and Name
    2) Create a flow

    Start with update table:

    Above you see step 43 and 27, first we will define 43 with the values below:

    Task.sAni and ToPhoneNumber(Call.Ani).e164

    Next we define step 27:

    In the example where Geblokkeerde_nummers stands is the name of of the data table you made
    Secondly at inputs -> Blocked_numbers fill in Task.sAni like below:

    Now you are ready to fill you data table with numbers that you want to block!
    It's important that you always fill in the County code

    See below example:


    ------------------------------
    Donny Willems
    KEMBIT B.V.
    ------------------------------