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 / Is it possible to dump...
Power Pages
Unanswered

Is it possible to dump/view contents of an object?

(0) ShareShare
ReportReport
Posted on by 152

To help with development and debugging, is it possible to dump the content of an object for inspection?

 

For example, I would like to see the contents of a result from a FetchXML query.

Categories:
I have the same question (0)
  • oliver.rodrigues Profile Picture
    9,482 Most Valuable Professional on at

    Hi, if you are on using Liquid/HTML, you can "dump" your content in a hidden <div> or something, so you can still see in the console, but won't be visible in the page

    if you are using JavaScript, you can use the console.log(""); function to log anything you need

    hope this helps 

  • Xv Profile Picture
    152 on at

    Im looking to display the contents of an object, like entities, so that I see all the properties and values in one view, like a console.log() with a js object.

  • oliver.rodrigues Profile Picture
    9,482 Most Valuable Professional on at

    can you share your code? if the entity object is coming from JS/WebAPI, then you can use console.log()

    if you are using Liquid to get the entity object, you are probably better off doing the hidden elements on the page 

  • Xv Profile Picture
    152 on at
    {% fetchxml thedata %}
    <fetch version="1.0" output-format="xml-platform" mapping="logical" distinct="false">
     <entity name="theentity">
     <attribute name="title" />
     </entity>
    </fetch>
    {% endfetchxml %}
    
    // Is it possble to output the full contents of thedata without having to loop through it?
    thedata.results.entities
  • Fubar Profile Picture
    8,503 Super User 2026 Season 1 on at

    I can't remember if if works on fetchxml results or not but sometimes this will help

    {{ item | json }}

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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Pages

#1
11manish Profile Picture

11manish 46

#2
Valantis Profile Picture

Valantis 24

#2
omkarsupreme Profile Picture

omkarsupreme 24

Last 30 days Overall leaderboard