Trim string of characters
Hello! I am looking for some guidance please? I have a workflow that uses "Get Current User" that collects the username as a string. The username currently when collected inlcudes the domain name at the beginning such as "DOM/". I would like to remove only these characters from the string. I have tried the string.trim(Char[]) but this doesn't seem to work. Any guidance would be appreciated, thanks!
0
-
I think it starts with DOM\, not DOM/?
You can use the following in an Assign activity, assign it to het same variable (username) or a new one.
username.Split(New Char() {"\"c})(1)
0 -
Nico, thank you very much that worked!
0
Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.
Kommentare
2 Kommentare