You’re absolutely right — VS Code is far more powerful than most Power Apps developers realize. Once you step beyond basic PAC CLI commands, you unlock a professional workflow that scales well across teams, environments, and project types.
Below is a real-world workflow guide — not generic marketing fluff — focused on how to set up your environment and processes for advanced Power Platform development.
📌 1. Editor Setup (VS Code)
Essential Extensions
Install the following first:
-
Power Platform VS Code Extension Pack
-
ESLint + Prettier
-
GitLens + GitHub Pull Requests
-
XML Tools / JSON Tools
-
REST Client
-
npm Intellisense / Path Intellisense
This creates a full IDE experience for both PowerFX and web resource/PCF development.
📌 2. Power Platform CLI (PAC CLI) Workflow
Core Commands
Learn these by muscle memory:
pac solution init
pac solution add-reference
pac solution pack
pac solution unpack
pac auth create
pac org who
Environment Switching
Store environments in named auth profiles:
pac auth create --name dev
pac auth create --name uat
Then switch:
pac auth select --name uat
This avoids accidental deployment to the wrong org — huge time saver.
📌 3. Project Types + Folder Structures
People often treat Canvas/Model driven the same way — but their workflows should differ.
🔹 Canvas App Projects
You’re mostly managing:
Best Practices
✔ Use a template folder for common components
✔ Store screens as separate JSON slices
✔ Use a script to normalize theme + styles
✔ Track connected data sources in a manifest
Example structure:
canvas-app/
├── screens/
├── components/
├── data-sources.json
├── styles.json
├── powerfx/
🔹 Model Driven + Dataverse Projects
This is where VS Code really shines.
Components you should source control
Use:
pac solution unpack --solutionname MySolution
This produces human-readable artifacts you can diff and merge in Git.
📌 4. Build & CI/CD (not often discussed)
Your local workflow should mirror your CI/CD.
Recommended pattern
-
dev branch → unpack solution
-
feature branches → make changes
-
PR validations → run scripts
-
build pipeline → solution pack → import to UAT
Example GitHub Actions
on: [pull_request]
jobs:
validate:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- run: |
npm install -g pac
pac auth create --url ${{ secrets.ORG_URL }}
pac solution validate --path ./solution
Once validated:
Deployment workflow
pac solution pack
pac solution import --path MySolution.zip
📌 5. Testing Strategy
Canvas Apps
Model Driven
Use Unified Interface test plans or Power Apps Test Studio
API level
Use REST Client or Postman collections to validate:
Store collections in Git.
📌 6. Advanced Tools Beyond Basic CLI
🔹 Dataverse Code Samples + SDK
Use the SDK in VS Code for:
Example in C# or TypeScript
🔹 Power Apps Component Framework (PCF)
This is where VS Code is basically required.
Workflows:
pac pcf init
pac pcf push
pac pcf build
Structure:
pcf/
├── controls/
└── components/
Test with local watch mode.
🔹 Scripts to Extract and Document
You mentioned schema docs — that’s excellent and highly underutilized.
Examples:
Example script (PowerShell):
Get-CrmEntity -LogicalName contact | Select LogicalName, Attributes | ConvertTo-Markdown
Commit docs to Git → auto generate Confluence pages via pipeline.
📌 7. Making Copilot Work Better
Instead of adhoc prompts, build custom prompt templates:
Examples:
Rewrite this Power FX to be more performant…
Identify delegation issues…
Generate test cases for this screen…
Store them in:
prompts/
├── powerfx/
└── javascript/
Then feed with context > reference manifests > ask for unit tests or suggestions.
📌 8. Scripted Quality Checks
Add scripts to catch common issues:
-
Untrimmed SQL fields
-
Missing required fields
-
Delegation warnings
-
Unused data sources
Integrate them into pre-commit hooks:
npx husky add .husky/pre-commit "npm test"
🧠 TL;DR — A Pro Power Apps Dev Workflow
| Area |
Pro Practice |
| Source Control |
Unpack everything to text files |
| Environment Management |
Named PAC CLI auth |
| Branching |
Feature branches + PR |
| CI/CD |
Automated solution validation & import |
| Testing |
CLI-integrated UI + API tests |
| Copilot |
Prompt templates + contextual inputs |
| Documentation |
Automated schema exports |
🔎 Recommended Resources
You asked for guides/videos — here are the best community/official ones:
📌 Microsoft Power Platform CLI docs
âž¡ https://learn.microsoft.com/power-platform/developer/cli
📌 VS Code Extension Pack walkthrough
âž¡ https://www.youtube.com/watch?v=uxhM4nciJrA
📌 Official DevOps + Power Platform pipeline
âž¡ https://learn.microsoft.com/power-platform/alm/build-tools
📌 PCF deep dive for VS Code
âž¡ https://learn.microsoft.com/power-platform/developer/component-framework