Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

SOLVED

Forcing Lower Case Values

marion33678522
Level 8
Level 8

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

1 Accepted Solution
Gigazelle
Correct answer by
Employee
Employee

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? -...

View solution in original post

1 Reply
Gigazelle
Correct answer by
Employee
Employee

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? -...

View solution in original post