Announcements
Hi,
I want to use the filter and search function in my react app for a model driven powerapp with PCF.
The documentation describes not how to use it in javascript correctly. Has someone information about this?
Do I have to import some additional React components?
Here is a description of filtering but there is no example or full description on how to use it:
https://docs.microsoft.com/en-us/powerapps/developer/component-framework/reference/filtering
Best regards
There really isn't any difference using this in React or not - the setFilter accepts a FilterExpression https://docs.microsoft.com/en-us/powerapps/developer/component-framework/reference/filterexpression
You can use as follows:
const expression = { name: "account", from: "accountid", to: "parentcustomerid", linkType: "inner", alias: "parentaccount ", }; _context.parameters.sampleDataset.linking.addLinkedEntity(expression); const condition = { attributeName: "accountid", conditionOperator: 79, // Equal or Under value: _context.page.entityId, entityAliasName: "parentaccount", }; const conditionArray = []; conditionArray.push(condition); _context.parameters.sampleDataset.filtering.setFilter({ conditions: conditionArray, filterOperator: 1, // Or }); _context.parameters.sampleDataset.refresh();
Hope this helps
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.
Congratulations to our community stars!
Expanding mentorship, skilling, and AI innovation
These are the community rock stars!
Stay up to date on forum activity by subscribing.
WarrenBelz 339 Most Valuable Professional
11manish 180
MS.Ragavendar 88 Super User 2026 Season 1