Profile.get not working in profile script | Community
Skip to main content
October 10, 2017

Profile.get not working in profile script

  • October 10, 2017
  • 1 reply
  • 5571 views

I have set profile parameter on click of button.however in target profile script i am not able to fetch the profile parameter value using profile.get method.

please guide me on same.

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

1 reply

Amelia_Waliany
Adobe Employee
Adobe Employee
October 10, 2017

Thanks for your question!  Check out Profile Script Attributes. This may be helpful as it sets out best practices, as well as how to create and disable profile scripts in certain situations.

October 11, 2017

I have updated my global mbox with profile.product parameter that values properly show in my server call.

However i am not able to return that profile parameter values in profile script below is my code

if(mbox=='target-global-mbox')

{

return profile.get('product');

}

Amelia_Waliany
Adobe Employee
Adobe Employee
October 11, 2017

Different name spaces are used for on page profile parameters and script profile parameters. On page profile parameters uses profile. and script uses user., so you will need to update your code to say return user.get('product');}

Hope this was helpful!