How cyco77/pptb-fast-record-counter works
Fast Record Counter is a Power Platform Toolbox tool for exploring Dataverse entities and counting their records. In the interactive workflow, the tool loads solutions and customizable entities, applies publisher/solution/name filters, and lets the user count one or many entities; counts appear in a sortable grid with progress and notifications, and results can be copied or exported. A separate MCP headless entry point resolves optional solution selectors, filters entities, counts records, and returns per-entity counts and totals. Dataverse access is centralized in the service module. The graph follows documented capabilities where implementation excerpts were incomplete.
Main entry points: Overview.tsx Overview workflow · dataverseService.ts Dataverse service · headless.ts Headless invocation · App.tsx Application shell
Components 17
Interactive tool
- Application shell
src/App.tsx - Overview workflow
src/components/Overview.tsx - Filters and actions
src/components/Filter.tsx - Entity data grid
src/components/EntitiesDataGrid.tsx - Grid error boundary
src/components/EntityGridErrorBoundary.tsx - Event log
src/components/EventLog.tsx
Dataverse operations
- Dataverse service
src/services/dataverseService.ts - Entity exclusions
src/utils/entityBlacklist.ts
MCP invocation
- Headless invocation
src/mcp/headless.ts - Counts and totals
src/mcp/headless.ts
Toolbox platform
- Connection state
src/hooks/useConnection.ts - Toolbox events
src/hooks/useToolboxEvents.ts - Toolbox API
src/hooks/useToolboxAPI.ts - Logger service
src/services/loggerService.ts
Other components
- Tool user
- MCP caller
- Dataverse API
Connections 23
- Tool user → Application shell: opens tool
- Application shell → Connection state: loads connection
- Application shell → Toolbox events: subscribes
- Toolbox events → Application shell: dispatches events
- Application shell → Overview workflow: renders
- Overview workflow → Dataverse service: loads solutions
- Overview workflow → Dataverse service: loads entities and views
- Overview workflow → Entity exclusions: checks entities
- Overview workflow → Filters and actions: passes filter state
- Tool user → Filters and actions: selects and searches
- Filters and actions → Overview workflow: dispatches actions
- Overview workflow → Grid error boundary: renders grid within
- Grid error boundary → Entity data grid: renders
- Overview workflow → Dataverse service: requests record counts
- Dataverse service → Dataverse API: queries metadata and counts
- Overview workflow → Logger service: logs operations
- Logger service → Toolbox API: reports log entries
- Event log → Logger service: receives log entries
- MCP caller → Headless invocation: invokes
- Headless invocation → Dataverse service: resolves solutions and loads entities
- Headless invocation → Entity exclusions: checks entities
- Headless invocation → Dataverse service: requests batch counts
- Headless invocation → Counts and totals: returns counts and totals