简体   繁体   中英

.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!

别担心,请一位同事提供答案:

currentuser.Substring(currentuser.IndexOf("(") + 1, currentuser.IndexOf("@", currentuser.IndexOf("(")) - currentuser.IndexOf("(") - 1) + "@company.com"

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM