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 / Update record collecti...
Power Apps
Unanswered

Update record collection in context

(0) ShareShare
ReportReport
Posted on by 2

Hi,

 

We are working with Dataset PCF control, in that we get all grid record and do some filter on that records using our custom logic.

we want to update that record collection in context. 

Can we update record collection in context? Please provide any method and work around for this.

 

Thanks!

 

 

 

I have the same question (0)
  • Ben Thompson Profile Picture
    1,400 on at

    What do you mean update in context

     

    Do you mean

    1) update some values within records in the dataset 

    2) change / remove / re-sort the actual records stored within the dataset?

    3) limit the records displayed based on the filter

     

    If it's the last option, I create an array(s) of the filtered record guids on first load and then add a check in the display logic to skip any records not in the appropriate array.

     

     

     

  • v-xida-msft Profile Picture
    on at

    Hi @PCF_Developer ,

    Could you please share a bit more about your scenario?

    Do you want to update a record in context within your PCF control?

     

    Based on the needs that you mentioned, I think webAPI Client API of PowerApps Component Framework could achieve your needs. Within your PCF control logic code, please consider add the following method to update a record:

    context.webAPI.updateRecord(entityLogicalName, id, data).then(successCallback, errorCallback);

     

    More details about the updateRecord function, please check the following article:

    https://docs.microsoft.com/en-us/powerapps/developer/component-framework/reference/webapi/updaterecord

     

    Note: You may need to execute above method within a filteredRecordsTable.forEach() function

     

    Best regards, 

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

    I also wonder if it's possible to update the DataSet. If the webAPI (or implementing an own Request) is the only possibility, that means that it can work only for Model-Driven Apps. 

    A powerful feature of PCF is being able to run in CanvasApps, where the designer decides which is the Data Source. But the WebAPI is not supported in Canvas Apps.

    If we cannot update the data, it means that in CanvasApps the DataSet PCFs must be ReadOnly. 🤔

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…

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Apps

#1
Kalathiya Profile Picture

Kalathiya 445

#2
WarrenBelz Profile Picture

WarrenBelz 386 Most Valuable Professional

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 321 Super User 2025 Season 2

Last 30 days Overall leaderboard