
I am able to display current portal user using this piece of code using liquid in dynamic 365 portals.
{% if user %}
Hello, {{ user.fullname }}!
{% else %}
I would like to display the email for this user?
How I accomplish this using liquid?
Thank you,
Bill
Hi Bill
You can use the attribute logical name of the contact entity and access any attribute. If you want to access email id, add {{user.emailaddress1}}.
As document said, Refers to the current portal user, allowing access to all attributes of the underlying Power Apps contact record.
https://docs.microsoft.com/en-us/powerapps/maker/portals/liquid/liquid-objects#user
logic name of email field in contact entity:
liquid:
Test.
Regards,
Leah Ju
Please mark as verified if the answer is helpful. Welcome to join hot discussions in Dynamics 365 Forums.