Notifications
Announcements
No record found.
Hi,
Was just wondering if how can I get the username of the user logged in into the portal? Also, is user.id equal to Contact.Id?
Thank you,
rome
*This post is locked for comments
Currently, I need to get the domainname of the current user.
Refer to Liquid customization, user object - https://docs.microsoft.com/en-us/dynamics365/customer-engagement/portals/liquid-objects#userTo retrieve any additional parameters (as well of connected entities) you can use fetchxml tag.Yes, user in the portal is contact entity in CRM. (see Portal Contact form)
Hi rome,
See below example
{% if user %}
Hello, {{ user.fullname }}!
{% else %}
Hello, anonymous user!
{% endif %}
Thanks
Justin Jose
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.
As AI tools become more common, we’re introducing a Responsible AI Use…
We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
SA-08121319-0 4
Calum MacFarlane 4
Alex Fun Wei Jie 2