A beginner-friendly collection of AI prompts for Microsoft Dynamics 365 Business Central and AL language development. These prompts help you leverage AI tools like GitHub Copilot to write better code faster.
Whether you're new to AI-assisted development or looking for practical prompts to improve your workflow, this kit provides what AI can do, from generating AL code snippets to streamlining consultant documentation. I hope it gives you an idea on how to start your AI journey.
- New to AI Development?
- What's Inside?
- Prompt Categories
- How to Use These Prompts
- Tips for Better Results
- Project Structure
- Contributing
- License
- Acknowledgments
- Feedback & Support
Start Here 👉 Getting Started Guide
This comprehensive guide walks you through:
- Understanding AI-assisted development
- Writing your first prompt
Useful for anyone new to using AI in AL development!
❓ FAQ - Answers to frequently asked questions
This repository contains prompts for common AL development scenarios. Each prompt is designed to:
- ✅ Be easy to understand - Clear examples with explanations
- ✅ Follow best practices - Align with Microsoft's AL development guidelines
- ✅ Work immediately - Copy, customize, and use right away
- ✅ Support learning - Help you understand what makes a good prompt
Important: AI is a powerful assistant, but always review and test generated code before using it in production.
Core AL objects and fundamental patterns
Create tables, pages, codeunits, APIs, event subscribers, reports, enums, queries, and more. These are the building blocks of BC extensions.
Best for:
- 👶 Developers learning AI
- 📦 Adding basic objects to existing projects
Examples: Adding fields, creating pages, API endpoints, event subscribers
Understanding existing code and features
Use AI to analyze and explain complex, undocumented code. Perfect when you inherit a project or need to understand how something works.
Best for:
- 🔍 Understanding inherited projects
- 📊 Analyzing complex business logic
- 📝 Documenting existing features
- 🎓 Learning from existing code
Examples: Feature summaries, procedure explanations, code flow analysis
Documentation for code and users
Generate XML comments, README files, API documentation, field tooltips, setup guides, and error catalogs.
Best for:
- 📚 Documenting your code for other developers
- 👥 Creating user guides and setup instructions
- ✅ Maintaining professional code quality
Examples: XML comments, README files, tooltips, setup guides
Improving and reorganizing existing code
Clean up technical debt, remove duplication, apply design patterns, improve naming, and optimise performance.
Best for:
- 🧹 Cleaning up legacy code
- ⚡ Improving performance
- 🎨 Applying better patterns
- 📏 Enforcing coding standards
Examples: Extracting methods, renaming, moving logic, standardising patterns
1️⃣ Find the Right Prompt Browse the category that matches your task (Base Development, Documentation, etc.)
2️⃣ Customize It Use object numbers, names, and details with your specific requirements
3️⃣ Use with AI Paste into GitHub Copilot Chat (or your AI tool) and review the generated code
- Be specific - Include details about what you want
- Provide context - Mention object types, IDs, business rules
- Request standards - Ask for "AL best practices" or "proper error handling"
- Give examples - Show what you want if possible
- Iterate - Refine based on what AI generates
Remember: These prompts are templates. The best results come from customizing them for your specific needs and always reviewing the output.
BC-Prompt-Kit/
├── README.md # Project overview (you are here)
├── GETTING-STARTED.md # 👈 Beginner's tutorial - start here!
├── FAQ.md # ❓ Common questions answered
├── CONTRIBUTING.md # 🤝 How to contribute new prompts
├── LICENSE # Project license
├── .github/
│ ├── ISSUE_TEMPLATE/ # Templates for bug reports, suggestions
│ └── PULL_REQUEST_TEMPLATE.md # Template for contributions
├── Prompts/
│ ├── 01-base-development.md # Tables, pages, codeunits, APIs
│ ├── 02-analyse-features.md # Understanding existing code
│ ├── 03-documentation.md # Comments, READMEs, guides
│ └── 04-refactoring.md # Code quality improvements
Quick Navigation:
- 🆕 New to AI? → Getting Started Guide
- ❓ Have questions? → FAQ
- 📦 Building something? → Prompt Categories
Have a prompt that works well for you? I'd love to see it!
Check out CONTRIBUTING.md for:
- How to submit new prompts
Every contribution helps the BC community work more effectively with AI!
This prompt collection is released under the MIT License. Feel free to use, modify, and share.
- Microsoft Dynamics 365 Business Central team for excellent documentation
- AL development community for sharing best practices and patterns
- AI assistant developers for making these tools accessible
- All contributors who share their prompts and improvements
- 🐛 Issues: Report bugs or prompts that didn't work
- ❓ Questions: No question is too basic - we're all learning together!
- ⭐ Star this repo: If you find it helpful, give it a star!
Happy Coding! 🚀
Remember: AI is your assistant, not your replacement. These prompts are here to help you work smarter, learn faster, and spend more time on the creative parts of development.