Legacy Dev Forum Posts

 View Only

Sign Up

Remove @ from email in the script

  • 1.  Remove @ from email in the script

    Posted 06-05-2025 19:16

    AbdullahSaif | 2024-03-21 20:28:04 UTC | #1

    Hi

    I want to ask if it's possible to remove the @ from the user's email and fetch the first part of the email, so, it will go something like this: a.alshai@gmail.com it will be a.alshai, as I want to add it in a pop-up URL.

    Thank you.


    Artur_Dishunts | 2024-04-19 16:49:59 UTC | #2

    If it is inside the script, then check this article Additional functions to use in dynamic variables - Genesys Cloud Resource Center (mypurecloud.com)

    You would probably end it up with substr({{variable}},0,indexOf({{variable}},"@"))


    system | 2024-05-20 16:50:55 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: 25353