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

SOLVED

dynamic tokens in offer throwing an error

swapnilchaudhari
Level 1
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
swapnilchaudhari
Correct answer by
Level 1
Level 1

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

View solution in original post

1 Reply
swapnilchaudhari
Correct answer by
Level 1
Level 1

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

View solution in original post