Legacy Dev Forum Posts

 View Only

Sign Up

Replace country code in ( in-queue flow)

  • 1.  Replace country code in ( in-queue flow)

    Posted 06-05-2025 19:11

    Emanhalim | 2022-01-17 15:26:39 UTC | #1

    Hello All, Good Day!

    I implemented in-queue flow to create callback,however normally when the agent makes an outbound call he has to add 9 before the number instead of country code, for Callback, it shows the number with country code, so the call will not be initiated. there is any way to replace ( 002 ) with(9) in the flow? so the agent will dial the number automatic and il will be initiated

    Thanks in advance


    78692638d4a24645fbf5 | 2022-01-18 17:17:42 UTC | #2

    @Emanhalim You could set the input value to the callback number equal to Replace(Call.ANI, "002", "9"). This would update the number that will be called.


    MelissaBailey | 2022-01-30 11:11:00 UTC | #3

    That would replace all instances of 002 with a 9, for example 0021234002 would become 912349. Try an expression like this

    If(ToPhoneNumber(Call.Ani).dialingCode == "002", ToPhoneNumber("9"+ ToPhoneNumber(Call.Ani).subscriberNumber), ToPhoneNumber(Call.Ani))

    That says if the dialingCode (i.e. country code) is 002, use 9 plus the rest of the number, otherwise just use the number as is. https://help.mypurecloud.com/articles/about-the-phone-number-data-type/


    Emanhalim | 2022-01-30 11:11:43 UTC | #4

    Hello!

    Thank you a lot for your support.


    system | 2022-03-02 11:12:18 UTC | #5

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