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

Updating field on released document through code

(0) ShareShare
ReportReport
Posted on by 3,297

Hi All

I have created a new field on the purchase header table, and now I want to update the field through a code unit triggered via a job queue. Is there any data integrity issues by directly updating fields on a released document? Looking for advice on if certain inserts/updates are not allowed or not recommended

Thanks

I have the same question (0)
  • Suggested answer
    JAngle Profile Picture
    150 on at

    In this scenario if the field is controlled by code and the user has a controlled influence you’re set. There are instances where altering a posted document is ok. Like a posted sales shipment. You can add the tracking number once created.

  • Samantha73 Profile Picture
    3,297 on at

    Thanks Josh

    Is there any documentation on which fields we can update (via code) on posted documents as it seems a bit risky to update posted documents and may have issues on upgrade time  

  • Indira88 Profile Picture
    990 on at

    Hi Samantha,

    If there is a need to update posted documents you could refer to the code unit where there is a forcible way to update the posted tables 1405 "Purch. Inv. Header - Edit".

    Hope this helps!

    Indira

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,850 Super User 2026 Season 1

#2
YUN ZHU Profile Picture

YUN ZHU 1,045 Super User 2026 Season 1

#3
Dhiren Nagar Profile Picture

Dhiren Nagar 959 Super User 2026 Season 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans