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
Hi rome,
See below example
{% if user %}
Hello, {{ user.fullname }}!
{% else %}
Hello, anonymous user!
{% endif %}
Thanks
Justin Jose
Refer to Liquid customization, user object - https://docs.microsoft.com/en-us/dynamics365/customer-engagement/portals/liquid-objects#user
To 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)
Currently, I need to get the domainname of the current user.
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,240 Super User 2024 Season 2
Martin Dráb 230,149 Most Valuable Professional
nmaenpaa 101,156