Skip to main content
January 15, 2016
Question

Return Character in Change Data Value

  • January 15, 2016
  • 3 replies
  • 4695 views

We are using change data value to append a field to a field history. Ideally, we would like to enter a line break between each entry to make it easier to read. Currently I have:

{{system.dateTime}} - {{lead.Comments (form)}}  {{lead.Comments(History)}}

But I would like it to be formatted as

{{system.dateTime}} - {{lead.Comments (form)}} 

{{lead.Comments(History)}}

both fields are text areas and can handle a line break, but I cant figure out how to add one using a flow action.

I have tried adding /n, /r... but it just adds the characters. Is there a wrapper I need to use to have it change the value correctly.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

3 replies

Adobe Employee
January 16, 2016

Hi Justin,

This isn't currently possible, as the flow step doesn't interpret special characters.   I've been trying to work out some other way to do it, but I'm coming up blank.  I would encourage you to submit an idea on it.  I'd vote for it!

John

SanfordWhiteman
Level 10
January 16, 2016

I've done it.  It's a delicate hack.  Showed a demo the other day of the results but no one seemed interested!

The major problem with is it isn't a one-time setup: anytime you make a change to the Smart Campaign you have to remember to redo it.  It amounts to subverting the UI validation so it always has to be the "last touch" of the SC.

January 18, 2016

Not sure I follow - were you able to use /n?

January 16, 2016

Hi Justin,

I'm pretty sure everything when viewing a lead record is set to not interpret encoding like that, to avoid the security risk of code injection through a form or if an API were to be compromised. I think if the field is synced to a rich text field in SFDC you might be able to use HTML characters like <br> though.

SanfordWhiteman
Level 10
January 16, 2016

I'm pretty sure everything when viewing a lead record is set to not interpret encoding like that

Nah, textarea/longtext must support \n.

January 18, 2016

I'm a little confused about what you mean by "must" support. If you do a change data value that uses "\n", it will not show a line break when you view the lead record. In general, I'd advise against adopting flows that require such "hacks", as they tend to rely on aspects of Marketo that may be fixed down the road (thus causing them to "break"), and will at the very least cause confusion to future admin users in your instance.
@justin - where are you trying to see line breaks? Is this for yourself when viewing lead records in Marketo? Or is it for your sales team?

Grant

Grégoire_Miche2
Level 10
January 22, 2016

Has anyone entered and idea about this ?

I'll vote.

-Greg

Robb_Barrett
Level 10
February 25, 2016

I just upvoted. Our sales folks are complaining about sending over unformatted notes.  A step further would be to make the CDV a Rich Text Editor with bullets, bolds, etc but I'm sure that'd be tricky depending on the CRM it's sending to.

Robb Barrett
February 25, 2016

Agreed, this would make this much easier