Skip to main content

Notifications

Power Pages - Power Apps Portals
Unanswered

Liquid for user account not working

(0) ShareShare
ReportReport
Posted on by 30
Hello,
I need to get the website associated with the current portal user. How do i access the account information for website that has been associated with the current user.
Currently i am using this but it is giving an error.
        {% assign entity_logical_name = 'account' %}
        {% assign account = entities[entity_logical_name][request.params.accountid] %}
        {% if account %}
          {{ account.websiteurl }}
        {% endif %}
      {% else %}
  • oliver.rodrigues Profile Picture
    oliver.rodrigues 9,050 on at
    Re: Liquid for user account not working

    Hi @aberson1, I know it's an old thread, but in case you haven't resolved yet here is an idea to your issue:

     

    do you have a lookup for website in your account entity is that it? 

    if so I believe it would be a custom attribute and would have a prefix.. for example new_ or cre0XXX_ something like that

     

    can you expand a bit more your requirement, it doesn't sound to me very common to have a website lookup associated to the account record.. perhaps if you explain a bit more will help us to understand your issue better

     

    ------------

    If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

  • Ashish2012 Profile Picture
    Ashish2012 478 on at
    Re: Liquid for user account not working
    Hi,
    please share some screenshot and more details on the issue.

    Thanks
  • v-siky-msft Profile Picture
    v-siky-msft on at
    Re: Liquid for user account not working

    @aberson1  could you share more details with your requirement? so we can reproduce your issue.

    Sik

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

Microsoft Kickstarter Events…

Register for Microsoft Kickstarter Events…

Announcing Our 2025 Season 1 Super Users!

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

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 145,422

#2
RandyHayes Profile Picture

RandyHayes 76,287

#3
Pstork1 Profile Picture

Pstork1 64,711

Leaderboard