Accessing customer attribute in offers | Community
Skip to main content
July 8, 2020
Question

Accessing customer attribute in offers

  • July 8, 2020
  • 0 replies
  • 703 views

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&version=2.3.0 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..

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