I am building a SharePoint Designer Workflow and I have a following requirement:

workflow variable:


Required Output:

workflow variable:


How can I replace a new line character with "||" ?


In Sharepoint 2013 designer workflows you can use the "Replace Substring in String" action. To replace a line break you do not need to use any special characters like < br > or 'n like in some programming languages. Simply use the line break in the string builder. designer screenshot

  • Wow....!!! that worked..!!! – Dharam Padia Apr 9 '15 at 12:59
  • my solution: (worse) – Dharam Padia Apr 9 '15 at 13:01
  • convert string to dictionary then replace \u000d\u000a character with ||. Then I will get me desired output i.e. string1=line1||line2||line3 – Dharam Padia Apr 9 '15 at 13:05

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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