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...
Answered

How to update the item ledger entries in the database ?

(1) ShareShare
ReportReport
Posted on by 73
Hello,
 
Unfortunately our item ledger entries have been created with the wrong "Posting Date" and I would like to update them with the "SystemCreatedAt" Date. Is there a way to update the value stored in the database not simply for the reports?
 
Thanks in advance,
Ludovic
  • Suggested answer
    Dynamics_Decoded_Gokul Profile Picture
    487 on at
    Hi, 

    If your are a developer, 

    Create a processOnly report 
    Select dataItem as Item Ledger Entry. 
     
     trigger OnAfterGetRecord()
     
    use this trigger write a code for updating the posting date as system created date 
    item ledger entry modify. 
    provide permission for item ledger entry in the Permission property. 
    but changing this will impact the difference between ledger and subledger. 

    Correct way to do this reversing and posting the document again. 

    Thanks 
    Gokulnath
  • Gerardo Rentería García Profile Picture
    27,623 Super User 2026 Season 2 on at
    Hi
    In this case you need to reverse the operation, we are not only talking about the item ledger entry table.
    Please revise.
    BR
    GR
  • LLEV Profile Picture
    73 on at
    Thanks you both for your prompt answer.
    GR: This is a great post and I'll definitely keep it in my marks, but in my case I was looking for a mass update solution like Gokulnath proposed even though I understand it is definitely not recommended.
  • Verified answer
    Jun Wang Profile Picture
    8,222 Moderator on at
    the proper way is create a credit memo to reverse it and then create a new one with correct posting date
     
    Jun Wang
  • Verified answer
    YUN ZHU Profile Picture
    103,712 Super User 2026 Season 2 on at
    This may cause data inconsistency if you modify it directly from the code.
    But technically, it is possible.
    As with the standard, you only need to add the Permisions property to the executed code.
     
    Hope this helps as well.
    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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the August Top 10 Community Leaders

These are the community rock stars!

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 741 Super User 2026 Season 2

#2
YUN ZHU Profile Picture

YUN ZHU 514 Super User 2026 Season 2

#3
AndrewThomas81 Profile Picture

AndrewThomas81 336 Super User 2026 Season 2

Last 30 days Overall leaderboard

Featured topics

Microsoft Training Manuals

Product updates

Dynamics 365 release plans