Profile.get not working in profile script

Avatar

Avatar
Validate 1
Level 1
deepalis3287037
Level 1

Likes

0 likes

Total Posts

4 posts

Correct reply

0 solutions
Top badges earned
Validate 1
View profile

Avatar
Validate 1
Level 1
deepalis3287037
Level 1

Likes

0 likes

Total Posts

4 posts

Correct reply

0 solutions
Top badges earned
Validate 1
View profile
deepalis3287037
Level 1

10-10-2017

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.

Replies

Avatar

Avatar
Validate 250
Employee
Amelia_Waliany
Employee

Likes

191 likes

Total Posts

453 posts

Correct reply

73 solutions
Top badges earned
Validate 250
Validate 100
Validate 50
Validate 25
Validate 10
View profile

Avatar
Validate 250
Employee
Amelia_Waliany
Employee

Likes

191 likes

Total Posts

453 posts

Correct reply

73 solutions
Top badges earned
Validate 250
Validate 100
Validate 50
Validate 25
Validate 10
View profile
Amelia_Waliany
Employee

10-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.

Avatar

Avatar
Validate 1
Level 1
deepalis3287037
Level 1

Likes

0 likes

Total Posts

4 posts

Correct reply

0 solutions
Top badges earned
Validate 1
View profile

Avatar
Validate 1
Level 1
deepalis3287037
Level 1

Likes

0 likes

Total Posts

4 posts

Correct reply

0 solutions
Top badges earned
Validate 1
View profile
deepalis3287037
Level 1

11-10-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');

}

Avatar

Avatar
Validate 250
Employee
Amelia_Waliany
Employee

Likes

191 likes

Total Posts

453 posts

Correct reply

73 solutions
Top badges earned
Validate 250
Validate 100
Validate 50
Validate 25
Validate 10
View profile

Avatar
Validate 250
Employee
Amelia_Waliany
Employee

Likes

191 likes

Total Posts

453 posts

Correct reply

73 solutions
Top badges earned
Validate 250
Validate 100
Validate 50
Validate 25
Validate 10
View profile
Amelia_Waliany
Employee

11-10-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!

Avatar

Avatar
Validate 1
Level 1
deepalis3287037
Level 1

Likes

0 likes

Total Posts

4 posts

Correct reply

0 solutions
Top badges earned
Validate 1
View profile

Avatar
Validate 1
Level 1
deepalis3287037
Level 1

Likes

0 likes

Total Posts

4 posts

Correct reply

0 solutions
Top badges earned
Validate 1
View profile
deepalis3287037
Level 1

16-10-2017

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

Avatar

Avatar
Validate 250
Employee
Amelia_Waliany
Employee

Likes

191 likes

Total Posts

453 posts

Correct reply

73 solutions
Top badges earned
Validate 250
Validate 100
Validate 50
Validate 25
Validate 10
View profile

Avatar
Validate 250
Employee
Amelia_Waliany
Employee

Likes

191 likes

Total Posts

453 posts

Correct reply

73 solutions
Top badges earned
Validate 250
Validate 100
Validate 50
Validate 25
Validate 10
View profile
Amelia_Waliany
Employee

31-10-2017

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