web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Pages / Powerpages, Dataverse ...
Power Pages
Unanswered

Powerpages, Dataverse and HTML Quesry

(0) ShareShare
ReportReport
Posted on by 4

I have just started to create a portal with Power Pages and Dataverse, actually I have Data in Dataverse: Table Customer: First Name, Last Name, Phone number.

 

Now I need to read the information and have it in a HTML page (see screenshot), which commands I need to connect to my Dataverse Table, and to read informations, like I need to select a Customer Name from The table and I will have the Phone number of this line (customer phonennumber as a return value).

 

Thanks

screenshot.png
Categories:
I have the same question (0)
  • Lorne_PEI Profile Picture
    39 on at

    Create a Basic form that points to your table.  On that form you can place your customer name and phone number fields and it will render on your Portal.

  • rachid1977 Profile Picture
    4 on at

    it was already created, now I'm trying to find how can I get the Information with Liquid scripting, did you have some code to get User from a Dataverse DB name: Users? this is my first project with powerpages and Dataverse, need elementary instructions and examples

  • Fubar Profile Picture
    8,487 Super User 2026 Season 1 on at

    You can retrieve data in a number of ways

    To create/update you are limited to the out of the box form submission and Web API.

     

  • rachid1977 Profile Picture
    4 on at

    So, I can now have some ideas and I can reach the dataverse Table, but it's still not working, I know I have some Errors in my script

     
     
    can somebody help me to correct that and to retriev Data with liquid scripting?
    <h1>Dataverse Access Example</h1>
     <table>
     <thead>
     <tr>
     <th>Customer Name</th>
     <th>Phone Number</th>
     </tr>
     </thead>
     <tbody>
     {% for record in records %}
     <tr>
     <td>{{ record.custom1 }} {{ record.custom2 }}</td>
     
     </tr>
     {% endfor %}
     </tbody>
     </table>
     {% assign endpointURL='/api/data/v9.2/1metadata#crdc1_smscustomers'%}
     <script>
     // Retrieve records from Dataverse
     //var url = "/api/data/v9.2/1metadata#crdc1_smscustomers?$select=custom1,phone1,custom2,phone2";
     portal.request(url).then(function (response) {
     var records = JSON.parse(response.responseText).value;
     var html = "";
     records.forEach(function (record) {
     html += "<tr><td>" + record.custom1 + " " + record.custom2 + "</td><td>" + record.phone1 + " " + record.phone2 + "</td></tr>";
     });
     document.querySelector("tbody").innerHTML = html;
     });
     </script>
  • ragavanrajan Profile Picture
    7,044 Most Valuable Professional on at

    Hi @rachid1977 

     

    Please follow the links from @Fubar . If it is only read-only data, I would use the FetchXML builder and build your query and render it in HTML.

     

     

    1. FetchXML Builder: https://www.xrmtoolbox.com/plugins/Cinteros.Xrm.FetchXmlBuilder/ 

     

    2. Official micorosoft link 

     


    Hope it helps. 
    ------------

    If you like this post, give it a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users to find it.

     

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.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Pages

#1
rezarizvii Profile Picture

rezarizvii 55

#2
11manish Profile Picture

11manish 48

#3
Valantis Profile Picture

Valantis 46

Last 30 days Overall leaderboard