<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>post Adding Multiple Lines/Line Breaks to a Description using Flow Designer in ServiceNow AI Platform articles</title>
    <link>https://www.servicenow.com/community/servicenow-ai-platform-articles/adding-multiple-lines-line-breaks-to-a-description-using-flow/ta-p/2326258</link>
    <description>&lt;P&gt;This is just a quick article which I hope people will find useful.&lt;/P&gt;
&lt;P&gt;I was using Flow Designer to populate a task record's&amp;nbsp;Description field using the "Create Task Record" action that comes with the Flow Designer Service Catalog plugin.&lt;/P&gt;
&lt;P&gt;I needed to insert line-breaks into the Description field so that I could separate fields from the Catalog Variables - for example:&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;Do something with this Widget.&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;Name of submitter: &amp;lt;variables.submitter&amp;gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;Name of widget: &amp;lt;variables.widgetname&amp;gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;After getting some helpful suggestions online (hi SNdevs!) I found a solution for adding line breaks was to encapsulate the entire string (including data pills) in a Javascript string using \n line breaks.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For example, the syntax for the above description would be:&lt;/P&gt;
&lt;PRE class="language-javascript"&gt;&lt;CODE&gt;javascript: "Do something with this Widget. \n Name of Submitter: {{submitter data pill}} \n Name of Widget: {{widgetname data pill}}"&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;I hope someone else finds this useful!&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 01 Feb 2019 05:14:10 GMT</pubDate>
    <dc:creator>kevclark</dc:creator>
    <dc:date>2019-02-01T05:14:10Z</dc:date>
    <item>
      <title>Adding Multiple Lines/Line Breaks to a Description using Flow Designer</title>
      <link>https://www.servicenow.com/community/servicenow-ai-platform-articles/adding-multiple-lines-line-breaks-to-a-description-using-flow/ta-p/2326258</link>
      <description>&lt;P&gt;This is just a quick article which I hope people will find useful.&lt;/P&gt;
&lt;P&gt;I was using Flow Designer to populate a task record's&amp;nbsp;Description field using the "Create Task Record" action that comes with the Flow Designer Service Catalog plugin.&lt;/P&gt;
&lt;P&gt;I needed to insert line-breaks into the Description field so that I could separate fields from the Catalog Variables - for example:&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;Do something with this Widget.&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;Name of submitter: &amp;lt;variables.submitter&amp;gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;Name of widget: &amp;lt;variables.widgetname&amp;gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;After getting some helpful suggestions online (hi SNdevs!) I found a solution for adding line breaks was to encapsulate the entire string (including data pills) in a Javascript string using \n line breaks.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For example, the syntax for the above description would be:&lt;/P&gt;
&lt;PRE class="language-javascript"&gt;&lt;CODE&gt;javascript: "Do something with this Widget. \n Name of Submitter: {{submitter data pill}} \n Name of Widget: {{widgetname data pill}}"&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;I hope someone else finds this useful!&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 01 Feb 2019 05:14:10 GMT</pubDate>
      <guid>https://www.servicenow.com/community/servicenow-ai-platform-articles/adding-multiple-lines-line-breaks-to-a-description-using-flow/ta-p/2326258</guid>
      <dc:creator>kevclark</dc:creator>
      <dc:date>2019-02-01T05:14:10Z</dc:date>
    </item>
    <item>
      <title>Re: Adding Multiple Lines/Line Breaks to a Description using Flow Designer</title>
      <link>https://www.servicenow.com/community/servicenow-ai-platform-articles/adding-multiple-lines-line-breaks-to-a-description-using-flow/tac-p/2326259#M2821</link>
      <description>&lt;P&gt;Thanks a lot for sharing, this will be really useful to me for Automated tests (ATF). I didn't have a good way to validate multi-line fields and was forced to make multiple contains condition for every line which is not the same as testing for the exact string.&lt;/P&gt;
&lt;P&gt;Edit: After further usage, ATF validations require to use \r\n for a new line instead of simply \n.&lt;/P&gt;</description>
      <pubDate>Fri, 01 Feb 2019 19:28:23 GMT</pubDate>
      <guid>https://www.servicenow.com/community/servicenow-ai-platform-articles/adding-multiple-lines-line-breaks-to-a-description-using-flow/tac-p/2326259#M2821</guid>
      <dc:creator>LaurentChicoine</dc:creator>
      <dc:date>2019-02-01T19:28:23Z</dc:date>
    </item>
    <item>
      <title>Re: Adding Multiple Lines/Line Breaks to a Description using Flow Designer</title>
      <link>https://www.servicenow.com/community/servicenow-ai-platform-articles/adding-multiple-lines-line-breaks-to-a-description-using-flow/tac-p/2326260#M2822</link>
      <description>&lt;P&gt;Thanks for sharing &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;I can see that we have changed our "Description" field years ago to a HTML field rather than the ootb string.&lt;/P&gt;
&lt;P&gt;Result is that the following is printed in the description field when the catalog task is created:&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 11px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #ffffff; text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;"&gt;&amp;lt;p data-tinymcerootblock&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;Any ideas on how to work around it?&lt;/P&gt;</description>
      <pubDate>Fri, 22 Feb 2019 11:05:06 GMT</pubDate>
      <guid>https://www.servicenow.com/community/servicenow-ai-platform-articles/adding-multiple-lines-line-breaks-to-a-description-using-flow/tac-p/2326260#M2822</guid>
      <dc:creator>hnie</dc:creator>
      <dc:date>2019-02-22T11:05:06Z</dc:date>
    </item>
    <item>
      <title>Re: Adding Multiple Lines/Line Breaks to a Description using Flow Designer</title>
      <link>https://www.servicenow.com/community/servicenow-ai-platform-articles/adding-multiple-lines-line-breaks-to-a-description-using-flow/tac-p/2326261#M2823</link>
      <description>&lt;P&gt;I'm not entirely sure, but you may need to construct the entire value in the whatever the desired target HTML needs to be, so something like:&lt;/P&gt;
&lt;PRE class="language-markup"&gt;&lt;CODE&gt;javascript:"&amp;lt;span&amp;gt;hello world&amp;lt;/span&amp;gt;&amp;lt;/ br&amp;gt;this is the next line.&amp;lt;/ br&amp;gt;then the next line.&amp;lt;/ br&amp;gt;" &lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sun, 24 Feb 2019 22:42:22 GMT</pubDate>
      <guid>https://www.servicenow.com/community/servicenow-ai-platform-articles/adding-multiple-lines-line-breaks-to-a-description-using-flow/tac-p/2326261#M2823</guid>
      <dc:creator>kevclark</dc:creator>
      <dc:date>2019-02-24T22:42:22Z</dc:date>
    </item>
    <item>
      <title>Re: Adding Multiple Lines/Line Breaks to a Description using Flow Designer</title>
      <link>https://www.servicenow.com/community/servicenow-ai-platform-articles/adding-multiple-lines-line-breaks-to-a-description-using-flow/tac-p/2326262#M2824</link>
      <description>&lt;P&gt;Hey,&lt;/P&gt;
&lt;P&gt;I managed to get this to work - You just need to Shift+Enter when adding a new line in the HTML field in the flow designer - Then it actually works! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;https://docs.servicenow.com/bundle/london-platform-administration/page/use/using-forms/concept/c_InsertALineBreak.html&lt;/P&gt;</description>
      <pubDate>Tue, 09 Apr 2019 12:08:52 GMT</pubDate>
      <guid>https://www.servicenow.com/community/servicenow-ai-platform-articles/adding-multiple-lines-line-breaks-to-a-description-using-flow/tac-p/2326262#M2824</guid>
      <dc:creator>hnie</dc:creator>
      <dc:date>2019-04-09T12:08:52Z</dc:date>
    </item>
    <item>
      <title>Re: Adding Multiple Lines/Line Breaks to a Description using Flow Designer</title>
      <link>https://www.servicenow.com/community/servicenow-ai-platform-articles/adding-multiple-lines-line-breaks-to-a-description-using-flow/tac-p/2326263#M2825</link>
      <description>&lt;P&gt;Nice!&amp;nbsp; Will have to test next time I'm working in Flow Designer.&lt;/P&gt;</description>
      <pubDate>Fri, 17 May 2019 03:09:15 GMT</pubDate>
      <guid>https://www.servicenow.com/community/servicenow-ai-platform-articles/adding-multiple-lines-line-breaks-to-a-description-using-flow/tac-p/2326263#M2825</guid>
      <dc:creator>kevclark</dc:creator>
      <dc:date>2019-05-17T03:09:15Z</dc:date>
    </item>
    <item>
      <title>Re: Adding Multiple Lines/Line Breaks to a Description using Flow Designer</title>
      <link>https://www.servicenow.com/community/servicenow-ai-platform-articles/adding-multiple-lines-line-breaks-to-a-description-using-flow/tac-p/2326264#M2826</link>
      <description>&lt;P&gt;thanks so much. This was sooooooo helpful Kev.&lt;/P&gt;</description>
      <pubDate>Thu, 06 Jun 2019 04:45:11 GMT</pubDate>
      <guid>https://www.servicenow.com/community/servicenow-ai-platform-articles/adding-multiple-lines-line-breaks-to-a-description-using-flow/tac-p/2326264#M2826</guid>
      <dc:creator>Meshia</dc:creator>
      <dc:date>2019-06-06T04:45:11Z</dc:date>
    </item>
    <item>
      <title>Re: Adding Multiple Lines/Line Breaks to a Description using Flow Designer</title>
      <link>https://www.servicenow.com/community/servicenow-ai-platform-articles/adding-multiple-lines-line-breaks-to-a-description-using-flow/tac-p/2326265#M2827</link>
      <description>&lt;P&gt;Hi Kev&lt;/P&gt;
&lt;P&gt;This was super helpful for me too&amp;nbsp;... Thanks very much!!!&lt;/P&gt;</description>
      <pubDate>Wed, 06 Nov 2019 16:26:04 GMT</pubDate>
      <guid>https://www.servicenow.com/community/servicenow-ai-platform-articles/adding-multiple-lines-line-breaks-to-a-description-using-flow/tac-p/2326265#M2827</guid>
      <dc:creator>bpolo</dc:creator>
      <dc:date>2019-11-06T16:26:04Z</dc:date>
    </item>
    <item>
      <title>Re: Adding Multiple Lines/Line Breaks to a Description using Flow Designer</title>
      <link>https://www.servicenow.com/community/servicenow-ai-platform-articles/adding-multiple-lines-line-breaks-to-a-description-using-flow/tac-p/2326266#M2828</link>
      <description>&lt;P&gt;Thanks for this - I used it on the Virtual Agent, which worked like a dream!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;javascript: "Some text\n\nDescription: {{vaInputs.description}} \n\nSome more text"&lt;/P&gt;</description>
      <pubDate>Fri, 18 Sep 2020 08:10:15 GMT</pubDate>
      <guid>https://www.servicenow.com/community/servicenow-ai-platform-articles/adding-multiple-lines-line-breaks-to-a-description-using-flow/tac-p/2326266#M2828</guid>
      <dc:creator>Team Carl</dc:creator>
      <dc:date>2020-09-18T08:10:15Z</dc:date>
    </item>
  </channel>
</rss>

