cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Regular Visitor

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
Highlighted
Regular Visitor

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
Highlighted
Regular Visitor

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
secondImage

New Return to Workplace

Reopen responsibly, monitor intelligently, and protect continuously with solutions for a safer work environment.

Experience what’s next for Power Apps

Join us for an in-depth look at the new Power Apps features and capabilities at the free Microsoft Business Applications Launch Event.

Check this Out

Helpful information

Featuring samples like Return to the Workplace and Emergency Response Applications

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors
Users online (7,267)