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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Small and medium business | Business Central, N...
Suggested Answer

Custom API for General Journals Lines not updating Bal. Account No.

(0) ShareShare
ReportReport
Posted on by

I want to send a POST request to a business central instance to insert journal lines to a general journal and have every field updated according to the request body data. I have tried using the default API, but the field Bal. Account No. (balancingAccountNumber) does not update when according to the value I specify (I specify a valid No., based on Bal. Account Type).

I have tried to make a simple custom API by following this guide: https://docs.microsoft.com/en-us/dynamics365/business-central/dev-itpro/developer/devenv-develop-custom-api, but when I try POSTing a Journal Line, I get the following error message:

{
    "error": {
        "code": "Internal_RecordNotFound",
        "message": "The Gen. Journal Template does not exist. Identification fields and values: Name=''  CorrelationId:  ba48f496-00c0-45e8-8b71-b838080ddb5d."
    }
}

Does anyone know how I can make this work?

Please, let me know if you need more information about my API or anything else.

  • Suggested answer
    Andy Sather Profile Picture
    Microsoft Employee on at

    Hello  - We currently do not have dedicated Dev support via the Dynamics 365 Business Central forums, but I wanted to provide you some additional resources to assist.  If you need assistance with debugging or coding I would recommend discussing this on one of our communities.

    www.yammer.com/dynamicsnavdev

    dynamicsuser.net/.../developers

    I will open this up to the community in case they have something to add.

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 674 Super User 2026 Season 2

#2
YUN ZHU Profile Picture

YUN ZHU 362 Super User 2026 Season 2

#3
AndrewThomas81 Profile Picture

AndrewThomas81 359 Super User 2026 Season 2

Last 30 days Overall leaderboard

Featured topics

Microsoft Training Manuals

Product updates

Dynamics 365 release plans