Skip to main content
Community site session details

Community site session details

Session Id :
Power Pages - Power Apps Portals
Answered

Liquid code query.results.entities.size always return 0

(0) ShareShare
ReportReport
Posted on by 26

Hi experts,

We have tried the liquid code in this article: https://community.dynamics.com/365/customerservice/f/dynamics-365-for-customer-service-forum/390687/add-portal-notification-tab-whenever-a-ticket-is-updated-by-helpdesk/1194227#1194227

 

but seemed that this line does not work as expected:

{% assign countNotification = my_query.results.entities.size %} it always shows the value = 0.

please advise.

 

Many thanks in advanced. 

 

  • Lucas Luong Profile Picture
    26 on at
    Re: Liquid code query.results.entities.size always return 0

    Thanks hershal1999. 

     

    Created new entity permission and it works. Just be back here to confirm the solution. 

     

    Cheers!

  • Verified answer
    hershal1999 Profile Picture
    111 on at
    Re: Liquid code query.results.entities.size always return 0

    Check the table permissions on the table that you have this query, FetchXML atlest needs read table permissions on the entity that you are querying.

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

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Pages

#1
Lucas001 Profile Picture

Lucas001 60 Super User 2025 Season 1

#2
Fubar Profile Picture

Fubar 55 Super User 2025 Season 1

#3
surya narayanan Profile Picture

surya narayanan 35