Email Template logic not working as expected

I am working on updating the Certification template. I am trying to get the Dear${user.name} to only show the users First name. I have tried a number of configurations and looked in Compass and the Dev portal and I am not able to figure out why the logic is not working as I would expect. Below are all the ways I have tried to get this to map properly. And I did verify the attribute name on the Cube.

Dear ${user.adFirstName},

 SSM Health requires periodic access reviews and certifications of all team members. Access reviews are an important component in SSM Health’s overall security and compliance strategy and reduce the risk of over-provisioning access to individuals.

Dear Potter, Mark,

 SSM Health requires periodic access reviews and certifications of all team members. Access reviews are an important component in SSM Health’s overall security and compliance strategy and reduce the risk of over-provisioning access to individuals.

Dear ${user.displayName},

 SSM Health requires periodic access reviews and certifications of all team members. Access reviews are an important component in SSM Health’s overall security and compliance strategy and reduce the risk of over-provisioning access to individuals.

Dear ${identity.adFirstName},

 SSM Health requires periodic access reviews and certifications of all team members. Access reviews are an important component in SSM Health’s overall security and compliance strategy and reduce the risk of over-provisioning access to individuals.

Dear $identity.adFirstName,

 SSM Health requires periodic access reviews and certifications of all team members. Access reviews are an important component in SSM Health’s overall security and compliance strategy and reduce the risk of over-provisioning access to individuals.

Hey @mpotti,
What is the technical name of your First Name identity attribute? You should be able to just do ${user.identityAttribute} (where identityAttribute is the technical name of the Identity Attribute you want to reference; i.e. if your Identity Attribute’s technical name is firstName, you’d do ${user.firstName}).

Here is what I am showing on the cube.

Here is what I am showing on the Identity Profiles.


So this looks like the issue was that I needed to look at the Identity Profile and put the value from in between the (). So the case matters for this logic.

Yes, and also a recommendation while creating attributes

You can have user friendly labels for Name which is used for display purpose only, there is no functional usage of it. Technical name will be generated automatically by converting value in Name placeholder into camel case. You need to use Technical name only always.

image

Thank you both for the responses. I did update it to the technical name and now the template is working as expected.

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.