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 :
Microsoft Dynamics AX (Archived)

Can journal posting be triggered via an API?

(0) ShareShare
ReportReport
Posted on by 230

We have an in-house system which tracks stock and currently sends journals to our legacy financial system using an XML based web interface. It also requests the posting of the journals automatically, so once a journal is sent, it's posted immediately.

I am currently implementing a proof-of-concept app to send journals into D365 from our database. I've been successful using OData to do this (although we may switch to DIXF in future), however, the entered journals are, obviously not posted automatically.

Is there a way to request automatic posting of a journal via an API, either OData or SOAP?

I can't see any method in the default OData metadata and there are no obvious services in the AOT which may be invoked. I tried the simplistic approach of setting the IsPosted field in LedgerJournalHeader, but, unsurprisingly, this isn't allowed.

Obviously, one solution would be a scheduled batch job to sweep up any unposted journals that have been uploaded from the stock system and then post them automatically, but our users are used to journals being posted within seconds of completing actions in the in-house app rather than waiting for a batch cycle (even if it is only a few minutes delay).

Another solution, presumably, would be to write a custom OData method or service to post journals, but we wish to avoid reinventing the wheel; this seems to be something that many people would require so is probably already available and we just haven't found it yet.

*This post is locked for comments

I have the same question (0)
  • Verified answer
    Mea_ Profile Picture
    60,284 on at

    Hi Derek Dongray,

    I won't say that it's a common requirement, usually people want to review journals before posting. You can easily find a bunch of examples how to post ledger journal from x++ using ledgerJournalCheckPost  class.  Now you can create custom service , for example, to wrap it and expose to external system.

  • DD-19021315-0 Profile Picture
    230 on at

    The journals have been reviewed in our in-house system, hence there's no need for any one to spend time looking at them again.

    I'll take a look at the class you indicate.

    Thanks.

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 > 🔒一 Microsoft Dynamics AX (Archived)

#1
Martin Dráb Profile Picture

Martin Dráb 4 Most Valuable Professional

#1
Priya_K Profile Picture

Priya_K 4

#3
MyDynamicsNAV Profile Picture

MyDynamicsNAV 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans