I need to remove: i:0#.w| from i:0#.w|federated\l035269. I have tried to figure it out on my own but it is not panning out. I want my result to be federate[The employees ID number retrieved from the people picker field]
Solved! Go to Solution.
Is this forms or workflow question?
In the forms, you can create a calculated field with something like this:
where AccounID =
replace() runtime function supports regular expressions.
so if federated domain name varies in length, I think it's better to use that capability.
I'm not sure from the question whether format federated[The employees ID] is strictly required or not, but if so something like this could work
just be carefull about usage of backslashes!
I'm sorry! You created it exactly how I explained it, but I explained it incorrectly. I still need "federated\" so I should have said my result should be "federated\91035269"
Your regex is perfect though because now I have a good foundation to teach myself regex. I will try to customize it myself. If I fail I will reach out again.
Sorry for that and thank you!
Is this for LDAP purposes? I have been using a regular expression to remove the other detail around the network ID. For me this is nice as I can save as a snippet. I am sure this isn't the most efficient solution out there but it works for great.
1) Take ID, remove domain, save as variable A,
2) take variable A, replace preceding text with nothing, save as variable B,
3) use variable B for LDAP.
i had the same issue and i just used the Build string action in the workflow and used :
or you just insert the refrence of the