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.
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.
I can't remember if if works on fetchxml results or not but sometimes this will help
{{ item | json }}
{% 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
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
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.
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
Fubar
69
Super User 2025 Season 1
oliver.rodrigues
49
Most Valuable Professional
Jon Unzueta
43