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 :
Finance | Project Operations, Human Resources, ...
Suggested Answer

How modify existing feild in table using extension - D365FO

(0) ShareShare
ReportReport
Posted on by 1,505
Hi All,
 
We need to modify the existing field in /GeneralJournalAccountEntry/ by multiplying by some value, this is not the new field where we can write a display method in table extension, 
How we can write a piece of code for an existing table field modification. 
 
Please advice.
 
Regards,
Akbar
I have the same question (0)
  • Suggested answer
    GirishS Profile Picture
    27,827 Moderator on at
    Hi Akbar,
     
    For the existing record in GeneralJournalAccountEntry table you need to write script to update the new field value.
    For the new records creation my suggestion will be adding the code in both insert and update event handlers of the table to save the value as you want with some calculations.
     
    Thanks,
    Girish S.
  • GnaneswaranKrishnaram Profile Picture
    4 on at
    Create a code extension for the table GeneralJournalAccountEntry and write coc methods for insert and update
    For existing records, you may need to write a job to update the values. 
     
    Thanks
    Gnaneswaran
  • André Arnaud de Calavon Profile Picture
    300,904 Super User 2025 Season 2 on at
    Hi Akbar,
     
    Can you tell us about the business requirement and purpose? Do you need to update existing records? If so, this is not allowed as the table GeneralJournalAccountEntry represents posted transactions. It is not allowed to change posted transactions due to international accounting rules. Next to this, there is a high risk of creating inconsistencies which would lead to data corruption.

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 > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Martin Dráb Profile Picture

Martin Dráb 663 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 540 Super User 2025 Season 2

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 348 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans