I have a user name with "domain\user11" and need to be extract text after the "\", how can I achieve this using Nintex WF 2010?
Solved! Go to Solution.
One way is to use a "Build String" action and then use something like the replace function inside of it:
fn-Replace(text to modify, old text to replace, replacement text)
So in your case something like - note the empty single quotes might be hard to see below as the third parameter passed in:
fn-Replace(variableThatHoldsInformationToModify, 'domain\', '')
Then in the Store Results In area of the Build String put whatever variable you want the results to be stored in, which will hold the value without the domain.
Note: I'm assuming the domain is always the same, because you didn't specify how this value was being generated..
You can also use the Regular Expression action:
Thanks Mike M. and Manfred, both suggestions worked. I went with the Regular Expression since we have two different domain names and formula would work in this situation.
If i can ask one more question cous post is close to mine
I got url in collection (http://server.xx/sites/2015/documntslibrary/documentsworkspace/document.docx
Need to cut all before last "/" or before 7th "/" from left (its the same, but different approach). I want to achieve this link: http://server.xx/sites/2015/documntslibrary/documentsworkspace/
In simple inline functions cant find something that can help me to do this.
Use regular expression action with operation replace text: