Advent of Code is back! Unwrap daily challenges to sharpen your Alteryx skills and earn badges along the way! Learn more now.
Free Trial

Weekly Challenges

Solve the challenge, share your solution and summit the ranks of our Community!

Also available in | Français | Português | Español | 日本語
IDEAS WANTED

Want to get involved? We're always looking for ideas and content for Weekly Challenges.

SUBMIT YOUR IDEA

Challenge #371: Generate Corporate Email Addresses

tammybrown_tds
9 - Comet

This was a fun one.  I love it when I get to practice/learn new regex syntax.

 

Spoiler
tammybrown_tds_0-1685157461494.png

 

Jcdf1993
6 - Meteoroid
Spoiler
Solution of the challenge
Miles_Waller
8 - Asteroid

Advanced solution is below, for intermediate just imagine the interface tools aren't there.

 

Also, the way this was designed, if people have the same initials (for example AG), the first person gets AG@domain.com and the next guy gets AG1@domain.com, etc.

 

Spoiler
Miles_Waller_0-1685485165633.png

 

NickRogers
8 - Asteroid

Solution

bkclaw113
9 - Comet
Spoiler
bkclaw113_0-1685537217451.png

 

Blake_E
8 - Asteroid

 

Spoiler
Blake_E_1-1685544233899.png

 

Yoshiro_Fujimori
15 - Aurora

My solution.

 

Spoiler

Workflow


Yoshiro_Fujimori_0-1685578382847.png

Formula Tool 1

  First Name = Uppercase(GetWord([Name], 0))
  Last Name = Uppercase(GetWord([Name], 1))
  Initial = Left([First Name], 1) + Left([Last Name], 1)


Multi-Row Formula
  SerNo = IF IsEmpty([Row-1:Initial]) AND IsEmpty([Row+1:Initial]) THEN Null()
  ELSE [Row-1:SerNo] + 1 ENDIF


Formula Tool 2
  SerNo2 = IF [SerNo] = 0 THEN "" ELSE ToString([SerNo]) ENDIF
  Email Address = [Initial] + [SerNo2] + "@organizationname.com"


App

Yoshiro_Fujimori_1-1685578797928.png


Comment
The proposed solution is:

AB@organizationname.com

AG1@organizationname.com
AG2@organizationname.com

...

But I think the numbering should be:

AB@organizationname.com

AG@organizationname.com
AG1@organizationname.com

...

because in the real world, the second person will join after the first person got his email address.
At that time, the first person should get an email address without serial number.

 

 

Dev73
8 - Asteroid

My Solution 

Spoiler
challange_371.png

elena_mazareanu
8 - Asteroid

Solved the intermediate, will come back for the advanced solution

Tgigs
8 - Asteroid

My solution attached