cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Arthy_A26
Regular Visitor

Displaying cds data in powerapps portal

Hi 

 

I was trying to display cds data in powerapps portal web page

 

This is the code i used

 

{% fetchxml demoData %}
<fetch version="1.0" output-format="xml-platform" mapping="logical" distinct="false">
  <entity name="cr930_vai_product">
    <attribute name="cr930_vai_productid"/>
     <attribute name="cr930_productshortdesc"/>
     <attribute name="cr930_productname"/>
     <attribute name="cr930_productrating"/>
     <order attribute="cr930_productrating" descending="false">
     </order>
  </entity>
</fetch>
{% endfetchxml %}
<b>Total Records:</b> {{demoData.results.entities.size}}<br>
<table class="table">
  <thead class="thead-dark">
    <tr>
      <th scope="col">ProductName</th>
      <th scope="col">Product Description</th>
    </tr>
  </thead>
  <tbody>
    {% for result in demoData.results.entities %}
    <tr>
      <td> {{ result.cr930_productname }}</td>
      <td> {{ result.cr930_productshortdesc }}</td>
    </tr>
    {% endfor %}
  </tbody>
</table>
 
Total record size was displaying but the table is empty
 
here is output screenshot
ref.PNG
 
0 REPLIES 0

Helpful resources

Announcements
Power Apps News & Annoucements carousel

Power Apps News & Announcements

Keep up to date with current events and community announcements in the Power Apps community.

Power Apps Community Blog Carousel

Power Apps Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Top Kudoed Authors
Users online (2,822)