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

Notifications

Announcements

No record found.

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?

I have the same question (0)
  • Suggested answer
    Nitin Verma Profile Picture
    21,708 Moderator on at

    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.

  • Suggested answer
    Jeffrey Bulanadi Profile Picture
    8,760 on at

    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
    YUN ZHU Profile Picture
    95,593 Super User 2025 Season 2 on at

    Hi, Just adding another solution.

    A solution for editing Posted Document

    https://yzhums.com/24923/

    Hope this can give you some hints.

    Thanks.

    ZHU

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 3,151

#2
Jainam M. Kothari Profile Picture

Jainam M. Kothari 1,443 Super User 2025 Season 2

#3
YUN ZHU Profile Picture

YUN ZHU 1,092 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans