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

To find how the description getting inserted into voucher transaction tables and form.

(0) ShareShare
ReportReport
Posted on by 17
Hi everyone ,
I need to find out how data is getting inserted here ,as i have checked from back end there is no insert method or updated method on both tables like GLentry and GLACCOUNTENTRIES ,  i need to find out how data is getting inserted in these tables because specially the description field . can any one suggest me which class or method i have to debug .
 
Thanks, 
Regards,
Categories:
I have the same question (0)
  • Suggested answer
    Martin Dráb Profile Picture
    239,575 Most Valuable Professional on at
    The Text field is populated from the transactions being posted, which may initialize it in different ways.
     
    For example, CustVendVoucher.post() uses findDefaultTextForPayment() to initialize the text if none is provided. The value is then passes to LedgerVoucher* objects for the actual posting.
     
    I would try to stay away from implementation details if possible, but if you're interested in them, you surely can explored the code. The value of CustVendTrans.Txt gets passed to LedgerVoucherTransObject instance, which is then used by LedgerVoucherObject and other classes. LedgerPostingTransactionTmp.updateTrans() creates a LedgerPostingTransactionTmp record and stores in a collection.  LedgerVoucherObject.post() then processes the records and calls LedgerVoucherObject.post() for each of them. LedgerVoucherObject.post() calls LedgerVoucherTransObject.post(), which calls addToGeneralJournal() (or addToSubledgerJournal()). There you'll find a call of LedgerVoucherObject.addToGeneralJournal(), which calls LedgerVoucher.addToGeneralJournalEntry(), which utilizes LedgerPostingGeneralJournalController class. And the last class is where the data gets actually inserted to database. It doesn't call insert() directly; it uses a record lists for performance reasons. At least, that's my understand after looking statically at the code.
     
    Obviously, if you want to use a different text, you shouldn't change the how the posting works. You should provide a different text already when calling the posting.
  • Deepak Agarwal Profile Picture
    8,931 on at
    As Martin said, there are multiple classes/code which initiate the value in GLEntry and GlAccountEntry tables. What is your requirement here, what you are trying to achieve after debugging. . 

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!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the April Top 10 Community Leaders

These are the community rock stars!

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

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 677 Super User 2026 Season 1

#2
Giorgio Bonacorsi Profile Picture

Giorgio Bonacorsi 620

#3
Subra Profile Picture

Subra 483

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans