Expand my Community achievements bar.

Join us for our second AMA on experimentation and personalization strategies with Target, occurring on June 3rd!

Mark Solution

This conversation has been locked due to inactivity. Please create a new post.

SOLVED

dynamic tokens in offer throwing an error

Avatar

Level 1

Hey guys,

 

I am trying to access the customer attributes directly into offer as referred in this Post.

Following is the code snippet that I have used.

var a = "${crs.personalized experience.blog page visitors}"
console.log('offer ran!')

console.log(a)

 

When this block executes error is thrown in with status 500

Network call - status: 500, message: "An error has occurred while processing your request, please try again later"

Is this causing because of the white spaces in attribute name? or I have missed something. 
I am new to Target, pls point me to right documentation or share your thoughts.

 

 

1 Accepted Solution

Avatar

Correct answer by
Level 1

Update: I was able to resolve this. Issue was caused by white spaces in attribute

View solution in original post

1 Reply

Avatar

Correct answer by
Level 1

Update: I was able to resolve this. Issue was caused by white spaces in attribute