Skip to main content
Nintex Community Menu Bar
Solved

How to keep line breaks in NWC task assignments

  • May 1, 2024
  • 2 replies
  • 97 views

Forum|alt.badge.img+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!

Best answer by Jake

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:

 

 

2 replies

Jake
Forum|alt.badge.img+13
  • Scholar
  • Answer
  • May 1, 2024

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:

 

 


Forum|alt.badge.img+2
  • Author
  • Rookie
  • May 1, 2024

Amazing, that worked - thanks a lot @Jake !