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
Bedrock Mission!

Learn more

View all

Sign in to view all badges

Profile.get not working in profile script

deepalis3287037
Level 1
Level 1

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.

5 Replies
Amelia_Waliany
Employee
Employee

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.

deepalis3287037
Level 1
Level 1

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
Employee
Employee

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!

deepalis3287037
Level 1
Level 1

I use this method return user.get('product') but getting blank value

Amelia_Waliany
Employee
Employee

Thanks for sharing this update! Would you be able to share more details (screenshots, etc.) with me directly at waliany@adobe.com? Alternatively, you can send the same information to client care at customercare@adobe.com to open a support ticket so that we can explore the matter further? Thanks!

Warmly,

Amelia