Skip to main content

Hi, I am new to Interaction studio and I am doing this thing where I have to fetch User Attribute values and display them in Web Template. I have tried using ${user.attribute....} but unable to fetch values with this.

 

@* Marketing Cloud Engagement * 

3 respostas
  1. Mateusz Dąbrowski (mateuszdabrowski.pl) Forum Ambassador
    22 de jul. de 2022, 13:29

    You need to pull those attributes in the serverside.ts part of your Template with context.user.attributes.attributeName (for example, within return statement of run(context: CampaignComponentContext) so that it is visible in the payload. 

    Only then you will be able to leverage that in the frontend handlebars.hbs section by referencing the payload passed from TS.

     

    Example: https://github.com/evergage/evergage-global-templates/blob/master/infobar-with-user-attribute-and-cta/template.ts

    @Interaction Studio SFMC Personalization

0/9000