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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / export records from PC...
Power Apps
Unanswered

export records from PCF Dataset

(0) ShareShare
ReportReport
Posted on by 76

Is there any way to export all records in custom designed PCF dataset grid? 

Context.parameters.dataset.records gets record for current page but i need to get all records , apply some logic  and export data on click of custom command bar button. Export data part is handled but my core issue is to get all records without changing page size.

Any inputs are greatly appreciated!!

I have the same question (0)
  • Diana Birkelbach Profile Picture
    3,072 Most Valuable Professional on at

    Hi @Goutham , 

     

    If you don't want to load all records, I suppose you don't want to display it. Maybe a PCF is not the best fit for your purpose. What about using a CustomAPI to transform data, which you can call from your ribbon button? Or maybe a Virtual Entity (Table) where you can use the standard export possibilities?

     

    Hope this helps!
    Kind regards,

    Diana

  • Goutham A Profile Picture
    76 on at

    Thank you @DianaBirkelbach !!

     

    I need to display records  in a view using custom PCF grid and export them but i see command bar buttons are not visible when using this custom dataset pcf control in dashboard. So , we are designing a custom "export to excel" functionality which is similar to  OOB "export to excel". I was just checking for ways to retrieve all records in dataset without additional web API calls.

     

    For now, I have to make another webApi calls to retrieve records and convert push to excel.

  • Diana Birkelbach Profile Picture
    3,072 Most Valuable Professional on at

    Hi @Goutham , 

     

    Just want to check that you are aware of the dataset feature.
    You don't need to use webAPI calls if you have a dataset PCF. You can use the dataset.paging (https://docs.microsoft.com/en-us/powerapps/developer/component-framework/reference/paging?WT.mc_id=BA-MVP-5004107)

    It's possible to set the pageSize to 5000 for your dataset, and load the next pages (loadNextPage or loadExactPage).

     

    Hope it helps!

    Diana

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 717 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 329 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard