Jump to content
  • 1

How to SUBSTRING everything before the @ in an email address


Woolf

Question

How would I grab all the text in an email address BEFORE the @ sign? I am trying to create a login address that matches our other systems. But I cannot figure out how to get the SUBSTRING of just the front of the email address.

For example: If the email address were MMouse@business.com, then I would want to create a USER_NAME variable that is just MMouse.

Any suggestions?

Link to comment
Share on other sites

3 answers to this question

Recommended Posts

  • 1

Hello @Woolf,

Do you need to retrieve the substring in the table? 

If so, you may add a Formula field and try this formula:

SUBSTRING([@field:your_field], 0, CHARINDEX('@', [@field:your_field]))

Replace the [@field:your_field] with your field name.

Feel free to update this thread if you have further questions. 

Link to comment
Share on other sites

  • 0
13 minutes ago, CoopperBackpack said:

Hello @Woolf,

Do you need to retrieve the substring in the table? 

If so, you may add a Formula field and try this formula:

SUBSTRING([@field:your_field], 0, CHARINDEX('@', [@field:your_field]))

Replace the [@field:your_field] with your field name.

Feel free to update this thread if you have further questions. 

Thanks. This is exactly what I was looking for!

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...