Skip to content

A collection of small prompts for Microsoft Dynamics 365 Business Central and AL language development.

License

Notifications You must be signed in to change notification settings

thatnavguy/BC-Prompt-Kit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🎯 Microsoft Dynamics 365 Business Central Prompt Kit

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.

📑 Table of Contents


🌟 New to AI Development?

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


📚 What's Inside?

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.

🗂️ Prompt Categories

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


💡 How to Use These Prompts

Quick Start (3 Steps)

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


💡 Tips for Better Results

  1. Be specific - Include details about what you want
  2. Provide context - Mention object types, IDs, business rules
  3. Request standards - Ask for "AL best practices" or "proper error handling"
  4. Give examples - Show what you want if possible
  5. 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.

🏗️ Project Structure

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:

🤝 Contributing

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!


📄 License

This prompt collection is released under the MIT License. Feel free to use, modify, and share.


🙏 Acknowledgments

  • 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

📞 Feedback & Support

  • 🐛 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.

About

A collection of small prompts for Microsoft Dynamics 365 Business Central and AL language development.

Resources

License

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published