web
You’re offline. This is a read only version of the page.
close
Skip to main content
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,489
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)
  • André Arnaud de Calavon Profile Picture
    298,933 Super User 2025 Season 2 on at
    How modify existing feild in table using extension - D365FO
    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.
  • GnaneswaranKrishnaram Profile Picture
    4 on at
    How modify existing feild in table using extension - D365FO
    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
  • Suggested answer
    GirishS Profile Picture
    27,825 Moderator on at
    How modify existing feild in table using extension - D365FO
    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.

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…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
CA Neeraj Kumar Profile Picture

CA Neeraj Kumar 2,258

#2
André Arnaud de Calavon Profile Picture

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

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 631 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans