.NET and Geocortex Workflow Parse AD user as current user to email
Newbie Geocortex admin here still learning the ropes. Trying to parse the current user logged into Geocortex (using the GetCurrentUser Activity) to create an email workflow.
I've got all the steps sorted except how the GetCurrentUser activity presents the user credentials.
What I need is a return of "jsmith@company.com".
The GetCurrentUser activity returns "John Smith (jsmith@DOMAIN_NAME)@company.com)
Just trying to figure out the language to construct it within Geocortex so it splits out between the"John Smith (" and "@DOMAIN_NAME)" so I am left with just jsmith@company.com
Cheers
0
-
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
Carmen0
Du måste logga in om du vill lämna en kommentar.
Kommentarer
1 kommentar