Is there any why to display Profile attributes in AT activities dynamically? | Community
Skip to main content
Umamaheswari_Yakkala
New Participant
April 27, 2021
Solved

Is there any why to display Profile attributes in AT activities dynamically?

  • April 27, 2021
  • 3 replies
  • 1174 views

Hi Team,

 

  Is it possible to display the profile attribute values in AT Activity dynamically?

 

 Use case :

1. Activities will come from AEM 

2. Profles data will come from 3rd Party to AT

 

Use case to display profile attrubute value in activity dynamically.

 

Any ideas/advice would be great to solve the problem.

 

 

 

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

Hi Uma, you can get the value of profile attribute in the html like this :

 

console.log("Hello User, selected currency is : " +  "${profile.preferredCurrency}");

wherein preferredCurrency is the profile parameter.

 

get the value of profile script  in the html like this :

console.log("Hello User, selected currency is : " +  "${user.prCurrency}");

wherein prCurrency is the profile script.

 

3 replies

Umamaheswari_Yakkala
New Participant
April 29, 2021

Hi LordOfTheRings, its working like charm. Thank you so much.

 

we are planning to use this attribute in AEM content to display vallue dynamically  "${profile.preferredCurrency}");. 

 

How can display this value more gracefully like if there is no value in this ttaribute I would like to show default value from content. 

 

Any sugesstions/ideas how to handle that.

 

Thank You

Uma

 

 

ambikaTewari_ATCI
ambikaTewari_ATCIAccepted solution
New Participant
April 29, 2021

Hi Uma, you can get the value of profile attribute in the html like this :

 

console.log("Hello User, selected currency is : " +  "${profile.preferredCurrency}");

wherein preferredCurrency is the profile parameter.

 

get the value of profile script  in the html like this :

console.log("Hello User, selected currency is : " +  "${user.prCurrency}");

wherein prCurrency is the profile script.

 

shelly-goel
Employee
April 28, 2021

@umamaheswari_yakkala  You should be able to access the profile script using beloa syntax unless you're looking for something else.

user.get<profilescriptname>

you can find an example here:

https://experienceleague.adobe.com/docs/target/using/implement-target/before-implement/methods/script-profile-attributes.html?lang=en#caveats

Umamaheswari_Yakkala
New Participant
April 29, 2021

Hi shelly-goel, 

 

I am looking for how can I use this profile info in content to display infor dynamically. 

 

Lets say.. like to display thier Last name in offer and that is coming from 3rd party system to Adobe Target. 

 

How can we display that profiles attribute value in offers? Is there way.

 

Thanks