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

Workflow while posting sales prepayment invoices

(6) ShareShare
ReportReport
Posted on by 739
Hi,
I need to create a workflow for a user so that whenever they create a Sales Order and try to post a Prepayment Invoice, the system should prevent posting and prompt them to send an approval request to the approver first. please guide me the steps how to make it. 
Thanks
I have the same question (0)
  • Suggested answer
    OussamaSabbouh Profile Picture
    12,808 Super User 2026 Season 1 on at
    Hello,
     
    Use the Sales Order Approval Workflow and enable “Do Not Allow Posting while approval is pending.”
    That automatically blocks Prepayment Invoice posting until the approver approves.
     
    Regards,
    Oussama Sabbouh
  • peter fun Profile Picture
    739 on at
    Hi, 
    may i ask is this "Do Not Allow Posting while approval is pending" option in workflows or in sales setup?
  • Suggested answer
    Jainam M. Kothari Profile Picture
    15,732 Super User 2026 Season 1 on at
    Hello,
     
    To enforce approval before posting a prepayment invoice on a Sales Order in Business Central, set up a Sales Order Approval Workflow and add a condition that triggers when Prepayment % or Prepayment Amount is greater than zero.
     
    Configure the workflow to change the order status to Pending Approval and create an approval request for the approver. Since posting is blocked when the status is pending, users cannot post until approval is granted.
     
    For extra control, add an AL event subscriber on OnBeforePostPrepaymentInvoice in codeunit Sales-Post Prepayments to throw an error if the order is not approved.
     
    This ensures compliance and prevents prepayment posting without prior approval.
  • Suggested answer
    Valentin Castravet Profile Picture
    32,157 Super User 2026 Season 1 on at
    You can use the standard sales order approval workflow. Go to the Workflows page, choose New Workflow from Template, and select the Sales Order Approval workflow. This workflow already prevents posting both regular invoices and prepayment invoices until the order status is Released (approved).
     
    You don’t need to add any conditions based on prepayment %, and you definitely don’t need any customizations as suggested.

    ‘Do Not Allow Posting While Approval Is Pending’ is not an option in the system.
     
     
     
  • Suggested answer
    Rishabh Kanaskar Profile Picture
    6,219 Super User 2026 Season 1 on at
    Hi,
     
    If you want to restrict all the posting without approval, use the standard Sales Order Approval Workflow. No extra conditions are needed because the template covers prepayment posting as part of the posting restriction.
    But if you want to restrict only prepayment posting (and allow regular posting without approval), then you would need a custom workflow.
     
    Thanks
    Rishabh

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!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 1,926 Super User 2026 Season 1

#2
YUN ZHU Profile Picture

YUN ZHU 1,158 Super User 2026 Season 1

#3
Khushbu Rajvi. Profile Picture

Khushbu Rajvi. 533 Super User 2026 Season 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans