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 Apps / Dataset harness - [con...
Power Apps
Answered

Dataset harness - [context.parameters.sampleDataSet] - number of records

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

First off, great work to the tooling team around the latest version of CLI.  I've noticed a few improvements so far.

 

So i'm compiling and debugging the sample dataset component:

https://docs.microsoft.com/en-us/powerapps/developer/component-framework/sample-controls/data-set-grid-control

 

And it runs great inside the harness:

column.PNG

And noticed, it is generating for 3 records.  And within :

context.parameters.sampleDataSet

I can indeed see that there are three recid's.  Is there anyway to set this any arbitary number?  E.g. fill an entire screen with 50 records?

 

Cheers!

 

Andrew

 

I have the same question (0)
  • Tanguy TOUZARD Profile Picture
    113 Most Valuable Professional on at

    I did some test for a custom control and the display seems to adapt to the content of the control. 

     

    So if I have three records, my control shows something like two rows. If I have more records, number or rows used increase and I can always see all records.

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at
    Within the harness or within Dynamics?
  • Tanguy TOUZARD Profile Picture
    113 Most Valuable Professional on at

    In dynamics

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at
    Yes, works well in Dynamics. I was referring to the harness.
  • AKhaing Profile Picture
    45 on at

    It is generating the same data set for my custom component too.

    If we can inject mock data (preferrably from a json file), that would be really nice as we can easily get data in json from D365 web API.

  • Verified answer
    alchin Profile Picture
    Microsoft Employee on at

    Hi Andrew,

     

    Currently the sample data that is used to drive a data-set control in the harness is fixed.  As a result, there will always be three records.  We have a planned future update to enable users to configure this.

     

    Thank you,

    Alex

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Yeah figured that was the case.  I can always inject my own simulation code during debug and remove for production.. so no biggy.

     

    Yes would be great to have more control around this in a future release.  Thanks for coming back to me.

     

     

     

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 Apps

#1
Vish WR Profile Picture

Vish WR 762

#2
11manish Profile Picture

11manish 640

#3
Valantis Profile Picture

Valantis 548

Last 30 days Overall leaderboard