Skip to main content

Notifications

Community site session details

Community site session details

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

Edit After Posting in Purchase Order in Business Central

(0) ShareShare
ReportReport
Posted on by 80

After Purchase Order is posted , record is deleted on Purchase Order and the record will get set on Posted Purchase Invoice. So, I have custom table name 'SAMPLE'  having status enum  field. As soon as Purchase order is posted I want to change the status to OK from NEW. Is there any solution to this?

  • Suggested answer
    YUN ZHU Profile Picture
    84,346 Super User 2025 Season 1 on at
    RE: Edit After Posting in Purchase Order in Business Central

    Hi, Just adding another solution.

    A solution for editing Posted Document

    https://yzhums.com/24923/

    Hope this can give you some hints.

    Thanks.

    ZHU

  • Suggested answer
    Jeffrey Bulanadi Profile Picture
    684 on at
    RE: Edit After Posting in Purchase Order in Business Central

    Hi Sujan,

     

    There are two ways I can think of to achieve this requirement.

     

    Subscribe to OnAfterInsert table event of Purchase Invoice Header and validate your requirement.

    https://docs.microsoft.com/en-us/dynamics365/business-central/dev-itpro/developer/devenv-subscribing-to-events

     

    Make your status field as FLOWFIELD which then checks if exists the Purchase Order / Posted Purchase Invoice.

    https://docs.microsoft.com/en-us/dynamics365/business-central/dev-itpro/developer/devenv-flowfields

  • Suggested answer
    Nitin Verma Profile Picture
    21,565 Moderator on at
    RE: Edit After Posting in Purchase Order in Business Central

    Hi,

    Yes, you can use the Event Subscriber of Table Purchase Invoice Header OnAfterInsert Table, put the order No. field filter on that table find the correct data on that table and declare your custom table variable and modify accordingly,

    I hope it will solve your problem.

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

Jainam Kothari – Community Spotlight

We are honored to recognize Jainam Kothari as our June 2025 Community…

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

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

#1
Sohail Ahmed Profile Picture

Sohail Ahmed 1,452

#2
YUN ZHU Profile Picture

YUN ZHU 1,313 Super User 2025 Season 1

#3
Gerardo Rentería García Profile Picture

Gerardo Rentería Ga... 1,083 Most Valuable Professional

Featured topics

Product updates

Dynamics 365 release plans