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

Flow record to general journal entry while creating invoice in d365fo

(0) ShareShare
ReportReport
Posted on by 199

Hi,

Ive a scenario where I've some customization on general journal entry & generaljournalaccountentry field  Need to populate some custom field while creating customer invoice.

Anyone who knows the class or method which actually populate the record from custinvoicejour to generaljournal entry. Would be helpful . 

Thanks

Zohan

I have the same question (0)
  • Gunjan Bhattachayya Profile Picture
    35,423 on at

    Hi Zohan,

    The CustInvoiceJour is inserted after a successful posting. So the records in GeneralJournalEntry and GeneralJournalAccountEntry tables already exist when the CustInvoiceJour record is inserted.

    You can debug the SalesFormLetter class to find out the posting routine.

  • Zohan_93 Profile Picture
    199 on at

    So you mean to say once I clicked the invoice post button somehow records has been inserted in general tables then flow it to invoice jour after successful posting? Any idea where it gets filled the general tables for voucher? Before invoice posting?

  • Suggested answer
    Gunjan Bhattachayya Profile Picture
    35,423 on at

    Zohan,

    You can look at Classes\CustVoucher\post method.

  • André Arnaud de Calavon Profile Picture
    300,911 Super User 2025 Season 2 on at

    Hi Zohan,

    Interacting in all the subledger and voucher posting classes is a huge risk. It would be easy to break something or create performance issues. What is the purpose of the custom field? Depending on the purpose, you can also consider using a financial dimension.

  • Ludwig Reinhard Profile Picture
    Microsoft Employee on at

    Hello Zohan,

    As Andre mentioned, such a modification can be risky.

    Can you let us know why you want to post a customer invoice in a GL journal that is at least what I understand from your initial notes.

    Many thanks,

    Ludwig

  • André Arnaud de Calavon Profile Picture
    300,911 Super User 2025 Season 2 on at

    Hi Zohan,

    I wanted to follow-up on this question. Can you indicate if your question has been answered or if you need some more help from the community?

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 660 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

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

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 307 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans