Skip to main content

Notifications

Portal Fetch XML now working

gokulpgp Profile Picture Posted by gokulpgp

I Have created a table "table1" and in the portal management configured the list with view and in portal UI it is showing the list of all the records.

 

but i need retrieve the same data by using the Liquid code. and it now working.
my sample code:

 

{% fetchxml output %}
<fetch version="1.0" output-format="xml-platform" mapping="logical" distinct="false">
  <!-- Table -->
  <entity name="table1">
    <!-- Columns -->
    <attribute name="name" />
    <attribute name="status" />
  </entity>
</fetch>
{% endfetchxml %}

<div>start</div>
count: {{output.result.entities.size}}
{% for result in output.result.entities %}
{{ result.name }}
{% endfor %}
<div>end</div>

 

out put:

start

count:

end

 

can someone help to understand why this not returning anything on my portal page.

Categories:

General Tips & Tricks

Comments