Solved

How to keep line breaks in NWC task assignments


Badge +2

Hi guys,

We are using an internal API to call Nintex and assign tasks. 

We will be passing it several blocks of text and I would like to somehow format it correctly into the task emails. A basic element is creating a line break, but I cannot get it to work. The number of items in the list can change each time, some runs it wont have a list at all.

Step 1. Create a string with line breaks.

Step 2. Looks okay in the Instance details.
 

Step 3. Email arrives and the formatting is gone, and it’s all one sentence.

Is there any steps I am missing to achieve this? Thank you!

icon

Best answer by Jake 1 May 2024, 13:58

View original

2 replies

Userlevel 5
Badge +13

Hi @JimOw 

 

Emails sent via Nintex now have support for HTML, the method I like to use is to build the format i want in the email action first then use the HTML button to take it and build my string:

 

Notice the HTML button on the ribbon, you can expand the edit area for a better view.

Then this will show you the HTML for a valid email.

 

Taking this into a string action will give us the correct output. 

 

 

 

And this should be the output:

 

 

Badge +2

Amazing, that worked - thanks a lot @Jake !

Reply