cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
AndrewG-AU
Level: Powered On

PowerApp Portal liquid "entities" not working

Hi,

I'm trying to display the basic information of account on a page, but this syntax not working - the account variable is always null.

 

{% assign account = entities.account[<account record id goes here>] %}
{% if account %}
{{ account.name }} ({{ account.statecode.label }})
{% endif %}

Not supported yet??

1 ACCEPTED SOLUTION

Accepted Solutions
AndrewG-AU
Level: Powered On

Re: PowerApp Portal liquid "entities" not working

SOLVED!

 

The issue was with permissions. This is how to fix it:

  1. Go to "Entity Permissions" in the portal management app, Security group
  2. Add New, specify the CDS entity you are trying to access, scope - Global
  3. Save
  4. Then on the saved entity permission in the "Web Roles" section add the roles you want to have access (or all roles)
  5. The liquid record lookup as in the previous step works!

If this would help someone.

View solution in original post

1 REPLY 1
AndrewG-AU
Level: Powered On

Re: PowerApp Portal liquid "entities" not working

SOLVED!

 

The issue was with permissions. This is how to fix it:

  1. Go to "Entity Permissions" in the portal management app, Security group
  2. Add New, specify the CDS entity you are trying to access, scope - Global
  3. Save
  4. Then on the saved entity permission in the "Web Roles" section add the roles you want to have access (or all roles)
  5. The liquid record lookup as in the previous step works!

If this would help someone.

View solution in original post

Helpful resources

Announcements
thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Power Platform World Tour

Find out where you can attend!

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

Top Kudoed Authors (Last 30 Days)
Users online (4,650)