Forum Discussion

EdGrandinetti's avatar
EdGrandinetti
Qrew Member
4 years ago

Parse an email from multi select list for notification

Need help parsing email address for a multi-select list. I would like the list to display name along with the email. 
Current list display:
jsmith@quickbase.com
j.doe@anotheremail.com

Desired list display:
John Smith - jsmith@quickbase.com
Jane Doe - j.doe@anotheremail.com

My email field formula is:

var text EmailList = ToText([Email select field test]);

Trim(Part($EmailList, 1,";"))

The formula works great for my notification emails but I'm stuck on parsing out the emails for the list to display.

Thanks!

6 Replies

  • Just to clarify, you have a Multi-Select Text field that you currently have showing email addresses and you would like it to show the Name and Email address instead. In addition, you would then like to modify your current formula to pull out the first email address from your newly formatted list. Is this correct?

    ------------------------------
    Blake Harrison
    bharrison@datablender.io
    DataBlender - Quick Base Solution Provider
    Atlanta GA
    404.800.1702 / http://datablender.io/
    ------------------------------
    • EdGrandinetti's avatar
      EdGrandinetti
      Qrew Member
      I am able to modify the multi-select field to add the names next to the emails, ie; (john smith - jsmith@qb.com). I just need to modify the email formula to parse the emails from the "-" (dash) so the notification will continue to identify the email only and correctly send. 

      Thanks!


      ------------------------------
      Ed Grandinetti
      ------------------------------
      • BlakeHarrison's avatar
        BlakeHarrison
        Qrew Captain
        Ok, so I think I would do it something like this:
        Trim(Part(SearchAndReplace($EmailList,"-",";"), 2,";"))​

        ------------------------------
        Blake Harrison
        bharrison@datablender.io
        DataBlender - Quick Base Solution Provider
        Atlanta GA
        404.800.1702 / http://datablender.io/
        ------------------------------