Skip to main content

.NET and Geocortex Workflow Parse AD user as current user to email

Comments

1 comment

  • Permanently deleted user
    Hi Stephen, 

     

    You can use VB .NET libraries to parse the string. 

     

    For example, if you want jsmith@company.com, then you would have to do the following steps in a series of Assign activities: strUsername = "John Smith (jsmith@DOMAIN_NAME)@company.com)" email = strUsername.split(New Char() {"("c}, stringsplitoptions.none).last().split(New Char() {"@"c}, stringsplitoptions.none).first() + "@" + strUsername.split(New Char() {"@"c}, stringsplitoptions.none).last() email = email.Remove(email.length - 1, 1)

     

    I hope this helps

     

    Carmen
    0

Please sign in to leave a comment.