dynamic tokens in offer throwing an error | Community
Skip to main content
July 9, 2020
Solved

dynamic tokens in offer throwing an error

  • July 9, 2020
  • 1 reply
  • 846 views

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.

 

 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by swapnilchaudhari

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

1 reply

swapnilchaudhariAuthorAccepted solution
July 9, 2020

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