web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Unanswered

Do some logic after any posting in d365fo

(0) ShareShare
ReportReport
Posted on by 307
Hello all,
Hope you are all doing well.
Could you please suggest what is the suitable place using x++ to put code after any posting to the general ledger whether it was from general journal directly or from sub-ledger because i want to integrate to a service to send it every posted transaction in the same time of posting.
Actually im using extension on LedgerJournalPost class which includes a Post method

public static void post(
        Common  _record,
        TableId _tableId,
        NoYes _transferErrors,
        boolean _splitLargeJournal = true,
        boolean _suppressClientMessages = false,
        str _callingFormName = '',
        LedgerJournalEngine _ledgerJournalEngine = null,
        boolean _skipIL_RU = false,
        LedgerJournalCheckPostResults _results_RU = null,
        boolean _progressBarHide = false)
    {
        LedgerJournalPost::postInternal(_record, _tableId, _transferErrors, _splitLargeJournal, _suppressClientMessages, _callingFormName, _ledgerJournalEngine, _skipIL_RU, _results_RU, _progressBarHide, false);
    }

Thanks in advance :)
Categories:
I have the same question (0)
  • André Arnaud de Calavon Profile Picture
    301,741 Super User 2025 Season 2 on at
    Hi,
     
    Sending the transaction at the same time of posting is a bad decision. It can cause performance issues. 
     
    What is the reason for sending all transactions to another service? Why do you want to do this synchronously? Do you need all accounting entries? Please explain the process and the expected number of transactions in your environment. Based on more details, we can try to help you with a recommended approach.

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

News and Announcements

Season of Giving Solutions is Here!

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
Abhilash Warrier Profile Picture

Abhilash Warrier 843 Super User 2025 Season 2

#2
André Arnaud de Calavon Profile Picture

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

#3
Martin Dráb Profile Picture

Martin Dráb 322 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans