Flow Designer: How to enter new line in Description field in Create Task?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-27-2019 06:20 AM
I am trying to enter a new line character in a block of text I want to enter using Flow Designer for the Description field. No matter which codes I use on the Create Task, such as the following examples are not working:
Create Task -> Set Description to -> <varbiable> + '\n' + <variable>
Create Task -> Set Description to -> <varbiable> + '<br>' + <variable>
Create Task -> Set Description to -> <varbiable> + <br> + <variable>
Nothing is working. Can anyone assist with this issue?
Thank you,
Kevin Eldridge

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-27-2019 02:30 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-28-2019 04:00 AM
Pradeep,
This doesn't seem to work it appears that when it runs something sees the javascript and complete removes the values put in the description field. Any other ideas?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-01-2019 07:20 AM
Actually it looks like this suggestion does work but for some reason one field being mapped into it causes it to bug out and blank out the field. Either way javascript: is the way to go.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-16-2023 07:48 AM - edited ‎05-16-2023 07:53 AM
Posting this in case anyone in the future sees this. With newer versions of Flow designer using '\n' (or "\n") still works. It's just to execute scripts you'll use the script button when trying to set that value instead of using javascript:
Here's a screenshot from the Set Flow Variable Flow Logic, but it should work for Description as well, which should also be a string field on most ServiceNow records. You can dot walk using fd_data like you would when selecting a data pill.