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 :
Small and medium business | Business Central, N...
Suggested Answer

API for posting journals

(0) ShareShare
ReportReport
Posted on by

I am currently creating purchase journal lines using Odata endpoint dynamically and the accountant login to the BC to manually post the purchase journal batch.

Is there a way (API) available to do this via API call?

I have the same question (0)
  • Suggested answer
    Kalpavruksh D365 CoE Profile Picture
    2,545 on at

    Hi James,

    You need to call posting routines without revoking any dialog box in a codeunit and then expose that codeunit as Web Service.

  • Suggested answer
    Olister Rumao Profile Picture
    3,967 on at

    Hi,

    You can create a Webservice bound action.

    In this you will call the Journal posting code unit.

    Refer docs.microsoft.com/.../devenv-creating-and-interacting-with-odatav4-bound-action

  • Community Member Profile Picture
    on at

    Hi Olister,

    It seems by default, in Web Services tab in BC has Post objects in codeunit type, however it only exposes SOAP API.

    So are you saying that we can we can create AL extension using the SOAP API so that is can be exposed as Page?

    James

  • Suggested answer
    Olister Rumao Profile Picture
    3,967 on at

    Hi James,

    It is through ODATA and not SOAP.

    I am not sure if the Posting action is available by default in Web Services.

    If you do not have it then you need to develop an extension and then exposes the developed extension object and call through web services.

    If you need more details, feel free to ping me on Whatsapp or Email

  • Community Member Profile Picture
    on at

    Hi Olister,

    Post action seems to be available by default in Web Services but as codeunit and it exposes SOAP API only (no OData) for it.

    But I guess in order to actually invoke Post Action, I should create extension using the codeunit and expose that as OData?

    Its good to know it is possible, just need to let the management know its possible and see what will be done about it.

    James

  • Suggested answer
    Olister Rumao Profile Picture
    3,967 on at

    Hi James,

    Yes, its possible to do it through ODATA but you will need to develop the extension.

    Refer the link I have sent you in above conversations.

  • Andrew1986 Profile Picture
    63 on at

    Olister Rumao

    We are creating the integration with MS Navision and have some blockers with push payments from our application to MS Navision.

    Could you clarify which default codeunit it is necessary to use to post payments from Payment Journal to Customer Ledger Entry?

    Now, we use the following endpoint to push payments to Payment Journal - host:port/.../CRONUS Canada, Inc./Page/Payment_Journal

    But, we cannot find how to post payments via API.

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 > Small and medium business | Business Central, NAV, RMS

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 2,606

#2
YUN ZHU Profile Picture

YUN ZHU 931 Super User 2025 Season 2

#3
Jainam M. Kothari Profile Picture

Jainam M. Kothari 773 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans