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

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)
  • André Arnaud de Calavon Profile Picture
    298,578 Super User 2025 Season 2 on at
    RE: Flow record to general journal entry while creating invoice in d365fo

    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?

  • Ludwig Reinhard Profile Picture
    Microsoft Employee on at
    RE: Flow record to general journal entry while creating invoice in d365fo

    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
    298,578 Super User 2025 Season 2 on at
    RE: Flow record to general journal entry while creating invoice in d365fo

    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.

  • Suggested answer
    Gunjan Bhattachayya Profile Picture
    35,421 on at
    RE: Flow record to general journal entry while creating invoice in d365fo

    Zohan,

    You can look at Classes\CustVoucher\post method.

  • Zohan_93 Profile Picture
    199 on at
    RE: Flow record to general journal entry while creating invoice in d365fo

    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?

  • Gunjan Bhattachayya Profile Picture
    35,421 on at
    RE: Flow record to general journal entry while creating invoice in d365fo

    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.

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…

Andrés Arias – Community Spotlight

We are honored to recognize Andrés Arias 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,333

#2
André Arnaud de Calavon Profile Picture

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

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 681 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans