Re: Creating a New Line Program Token to Organize a History Field

Nate_Oosterhous
Level 7
Hello Everyone!

I really need your help on this one.  

Question: Does anyone know how to create a program token that would create a new line if added to inbetween tokens.  

I am looking to format a history field like the example below:

Filled out Form on: 2015-03-10 13:00:00  Form Comments: This is the comments from the 3rd form fill out.

Filled out Form on: 2015-02-10 12:00:00  Form Comments: This is the comments from the 2nd form fill out.

Filled out Form on: 2015-01-10 11:00:00  Form Comments: This is the comments from the 1st form fill out.

Right now it looks all mashed together like this:

Filled out Form on: 2015-03-10 13:00:00  Form Comments: This is the comments from the 3rd form fill out.
Filled out Form on: 2015-02-10 12:00:00  Form Comments: This is the comments from the 2nd form fill out.Filled out Form on: 2015-01-10 11:00:00  Form Comments: This is the comments from the 1st form fill out.

Below is my Flow Action: 


0EM50000000SyWM.jpg

I am looking to figure out some way to use a program token in the default choice of this Change Data Value Flow.  Right now I have a program token in the place where I want it but I can't figure out how to get that to represent two new lines.

 
Tags (1)
47 REPLIES 47
lillyfalcon
Level 3

Amazing! Thanks heaps @SanfordWhiteman 🙂 I'll give this solution a go 🤞

Lilly Falcon
SanfordWhiteman
Level 10 - Community Moderator

How are you inserting the line breaks originally? To make sure this is the same case.

SanfordWhiteman
Level 10 - Community Moderator

No man, that's crazy. Esp. because it's the field value itself that seems to be getting munged in the batch campaign and not getting changed in the trigger.

Dan_Stevens_
Level 10 - Champion Alumni

That very well may be the case as well.  But how do we get Support to determine if that's what's happening? 

Dan_Stevens_
Level 10 - Champion Alumni

This is so odd - and such a simple test.  Not sure why you and I are experiencing this differently:

Added three lines to the Notes field (using regular line breaks (hitting "enter" after each) - not your technique.  Alternatively, I even tried using SHIFT-ENTER for a soft linebreak (and another time with two linebreaks):

pastedImage_0.png

The velocity token (Test-linebreak2):

pastedImage_1.png

The token placed in the email:

pastedImage_2.png

The output:

pastedImage_0.png

pastedImage_1.png

SanfordWhiteman
Level 10 - Community Moderator

OK, now we know it isn't the line break token itself.

I'll check this again and get back.