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
PA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.

Microsoft Build 768x460.png

Microsoft Build is May 24-26. Have you registered yet?

Come together to explore latest innovations in code and application development—and gain insights from experts from around the world.

May UG Leader Call Carousel 768x460.png

What difference can a User Group make for you?

At the monthly call, connect with other leaders and find out how community makes your experience even better.

Top Solution Authors
Top Kudoed Authors
Users online (1,606)