cancel
Showing results for 
Search instead for 
Did you mean: 
Workflow Hero

Common: NewLine is completely ignored by SharePoint

Hi!

The Common: NewLine "Operator" is completely ignored.


I tried Build String:

Reject

{Common:NewLine}

{WorkflowVariable:Comment}

Or I tried:

Create new variable: Multiple Lines of text:

{Common:NewLine}

fberifb

Nothing works! Am I doint something wrong?

Thanks!

0 Kudos
Reply
11 Replies
Workflow Hero

Re: Common: NewLine is completely ignored by SharePoint

thzu thzu‌ could you provide a little more detail as to what the issue is you're having?  When you say it's not working, how is it not working?  Where are you looking at the output?  Are you building a string for a notification or something else?  I just ran a quick test and when I used the "Run Now", it showed an extra line.  Are you not seeing that when you try the Run Now?  

Also, just a note but if you hit "Enter" in Build a String, it makes a new line without you needing the NewLine variable. 

Build String

BuildString_RunNow

0 Kudos
Accept as Solution Reply
Workflow Hero

Re: Common: NewLine is completely ignored by SharePoint

I did the same thing...

And the results are:

This is soo weird! Why isn't it working?

0 Kudos
Accept as Solution Reply
Workflow Hero

Re: Common: NewLine is completely ignored by SharePoint

& my variable to store in is a multiple lines of text!

0 Kudos
Accept as Solution Reply
Workflow Hero

Re: Common: NewLine is completely ignored by SharePoint

What version of Nintex do you have?  From your screen shot there are spaces between the word "Reject" and your variable, so it looks like it did something.  What is your end goal?  What are you doing with the output of this action?

0 Kudos
Accept as Solution Reply
Workflow Hero

Re: Common: NewLine is completely ignored by SharePoint

I have Nintex 2013.
I have a flexi task with this comment field that comes with it.
With a regular expression I delete the time, date, name out of the 'last approval comment' and then save it into a variable.
Then I want to update the item and put the comment into my append only comment column. (otherwise these comments in flexi task go to nowhere).. Maybe there would be a direct way with InfoPath but I hate InfoPath  
I need the blank line because otherwise the append only text looks very confusing.

0 Kudos
Accept as Solution Reply
Workflow Hero

Re: Common: NewLine is completely ignored by SharePoint

So currently when you update your append only comment column, it doesn't add line breaks, just a single line of text?  Is the append only comment column a multi-line text field?

0 Kudos
Accept as Solution Reply
Workflow Hero

Re: Common: NewLine is completely ignored by SharePoint

I just ran a test and this is what I see in an append comments field.  The bottom entry was updated by the workflow, and the top 2 I entered manually in the field.  They all look the same.  If you're seeing the same thing, then I think it's working correctly. 

0 Kudos
Accept as Solution Reply
Workflow Hero

Re: Common: NewLine is completely ignored by SharePoint

Hi ‌!

Yes its a multiple lines of txt var.
And if I press the 'Execute' button as above it doesn't work (neither in the column). But if this problem does not appear with your SharePoint its probably not easy for you to help  

0 Kudos
Accept as Solution Reply
Workflow Hero

Re: Common: NewLine is completely ignored by SharePoint

I saw a tutorial online:

I tried the same thing and the result is:

So it looks like its a problem with my SharePoint. Any idea what to do?

0 Kudos
Accept as Solution Reply