[REFERENCE] How to Use OOB Function Evaluator workflow to parse EMail for MailNickname

[REFERENCE] How to Use OOB Function Evaluator workflow to parse EMail for MailNickname

Issue: Scenario is that we want to create a workflow in the portal to populate the 'MailNickname' attribute from the EMail attribute.  For example, if the email address is Test1@contoso.com, the MailNickname should be Test1.

Solution: Since there is no 'Length' or 'Find' function in the built in function evaluator we have to accomplish it a bit differently.  Here we'll assume everyone in the portal has an @contoso.com or @fabrikam.com email address.  Note the length of @contoso.com is 12, and @fabrikam.com is 13 characters.

Destination: [//Target/MailNickname]

Value:
IIF(Eq(LowerCase(Domain),"contoso"),ReplaceString(EMail,Right(EMail,12,""),"")+IIF(Eq(LowerCase(Domain),"fabrikam"),ReplaceString(EMail,Right(EMail,13,""),"")

aliasworkflow.PNG
 

Other domains will need to be concatenated in the custom expression appropriately.  This will write the MailNickname without the need for powershell custom workflow activities or the FIM WAL.

Leave a Comment
  • Please add 2 and 3 and type the answer here:
  • Post
Wiki - Revision Comment List(Revision Comment)
Sort by: Published Date | Most Recent | Most Useful
Comments
  • Tim Macaulay edited Original. Comment: fixed title

Page 1 of 1 (1 items)
Wikis - Comment List
Sort by: Published Date | Most Recent | Most Useful
Posting comments is temporarily disabled until 10:00am PST on Saturday, December 14th. Thank you for your patience.
Comments
  • Tim Macaulay edited Original. Comment: fixed title

Page 1 of 1 (1 items)