Forcing Lower Case Values | Community
Skip to main content
marion33678522
New Participant
June 4, 2018
Solved

Forcing Lower Case Values

  • June 4, 2018
  • 1 reply
  • 2075 views

Hello Adobe Community,

I've been asked to force case every value from my datalayer with DTM.

Since we have many rules and data elements, I would like to know if there was plugin that could be used ?

Kind regards,

Mario

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

If you want to do it within DTM, you can simply make sure 'convert to lowercase' checkbox is checked on every rule.

If you want to do it outside of DTM, you'd want to implement a bit of custom code that would iterate through the data layer and convert everything to lowercase. This page on stackoverflow seemed to have a couple ideas on how to effectively accomplish that:

javascript - What's the best way (most efficient) to turn all the keys of an object to lower case? - Stack Overflow

1 reply

Gigazelle
GigazelleAccepted solution
Employee
November 12, 2018

If you want to do it within DTM, you can simply make sure 'convert to lowercase' checkbox is checked on every rule.

If you want to do it outside of DTM, you'd want to implement a bit of custom code that would iterate through the data layer and convert everything to lowercase. This page on stackoverflow seemed to have a couple ideas on how to effectively accomplish that:

javascript - What's the best way (most efficient) to turn all the keys of an object to lower case? - Stack Overflow