Skip to main content
Solved

Can Klaviyo variables have multiple lines?


Forum|alt.badge.img+1
  • Contributor I

Hi all,

 

I am using the Klaviyo API to create some custom personalization in one of me email flows.


If I’m passing a variable back to Klaviyo through a metric/event, let’s call it “personalization”, is it possible for this to be a multi-line text?

Currently it seems that all new line characters are not being passed into Klaviyo.​​​​​​​

 

Appreciate all your help in advance!

Best answer by Brian Turcotte

Hi @AC0!

At this time, custom properties/variables do not support multi-line text, but I will pass this on to our API team and I’ll update the thread if anything changes!

Best,

Brian

View original
Did this topic or the replies in the thread help you find an answer to your question?

2 replies

Brian Turcotte
Forum|alt.badge.img+37
  • Klaviyo Alum
  • 1393 replies
  • Answer
  • October 22, 2023

Hi @AC0!

At this time, custom properties/variables do not support multi-line text, but I will pass this on to our API team and I’ll update the thread if anything changes!

Best,

Brian


Forum|alt.badge.img+6
  • Problem Solver III
  • 38 replies
  • October 23, 2023

I know this has been “Answered” but the answer is not “Klaviyo can’t do this” - the questions is why are you trying to submit a multiple line record?  Typically in any database structure the number of lines is not consequential as line breaks are human-readable issues not data storage issues.

If you are trying to submit multiple values in a custom data field then Klaviyo can ABSOLUTELY do this - just submit the multiple values as a JSON array.   Klaviyo’s segmenting supports this and all the values you submit in the array will populate in the “Dimensions Value” field.  On your front end just display each JSON array item in a new line.