Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Pages - Power Apps Portals
Answered

Liquid tags: which entity does "user" reference?

Like (0) ShareShare
ReportReport
Posted on 23 Apr 2021 21:30:39 by 126

Can't find this anywhere in the documentation, where are the user settings stored? In Liquid tags you can do:

 

 

{{ user.fullname }}

 

 

and it will tell you the full name of the user that is currently logged in.

 

I want to be able to get more user metadata such as the Company Name that the user is associated with in the Contacts entity. So I looked at the contact table and found this:

OkayGoogle_0-1619213345940.png

 

 Then I tried using:

 

{{ user.parentcustomerid }}

 

 

but it gave me an error saying "Liquid error: contact With Id = 195c4da7-32ee-4179-a58e-3c8c5cc5aa93 Does Not Exist".

 

How do I go about getting the Company Name of the currently authenticated user in the Power Apps Portal?

  • Verified answer
    OOlashyn Profile Picture
    3,496 Most Valuable Professional on 24 Apr 2021 at 19:58:39
    Re: Liquid tags: which entity does "user" reference?

    Hi @OkayGoogle,

    User liquid tag is pointing to the contact record of the current portal user (see more details in official doc here). user.parentcustomerid will return an entity reference (lookup) object (see here) so to get the name of the account you will need to use user.parentcustomerid.name

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

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Leaderboard > Power Pages - Power Apps Portals

#1
stampcoin Profile Picture

stampcoin 11

#2
Muzammil Nawaz Profile Picture

Muzammil Nawaz 8

#2
Ajlan Profile Picture

Ajlan 8

Overall leaderboard
Loading started