The CreatorCon Call for Content is officially open! Get started here.

Adding new lines/line breaks in article body field from Flow Designer

AM24
Giga Guru

I have a flow in which I add catalog item variables to the Article Body field of a knowledge article. I want to have line breaks between these variables in the article body. I have a script for adding these variables in the flow designer and tried adding "\n", shown in the article below, but that doesn't seem to work. I was wondering how I could add new lines. find_real_file.png

1 ACCEPTED SOLUTION

Allen Andreas
Administrator
Administrator

Hi,

What does the article body look like after doing that? Unfortunately, all you mentioned was that it doesn't work.

Does the \n show up, like literally?

Since the article body is HTML enabled, you may need to do something like:

return "Milestone/Deliverable: <br> second line.... <br> third line...";

Please mark reply as Helpful/Correct, if applicable. Thanks!


Please consider marking my reply as Helpful and/or Accept Solution, if applicable. Thanks!

View solution in original post

2 REPLIES 2

Allen Andreas
Administrator
Administrator

Hi,

What does the article body look like after doing that? Unfortunately, all you mentioned was that it doesn't work.

Does the \n show up, like literally?

Since the article body is HTML enabled, you may need to do something like:

return "Milestone/Deliverable: <br> second line.... <br> third line...";

Please mark reply as Helpful/Correct, if applicable. Thanks!


Please consider marking my reply as Helpful and/or Accept Solution, if applicable. Thanks!

\n doesn't show up at all either. I'll try what you recommended though.