Legacy Dev Forum Posts

 View Only

Sign Up

How to utilize substring functions to use in variables in scripting

  • 1.  How to utilize substring functions to use in variables in scripting

    Posted 06-05-2025 19:14

    Raji | 2023-05-17 12:39:34 UTC | #1

    How to utilize substring functions to use in variables in scripting. Scripter Variable : {{Scripter.Customer Formatted Number}}` —customer’s formatted phone number.

    Example: +13175550116

    If you create a phone number from ToPhoneNumber(“+13175550116″), you get: tel:+13175550116” We need to get like subscriberNumber Only “3175550116”


    VaunMcCarthy | 2023-05-18 06:42:51 UTC | #2

    Assuming this is from an inbound call that passes through Architect where you're doing the ToPhoneNumber, you can just get the subscriber portion set in Architect itself and pass that through:

    ToPhoneNumber("tel:+13175550116").subscriberNumber


    system | 2023-06-18 06:43:22 UTC | #3

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