Expand my Community achievements bar.

Accessing customer attribute in offers

Avatar

Level 1

Hi guys,

 

I have written an offer code referencing customer attribute. This code is written just to test connection and data.
Following is the snippet. 

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

I am directly referencing the audience from offer. When this code run I see error in console 
mbox-contents-7f70287b57a884bbc3c3e7ff06cb2d9f7131a976.js:1
POST https://name.tt.omtrdc.net/rest/v1/delivery?client=name&sessionId=ce4718eef61c43f9b2a9af70210befca&v... 500

Network call for mbox

  1. {status: 500, message: "An error has occurred while processing your request, please try again later"}
  2. message: "An error has occurred while processing your request, please try again later"
  3. status: 500

 

Is this issue caused because there are white spaces in attribute? Kindly let me know..

0 Replies