4

I have a workflow that sends an email when a new item is added to a list. The email includes the creator of the new item, which uses a lookup value.

CurrentItem-CreatedBy-String = [%Current Item:Created By%]

which when emailed, comes out with the following format

i:0#.w|Domain1\ddono25

I understand that the beginning "i:0#.w|" is because of the claims authentication, but is there any way to strip that portion out when an email is sent?

3 Answers 3

0

You should have the option to select the Display Name or User Name(among other options)

enter image description here

2
  • Yes, those are the exact options. In this case, we wanted to be able to see the username along with the domain. Like for the example above, using "As String" comes out as "i:0#.w|Domain1\ddono25", email comes out as "[email protected]", DisplayName does not have the <domain>\<username> that we would like in the email, etc.
    – Ddono25
    Commented May 2, 2013 at 21:36
  • As long as you don't use a federated location or external claims provider, the claims prefix will be 7 characters long. As a workaround, you could use the utility actions "Extract from a string..." from that account and output into a string to use... wictorwilen.se/Post/…
    – Mike
    Commented May 2, 2013 at 21:53
0

enter image description here

Create a variable and use utility then you will get in your format

0

Try using the action:

Extract Substring from Index of String

  1. In the string variable of the action, set [%Current Item:Created By%]
  2. in the numerical value(after starting at), set 8
  3. In Variable(Output to), set it to any variable(example DomainName).
  4. Use the DomainName variable(under Workflow Variables and Parameters) in your email body.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.