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
BedrockMission!

Learn More

View all

Sign in to view all badges

AAM Trait Regex

Avatar

Avatar
Affirm 1
Level 1
MA1985v1
Level 1

Likes

0 likes

Total Posts

11 posts

Correct Reply

1 solution
Top badges earned
Affirm 1
View profile

Avatar
Affirm 1
Level 1
MA1985v1
Level 1

Likes

0 likes

Total Posts

11 posts

Correct Reply

1 solution
Top badges earned
Affirm 1
View profile
MA1985v1
Level 1

19-05-2021

As per my understanding, we need to have the trait key name and value in place in AAM even though if we use regex to consider “ALL” (i.e.: .*) . Highlighted below.

 

Assume that, we have sent only 3 different dealcode trait key value to AAM but wanted to exclude those 3 key value but need to include rest of the new upcoming key value.

 

Scenario:

We would like to consider all users falls under dealcode by using regex .* and at the same time exclude the users with the specific value(“yaa|abc|tst”)

MA1985v1_0-1621454853546.png

 

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Contributor 2
MVP
Varun_Kalra
MVP

Likes

177 likes

Total Posts

286 posts

Correct Reply

121 solutions
Top badges earned
Contributor 2
Contributor
Seeker
Ignite 10
Ignite 5
View profile

Avatar
Contributor 2
MVP
Varun_Kalra
MVP

Likes

177 likes

Total Posts

286 posts

Correct Reply

121 solutions
Top badges earned
Contributor 2
Contributor
Seeker
Ignite 10
Ignite 5
View profile
Varun_Kalra
MVP

19-05-2021

Hi there,

 

That should work and will exclude those 3 deal codes from the trait. Your regular expression will look for the substring and may exclude other dealcodes that use the same substring.

To be more precise and specific use string start and end match operators in your regular expression.

 

^yaa$|^abc$|^tst$

 

Also, once you have built the trait, you can use the trait validation tool while editing the trait and check if someone with those values will exhibit the trait or not:

 

Varun_Kalra_0-1621480788066.pngVarun_Kalra_1-1621480854134.png


Thanks,

Varun Kalra

Answers (0)