Inspiration
Business Central provides approval workflows for several document types, but production planning needs its own control points. I wanted to ensure that planned production orders are reviewed before teams continue with production preparation.
What it does
This Business Central AL extension adds approval workflows to Planned Production Orders and Firm Planned Production Orders.
Users can send an approval request, cancel a pending request, approve or reject the order, and reopen an approved order for revision. The extension adds a dedicated Approval Status with Open, Pending Approval, Approved, Rejected, and Canceled states.
While an order is pending approval or approved, the extension prevents changes to the production order header, lines, components, and routing lines. After cancellation or reopening, the order becomes editable and can be submitted for approval again.
How I built it
I built the project as a Business Central AL extension using table extensions, page extensions, codeunits, event subscribers, and the standard Business Central workflow and approval framework.
The extension registers custom production-order workflow events and responses, then integrates them with standard approval requests and Approval Entries.
Codex and GPT-5.6 assisted with researching Microsoft Business Central workflow patterns, setting up a Docker-based test environment, implementing the AL solution from the workflow design, troubleshooting errors, and documenting the project.
Challenges I ran into
The main challenge was extending the standard approval framework without replacing it. I needed to keep approval states synchronized with workflow responses while protecting production-order data from unintended changes.
Another challenge was allowing an approved order to move through the appropriate production status process while maintaining approval control. The final design permits the required status transition only after approval and preserves the approval state afterward.
What I learned
This project helped me learn how to extend Business Central workflows with custom events and responses, use AL event subscribers to enforce business rules, and test an extension in a local Business Central Docker environment.
Built With
- al
- codex
- docker
- gpt-5.6
Log in or sign up for Devpost to join the conversation.