Forcing Lower Case Values | Community
Skip to main content
marion33678522
Level 5
Jun 4, 2018 1:52 PM UTC
Solved

Forcing Lower Case Values

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.
Gigazelle
GigazelleAccepted solution
Employee
Nov 12, 2018 9:33 PM UTC

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
Nov 12, 2018 9:33 PM UTC

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

Translate