Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics 365 | Integration, Dataverse...
Answered

Display portal user and email using liquid in dynamics 365 portals

(1) ShareShare
ReportReport
Posted on by

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
  • Verified answer
    RE: Display portal user and email using liquid in dynamics 365 portals

    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:

    pastedimage1610592421225v1.png

    liquid:

     pastedimage1610591943097v2.png

    Test.

    pastedimage1610591819791v1.png

    Regards,

    Leah Ju

    Please mark as verified if the answer is helpful. Welcome to join hot discussions in Dynamics 365 Forums.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Daivat Vartak – Community Spotlight

We are honored to recognize Daivat Vartak as our March 2025 Community…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Kudos to the February Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,516 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,409 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans