web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Pages / Liquid code query.resu...
Power Pages
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. 

 

Categories:
I have the same question (0)
  • Verified answer
    hershal1999 Profile Picture
    111 on at

    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.

  • Lucas Luong Profile Picture
    26 on at

    Thanks hershal1999. 

     

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

     

    Cheers!

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Pages

#1
11manish Profile Picture

11manish 42

#2
Valantis Profile Picture

Valantis 24

#3
omkarsupreme Profile Picture

omkarsupreme 23

Last 30 days Overall leaderboard