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
BedrockMission!

Learn more

View all

Sign in to view all badges

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

umamaheswariy46
Level 5
Level 5

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.

 

 

 

4 Replies
shelly-goel
Community Advisor
Community Advisor

@umamaheswariy46  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/scrip...

umamaheswariy46
Level 5
Level 5

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

 

LordOfTheRings
Level 6
Level 6

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.

 

umamaheswariy46
Level 5
Level 5

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