Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Pages - Customize & Extend
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:
  • Fubar Profile Picture
    7,966 Super User 2025 Season 1 on at
    Re: Is it possible to dump/view contents of an object?

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

    {{ item | json }}
  • Xv Profile Picture
    152 on at
    Re: Is it possible to dump/view contents of an object?
    {% 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
  • oliver.rodrigues Profile Picture
    9,319 Most Valuable Professional on at
    Re: Is it possible to dump/view contents of an object?

    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
    Re: Is it possible to dump/view contents of an object?

    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,319 Most Valuable Professional on at
    Re: Is it possible to dump/view contents of an object?

    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 

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

Michael Gernaey – Community Spotlight

We are honored to recognize Michael Gernaey as our June 2025 Community…

Congratulations to the May 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
Fubar Profile Picture

Fubar 69 Super User 2025 Season 1

#2
oliver.rodrigues Profile Picture

oliver.rodrigues 49 Most Valuable Professional

#3
Jon Unzueta Profile Picture

Jon Unzueta 43

Featured topics