What's the best way to show currency values in a custom attribute? | Community
Skip to main content
Answered

What's the best way to show currency values in a custom attribute?

  • September 21, 2021
  • 1 reply
  • 134 views

We have custom data attributes with Decimal format, to hold currency dollar values. When I add them to outgoing messages, they don't get currency formatted.

e.g. field value is 6252.0 - but it should display in the email as $6,252.00. How to do this?

Best answer by Roy

Hello @andy l11​ 👋

 

In this case, you should technically change the following data and before send it to Intercom. Javascript API allows you to send it in the correct way.

 

Now about currency, in your case, I created a new attribute called Currency. Then in e-mails display #Currency #Amount.

1 reply

Roy
Top Expert ✨
Forum|alt.badge.img+5
  • Top Expert ✨
  • 1152 replies
  • Answer
  • September 24, 2021

Hello @andy l11​ 👋

 

In this case, you should technically change the following data and before send it to Intercom. Javascript API allows you to send it in the correct way.

 

Now about currency, in your case, I created a new attribute called Currency. Then in e-mails display #Currency #Amount.