https://github.com/powerappsdarren/powerfxsnippets
My bag of tricks for the Power Platform
https://github.com/powerappsdarren/powerfxsnippets
canvas canvasapp dataverse low-code low-code-development low-code-no-code lowcode lowcodedevelopment microsoft msapp power-apps power-fx power-platform powerapps powerautomate powerfx powerfx-lang powerfx-language powerplatform
Last synced: 4 months ago
JSON representation
My bag of tricks for the Power Platform
- Host: GitHub
- URL: https://github.com/powerappsdarren/powerfxsnippets
- Owner: PowerAppsDarren
- License: mit
- Created: 2024-07-21T19:05:22.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2025-03-10T21:04:17.000Z (about 1 year ago)
- Last Synced: 2025-03-10T22:20:01.974Z (about 1 year ago)
- Topics: canvas, canvasapp, dataverse, low-code, low-code-development, low-code-no-code, lowcode, lowcodedevelopment, microsoft, msapp, power-apps, power-fx, power-platform, powerapps, powerautomate, powerfx, powerfx-lang, powerfx-language, powerplatform
- Language: TSQL
- Homepage: https://whop.com/learn-power-apps
- Size: 22.7 MB
- Stars: 30
- Watchers: 3
- Forks: 7
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# Power Fx Snippets 🏆
> The world's most comprehensive collection of Power Fx code snippets for Microsoft Power Platform
[](https://github.com/PowerAppsDarren/PowerFxSnippets)
[](https://github.com/PowerAppsDarren/PowerFxSnippets/issues)
[](https://github.com/PowerAppsDarren/PowerFxSnippets/pulls)
[](./LICENSE)
## 🚧 Repository Restructuring in Progress (2025-11-17)
**We're making PowerFxSnippets even better!** A comprehensive restructuring is underway to improve navigation, discoverability, and developer experience.
### 🆕 New Structure (In Progress)
The repository is being reorganized into a **feature-first architecture** with:
- 📱 **[app-lifecycle/](./app-lifecycle/)** - App initialization, error handling, formulas *(NEW STRUCTURE)*
- 🎨 **[ui-controls/](./ui-controls/)** - Control-specific snippets *(NEW STRUCTURE)*
- 🎭 **[ui-patterns/](./ui-patterns/)** - Reusable UI patterns *(NEW STRUCTURE)*
- 🌈 **[visual-assets/](./visual-assets/)** - SVGs, icons, colors, fonts *(NEW STRUCTURE)*
- 📊 **[data-operations/](./data-operations/)** - Data sources and transformations *(NEW STRUCTURE)*
- 🔧 **[functions/](./functions/)** - UDFs, UDTs, utilities *(NEW STRUCTURE)*
- 🔗 **[integrations/](./integrations/)** - Connectors and flows *(NEW STRUCTURE)*
- 🎓 **[learning/](./learning/)** - Tutorials and best practices *(NEW STRUCTURE)*
- 🧰 **[utilities/](./utilities/)** - Templates and tools *(NEW STRUCTURE)*
📋 **[View Complete Restructuring Plan](./--new-structure-claude-code.md)**
### 📚 Current Structure (Original)
The existing organization remains functional during migration:
## 🚀 Quick Start
**New to Power Fx?** Start here:
- [📚 Getting Started Guide](./01-getting-started/README.md)
- [💡 Hello World Examples](./01-getting-started/hello-world/)
- [🔧 Common Patterns](./01-getting-started/common-patterns/)
## 📖 Table of Contents
### 🎯 Core Categories
| Category | Description | Quick Access |
|---------------------------------------------------------------|--------------------------------------|------------------------------------------------------------------------------------------------------------------------------------|
| [**01-getting-started**](./01-getting-started/) | Entry point for new developers | [Hello World](./01-getting-started/hello-world/) • [Common Patterns](./01-getting-started/common-patterns/) |
| [**02-app-architecture**](./02-app-architecture/) | Application structure and lifecycle | [App Events](./02-app-architecture/app-events/) • [Navigation](./02-app-architecture/navigation-patterns/) |
| [**03-user-interface**](./03-user-interface/) | UI components and user experience | [Controls](./03-user-interface/controls/) • [Themes](./03-user-interface/themes-and-styling/) |
| [**04-data-management**](./04-data-management/) | Data operations and sources | [Data Sources](./04-data-management/data-sources/) • [Validation](./04-data-management/data-validation/) |
| [**05-business-logic**](./05-business-logic/) | Functions and calculations | [Functions](./05-business-logic/functions/) • [Error Handling](./05-business-logic/error-handling/) |
| [**06-integrations**](./06-integrations/) | External services and APIs | [Microsoft 365](./06-integrations/microsoft-365/) • [Azure](./06-integrations/azure-services/) |
| [**07-assets-and-media**](./07-assets-and-media/) | Visual assets and media | [Icons](./07-assets-and-media/icons/) • [SVGs](./07-assets-and-media/svgs/) |
| [**08-advanced-patterns**](./08-advanced-patterns/) | Expert techniques and architecture | [Custom Components](./08-advanced-patterns/custom-components/) • [Security](./08-advanced-patterns/security-patterns/) |
| [**09-learning-resources**](./09-learning-resources/) | Tutorials and educational content | [Tutorials](./09-learning-resources/tutorials/) • [Best Practices](./09-learning-resources/best-practices/) |
### 🛠️ Repository Tools
- [**📋 Contribution Guide**](./CONTRIBUTING.md) - How to add your own snippets
- [**🔧 Tools & Utilities**](./tools/) - Helper scripts and utilities
- [**📚 Documentation**](./docs/) - Detailed guides and references
- [**⚠️ Power Fx Gotchas**](./Reference/power-fx-gotchas.md) - Syntax quirks that differ from .NET/Excel/JavaScript
- [**🏛️ Code of Conduct**](./CODE_OF_CONDUCT.md) - Community standards
## 🔥 Popular Snippets
### Quick Wins (5 minutes or less)
- [🔍 People Picker ComboBox](./06-integrations/microsoft-365/people-picker-combobox.md)
- [🎨 Dynamic Theme Colors](./03-user-interface/themes-and-styling/dynamic-theme-colors.md)
- [💾 Offline Data Sync](./04-data-management/offline-capabilities/offline-data-sync.md)
- [⚡ Performance Optimization](./02-app-architecture/performance-optimization/lazy-loading.md)
### Advanced Solutions
- [🏗️ Custom Component Library](./08-advanced-patterns/custom-components/component-library.md)
- [🔐 Row-Level Security](./08-advanced-patterns/security-patterns/row-level-security.md)
- [📊 Real-time Dashboard](./04-data-management/data-visualization/real-time-dashboard.md)
- [🤖 AI Integration](./06-integrations/azure-services/azure-openai-integration.md)
## 🎯 How to Use This Repository
### For Beginners
1. Start with [**Getting Started**](./01-getting-started/) category
2. Browse by **difficulty level** (beginner/intermediate/advanced)
3. Use the **search function** with keywords like "gallery", "form", or "SharePoint"
### For Experienced Developers
1. Jump directly to specific **categories** that match your needs
2. Filter by **tags** and **prerequisites**
3. Check **related snippets** for comprehensive solutions
### For Teams
1. Use [**Learning Resources**](./09-learning-resources/) for onboarding
2. Implement [**Best Practices**](./09-learning-resources/best-practices/) across projects
3. Leverage [**Advanced Patterns**](./08-advanced-patterns/) for complex scenarios
## 🔍 Search & Discovery
### By Technology
- **Power Apps**: [Canvas Apps](./03-user-interface/), [Data Sources](./04-data-management/)
- **Power Automate**: [Flows](./06-integrations/power-automate/), [API Calls](./06-integrations/third-party-apis/)
- **Dataverse**: [Data Operations](./04-data-management/), [Security](./08-advanced-patterns/security-patterns/)
- **SharePoint**: [Integration](./06-integrations/microsoft-365/), [Document Management](./04-data-management/data-sources/)
### By Use Case
- **Business Apps**: [Forms](./03-user-interface/controls/), [Workflows](./05-business-logic/)
- **Dashboards**: [Charts](./04-data-management/data-visualization/), [KPIs](./05-business-logic/calculations/)
- **Mobile Apps**: [Responsive Design](./03-user-interface/controls/responsive-design/), [Offline](./04-data-management/offline-capabilities/)
- **Admin Tools**: [User Management](./06-integrations/microsoft-365/), [Audit Logs](./08-advanced-patterns/security-patterns/)
## 🤝 Contributing
We welcome contributions! Here's how to get involved:
### Ways to Contribute
- **📝 Add Snippets**: Share your Power Fx solutions
- **🐛 Report Issues**: Help improve existing content
- **💡 Suggest Improvements**: Propose new categories or features
- **📚 Improve Documentation**: Enhance guides and navigation
### Getting Started
1. Read our [**Contribution Guide**](./CONTRIBUTING.md)
2. Check existing [**Issues**](https://github.com/PowerAppsDarren/PowerFxSnippets/issues) for ideas
3. Fork the repository and create your branch
4. Add your snippet with proper metadata
5. Submit a pull request
### Snippet Requirements
- ✅ **Metadata**: Complete YAML front matter with title, description, category, tags, difficulty
- ✅ **Documentation**: Clear explanation and usage examples
- ✅ **Code Quality**: Well-formatted, commented Power Fx code
- ✅ **Testing**: Include test scenarios where applicable
## 📊 Repository Stats
- **📁 Categories**: 9 main categories with 40+ subcategories
- **📄 Snippets**: 500+ code examples and patterns
- **🏷️ Tags**: 200+ searchable tags for filtering
- **👥 Contributors**: 50+ community members
- **⭐ Stars**: Your support helps grow the community!
## 🏢 About Power Fx
Power Fx is the low-code language that powers Microsoft Power Platform applications. It combines the familiarity of Excel formulas with the power of a programming language, enabling both citizen developers and professional developers to create sophisticated business applications.
**Key Features:**
- 📊 **Excel-like syntax** you already know
- 🔧 **IntelliSense** and formula suggestions
- 🌐 **Cross-platform** compatibility
- ⚡ **Real-time evaluation** and debugging
- 🔗 **Rich integrations** with Microsoft 365 and Azure
## 📞 Support & Community
### Get Help
- 🐛 **Issues**: [Report bugs or request features](https://github.com/PowerAppsDarren/PowerFxSnippets/issues)
- 💬 **Discussions**: [Join community conversations](https://github.com/PowerAppsDarren/PowerFxSnippets/discussions)
### Community Resources
- 🌐 **Power Platform Community**: [powerplatform.com](https://powerplatform.microsoft.com/)
- 📚 **Microsoft Learn**: [Power Fx documentation](https://learn.microsoft.com/en-us/power-platform/power-fx/)
- 🎓 **Training**: [Power Apps training](https://learn.microsoft.com/en-us/training/paths/create-powerapps/)
## 📄 License
This repository is licensed under the MIT License - see the [LICENSE](./LICENSE) file for details.
## 🙏 Acknowledgments
- **Power Apps Community** for inspiration and contributions
- **Microsoft Power Platform** team for creating Power Fx
- **All Contributors** who share their knowledge and expertise
- **You** for being part of this amazing community!
---
**⭐ Found this helpful?** [Star this repository](https://github.com/PowerAppsDarren/PowerFxSnippets) to show your support!
**🤝 Want to contribute?** Check out our [Contribution Guide](./CONTRIBUTING.md) to get started!