power-fx-review

Reviews Power Fx formulas for delegation, performance, and correctness defects in canvas apps.

Updated Jul 25, 2026
One-click install
npx skills add https://github.com/RorySullivan1/powerapp_taskmaster --skill power-fx-review-rorysullivan1
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: power-fx-review
Source: https://github.com/RorySullivan1/powerapp_taskmaster/tree/main/.claude/skills/power-fx-review
Command: npx skills add https://github.com/RorySullivan1/powerapp_taskmaster --skill power-fx-review-rorysullivan1

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Power Apps canvas apps often work on small test lists but silently fail in production: non-delegable queries truncate results at 500 records, galleries fire one network call per row, and blank/error handling breaks on real data. This Skill audits pasted Power Fx formulas and surfaces these defects grouped by severity. ## Core Features & Use Cases - Delegation-first auditing: Detects non-delegable Filter/LookUp/Search/Sort patterns that silently return only the first 500–2,000 records against large SharePoint, Dataverse, or SQL sources. - Performance analysis: Flags N+1 lookups inside galleries, Patch-in-ForAll bulk writes, uncached repeated data calls, and OnStart bloat, with concrete rewrite patterns. - Correctness checks: Catches IsBlank-vs-IsEmpty misuse, missing IfError handling, Patch-vs-SubmitForm conflicts, and async race conditions. - Use Case: A maker reports their project gallery is slow and missing rows past a few hundred. Paste the gallery Items formula and per-row labels; the review identifies the non-delegable Search call and the per-row LookUp, then provides a delegable StartsWith rewrite with a pre-joined collection. ## Quick Start Paste your Power Fx formula and ask for a review of delegation, performance, and correctness issues.

Frequently Asked Questions about power-fx-review

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I fix a Power Apps delegation warning on Filter or Search?▼

Replace non-delegable functions with delegable equivalents: swap Search for StartsWith with Filter, use = comparisons instead of the in operator on SharePoint, and avoid aggregations over large sources. Set the Data row limit to 1 while testing so any remaining non-delegable part collapses the result visibly.

Why does my Power Apps gallery only show 500 records?▼

A non-delegable query causes Power Apps to pull only the first 500 records (2,000 maximum) and run the operation locally, silently dropping the rest. Check for Search, CountRows, IsBlank predicates, or aggregations in the Items formula and rewrite them with delegable operators.

How do I fix slow Power Apps galleries with per-row LookUp calls?▼

A LookUp inside a gallery fires one network call per rendered row, causing N+1 performance. Pre-join the data once in the screen's OnVisible using ClearCollect with AddColumns, then read the joined field locally via ThisItem in each row.

What is the difference between IsBlank and IsEmpty in Power Fx?▼

IsBlank tests a value for blank or empty string, while IsEmpty tests a table for zero records. Calling IsBlank on a collection always returns false even when it has no rows, so use IsEmpty to check whether a collection or table is empty.

Should I use Patch or SubmitForm to save data in Power Apps?▼

Use SubmitForm when the screen has an Edit form, since raw Patch bypasses the form's validation, Error handling, and Unsaved tracking. Reserve Patch for scenarios without a form, and prefer a single bulk Patch over Patch inside ForAll for multi-record writes.