Skip to main content
Nintex Community Menu Bar

I want to have a break!

  • August 8, 2017
  • 13 replies
  • 557 views
  • Translate

Forum|alt.badge.img+10

Hi community,

 

I have multiple line string with content

 

blablabla---blablabla---blablabla

 

I want to convert this string that it looks like this:

blablabla

blablabla

blablabla

 

Can I use the replace string object for this? Or should I use regular expression?

What is the "new line command"? I already tried " " and "<br>"

 

I am working with NINTEX on ‌

 

Cheers

mai-kel

 

Did this topic help you find an answer to your question?

13 replies

Forum|alt.badge.img+7
  • Novice
  • 91 replies
  • August 8, 2017

Please check out Vadim Tabakman‌ blog post on using using the Regular Expression Action.

regular expressions in nintex workflow

Basically what you will need to do is do a SPLIT on the --- using the Regular Expression Action and then save your results into a Collection Variable, then Loop through your collection to do something or use the collection actions to get a certain index at a certain time. Let us know if you need more help with this.

Translate

Forum|alt.badge.img+10
  • Author
  • Novice
  • 125 replies
  • August 9, 2017

I had seen the post from Vadim Tabakman‌, but unfortunately it doesn't work here.

I have a comment (within task list in column "Comment") like

YO

YO

YO

I did a query list and wrote the content into a collection variable.

Result:

colApproverComments: [{"OData__Comments":"YOu000du000aYOu000du000aYO"}]

First I tried this:

Result:

colApproverComments: ["[{""OData__Comments"":""YO\u000d\u000aYO\u000d\u000aYO"}]"]

I also tried this:

Result:

txtKommentar: [{"OData__Comments":"YOu000du000aYOu000du000aYO"}]

So neither split nor replace gave me the desired result.

Translate

Forum|alt.badge.img+9

Hi Michael Weiß‌,

Can you use 'Regular Expression' action and in the replace text use 'Enter' from keyboard.

Result:

It worked in SharePoint 2013, try it in Office 365.

Thanks,

‌

Translate

Forum|alt.badge.img+10
  • Author
  • Novice
  • 125 replies
  • August 9, 2017

Hi ,

Yeah, that works with NINTEX onpremise, but unfortunately not with O365 (that was my second try as described above).

Cheers

mai-kel

Translate

Forum|alt.badge.img+9

Hi ‌,

You can use 'single line of text' workflow variable instead 'Collection' variable to store comments..did you try that?

If you want only comments from last approver then you can use 'Approver Comments' from insert reference.

Thanks,

‌

Translate

Forum|alt.badge.img+10
  • Author
  • Novice
  • 125 replies
  • August 9, 2017

Aaaaaahhhhh.....!

This makes things so much easier - I used a set variable instead of a query list action to retrieve the data.

With that the comment is directly written into a text variable and not into a collection. Within the text variable the format is automatically correct.

Thanks mate!

Cheers

mai-kel

PS: I cannot mark your answer as correct because the question itself is still not answered. But I do not have a problem anymore!  

Translate

Forum|alt.badge.img+13

I have been able to add line breaks to a string variable using <br/>. I use the "build string" action.

Translate

Forum|alt.badge.img+10
  • Author
  • Novice
  • 125 replies
  • August 16, 2017

Unfortunately <br> as well as didn't work.

Translate

Forum|alt.badge.img+13

Did you put the slash though? <br/>?

Translate

Forum|alt.badge.img+10
  • Author
  • Novice
  • 125 replies
  • August 16, 2017

No, I didn't. I will try next time.

Translate

Forum|alt.badge.img+9
  • 84 replies
  • April 1, 2019

Anyone figured how to do this for O365?

Translate

Forum|alt.badge.img

Any luck with linebreak in O365? Its still not working for me.

Translate

Matek28
Forum|alt.badge.img
  • 3 replies
  • June 10, 2020

Hi Everyone, i just found out the solution for this one. using a build string in nintex online. press enter to seperate first row to second row. then go back to the end of first row. then press ctrl + enter. that should do the trick 🙂 cheers.

Translate

Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie Settings