Expand my Community achievements bar.

SOLVED

How to assign a Profile property to a variable

Avatar

Level 2

I want to assign a profile property to a variable, like so, but I get an error

{% let Pemail = {{profile.identityMap.email}} %}

 

Thank you, 

Topics

Topics help categorize Community content and increase your ability to discover relevant content.

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

@GeorgeVi2 You should be using a similar syntax below,

{% let test = profile.person.name.firstName %} {{test}}

Thanks, Sathees

View solution in original post

2 Replies

Avatar

Correct answer by
Community Advisor

@GeorgeVi2 You should be using a similar syntax below,

{% let test = profile.person.name.firstName %} {{test}}

Thanks, Sathees