Showing results for 
Search instead for 
Did you mean: 
Regular Visitor

Update record collection in context



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.






Solution Sage
Solution Sage

Re: Update record collection in context

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.




If this post has answered your question please consider it for "Accept as Solution" or if it has been helpful give it a "Thumbs Up".
Community Support
Community Support

Re: Update record collection in context

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:


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


Best regards, 

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Super User
Super User

Re: Update record collection in context

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. 🤔

Helpful resources

Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

Watch Now

Experience what’s next for Power Apps

See the latest Power Apps innovations, updates, and demos from the Microsoft Business Applications Launch Event.

Power Platform ISV Studio

Power Platform ISV Studio

ISV Studio is designed to become the go-to Power Platform destination for ISV’s to monitor & manage published applications.


Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Users online (6,805)