Notifications
Announcements
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.
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
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.
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
{% 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
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.
In our never-ending quest to improve we are simplifying the forum hierarchy…
We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Jerry-IN 71
Fubar 62 Super User 2025 Season 2
sannavajjala87 31