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 / Retrieve entire liquid...
Power Pages
Answered

Retrieve entire liquid fetch result set?

(0) ShareShare
ReportReport
Posted on by 482

Hi all,

 

Is there a way to retrieve an entire liquid fetch result set? 

 

{% capture resultExample %}
query.results.entities
{% endcapture %}

 

 

Or can I loop through and spit out all available key/values from a liquid fetch query?

 

{% for result in query.results.entities %}
{% for item in result %}
"{{item.key}}" : "{{item.value}}"
{% endfor %}
{% endfor %}

 

 

Thanks for any help!

Categories:
I have the same question (0)
  • Prakash4691 Profile Picture
    1,332 on at

    @skoofy5 ,

     

    It really depends on your requirement.

     

    If you want to get count of record and display it in label you don't have to loop through each record. Just use query.results.total_record_count.

     

    Else if you want to display contents of record from attributes in a table/div with custom elements, you have to loop through and get all the values to populate.

     

    If it answers your question, kindly give kudo and accept it as solution.

     

     

    Regards,

    Prakash

  • Fubar Profile Picture
    8,487 Super User 2026 Season 1 on at

    It really depends on what you need to do.... depending on what you need I may not recommend the following ... but  If you are wanting to just see what is returned then

    {{ query.results.entities | json }}

     

  • skoofy5 Profile Picture
    482 on at

    Thanks, Fubar, but that only pushes out 'Adxstudio.Xrm.Web.Mvc.Liquid.EntityDrop'. Am I missing something?

  • skoofy5 Profile Picture
    482 on at

    My requirement is to get the full result set, not the count.

  • Verified answer
    oliver.rodrigues Profile Picture
    9,425 Most Valuable Professional on at

    Hi, answer here is no.. unfortunately we can't loop through the attributes itself, you need to specify them

     

  • skoofy5 Profile Picture
    482 on at

    Thanks, mate - grateful for that confirmation.

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!

Leaderboard > Power Pages

#1
Hammed Profile Picture

Hammed 22

#2
Lucas001 Profile Picture

Lucas001 21 Super User 2026 Season 1

#3
DP_Prabh Profile Picture

DP_Prabh 19

Last 30 days Overall leaderboard