web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Small and medium business | Business Central, N...
Suggested Answer

Implementing Custom Workflow with Approval Actions in Business Central

(3) ShareShare
ReportReport
Posted on by 175

Requirement:

 

I need to implement a custom workflow for a custom page in Business Central.

 

Specifically, I want to:

 

  • Add "Send for Approval" and "Cancel Approval" actions, similar to what's available in standard pages like the Purchase Order.

  • Allow users to open the Workflow Setup, where they can configure workflow events and responses as needed.

  • Create custom events and responses.


  •  

Objective:

 

My goal is to achieve functionality similar to the standard Purchase Order approval workflow, but for a custom page.

 

Could you guide me on how to implement this?

 

Thank you!

 
I have the same question (2)
  • Suggested answer
    Rishabh Kanaskar Profile Picture
    6,227 Super User 2026 Season 1 on at
    Hi,
     
    To implement a custom workflow with approval actions on a custom page in Business Central:
    Create a Workflow Table
    > Define a table to store workflow entries for your custom page.
    > Include fields like Document No., Status, Requested By, Approver, Date Sent, etc.
     
    Create a Workflow Codeunit
    > Add procedures for SendForApproval and CancelApproval.
    > Update workflow table and raise events like OnBeforeSendForApproval and OnAfterSendForApproval.
     
    Define Events for Workflow
    > Use IntegrationEvent in your table/codeunit for key workflow points (e.g., OnApprovalRequested, OnApprovalCanceled).
     
    Add Actions on the Page
    > Add actions on your custom page for Send for Approval and Cancel Approval.
    > Call your codeunit procedures from these actions.
    > Enable/disable actions based on workflow status.
     
    Workflow Setup Page
    > Create a standard BC-style workflow setup page if you want admins to define events/responses.
    > Link the setup to your workflow table for configuration.
     
    Approval Handling
    > Create a separate approval codeunit or extend your workflow codeunit.
    > Include logic for notifying approvers (email or in-app notifications).
    > Update workflow status when approved/rejected.
     
    Testing
    > Ensure the workflow responds to status changes correctly.
    > Validate that Send for Approval cannot be executed twice for the same record.
    > Test integration with any notification mechanism.
     
    You essentially replicate the standard Purchase Order workflow logic but use your custom table, codeunit, and page.
     
    Thanks
    Rishabh
  • Suggested answer
    YUN ZHU Profile Picture
    101,018 Super User 2026 Season 1 on at
    This requires customization and cannot be added in the standard.
    Hope the following can give you some hints.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the April Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 2,029 Super User 2026 Season 1

#2
YUN ZHU Profile Picture

YUN ZHU 1,226 Super User 2026 Season 1

#3
AndrewThomas81 Profile Picture

AndrewThomas81 1,201

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans