I need to looping through a custom attribute that receives an JSON Object. Does intercom use any template language as liquid? | Community
Skip to main content
Answered

I need to looping through a custom attribute that receives an JSON Object. Does intercom use any template language as liquid?

  • Jan 28, 2021 2:00 AM UTC
  • 5 replies
  • 315 views

I need to looping through a custom attribute that receives an JSON Object. Does intercom use any template language as liquid?

Best answer by Eric Fitz

I checked in with our engineers as I wasn't sure on this myself, @marcos s12​, and I'm afraid we don't support array type custom attributes. I'd like to see if I can offer you a workaround, though. When you say "fill up some email informations for a user", what do you mean by this? Could you outline for me, step by step, what you'd like to ultimately set up? What would the user experience be like?

View original

5 replies

Eric Fitz
Employee
Forum|alt.badge.img+5
  • Employee
  • Jan 29, 2021 10:28 AM UTC

Hey there @marcos s12​, I'm not quite sure I understand what you're trying to achieve here. Could you outline what you're hoping to set up in a bit more detail, please?


  • Author
  • New Participant
  • Jan 29, 2021 3:04 PM UTC

I was trying to use a Custom Attribute to receive an array with some JSON objects, and I would like to iterate through this array. I realize some tools, like Customerio, offers a templatting language such as Liquid that allows us to do it. I was wondering if we have something like that on Intercom.


Eric Fitz
Employee
Forum|alt.badge.img+5
  • Employee
  • Feb 1, 2021 10:06 AM UTC

Thanks for clarifying! Can you tell me a bit more about how you're hoping to use this array? What is your end goal?


  • Author
  • New Participant
  • Feb 3, 2021 7:57 AM UTC

My end goal is to use the array items as we use custom attributes, to fill up some email informations for a user.


Eric Fitz
Employee
Forum|alt.badge.img+5
  • Employee
  • Answer
  • Feb 3, 2021 10:36 AM UTC

I checked in with our engineers as I wasn't sure on this myself, @marcos s12​, and I'm afraid we don't support array type custom attributes. I'd like to see if I can offer you a workaround, though. When you say "fill up some email informations for a user", what do you mean by this? Could you outline for me, step by step, what you'd like to ultimately set up? What would the user experience be like?