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...
Answered

BC26 - Output Journal as Webservice

(6) ShareShare
ReportReport
Posted on by 20
Hi,
 
I created a Webservice from the "Output Journal" Page and a new "Journal Batch" with the name "TEST".
Now I try to make a POST-request with the following body:
 
{
    "Journal_Template_Name": "OUTPUT",
    "Journal_Batch_Name": "TEST",
    "CurrentJnlBatchName": "TEST"
}
 
I get the following error:
{
    "error": {
        "code": "Internal_RecordNotFound",
        "message": "The Item Journal Batch does not exist. Identification fields and values: Journal Template Name='OUTPUT',Name='' "
    }
}
 
In Business Central Version 25.5 it works perfectly - in 26 not. I took a deeper look into the "Output Page" and the diff is showing the following:
 
This seems to be the issue. 
 
But the question is - how can I make it work again?
I have the same question (0)
  • Suggested answer
    Tech-Lucky Profile Picture
    1,267 Super User 2025 Season 2 on at

    Create global variables on the API page and use it in the OnInsertRecord trigger to assign values to fields without using Validate(). This approach bypasses the table-level trigger logic, ensuring the values are set directly and the operation works as intended.

  • Suggested answer
    Ramesh Kumar Profile Picture
    7,529 Super User 2025 Season 2 on at

    If you're using custom APIs or extending pages, review any changes in OnOpenPage or OnAfterGetRecord triggers that may have impacted field population logic. For OData web services, consider verifying the metadata ($metadata) of the page to ensure required fields are still aligned.

    Thanks, Ramesh

    If this was helpful, please check the "Does this answer your question?" box and mark it as verified.

  • Suggested answer
    YUN ZHU Profile Picture
    95,729 Super User 2025 Season 2 on at
    Hi, hope the following can give you some hints.
    Dynamics 365 Business Central: How to set General Journal Batch via AL
     
    If this doesn't work, you'll have to copy the original code in BC25 and create a new page.
     
    Thanks.
    ZHU
  • Gerardo Rentería García Profile Picture
    25,236 Most Valuable Professional on at

    Hi, good day

    It seems it's not getting the value for your journal batch name. Have you debugged it?
    Have you checked if that batch exists in the company you're running it on?

    Best Regards
    Gerardo

  • Verified answer
    PG- Assistant Technical Consultant Profile Picture
    55 on at
    Hello 

    For you need to create custom API for following this properties and add in the web service and test in the Postman.



  • Priyanka - Certified Technical Consultant Profile Picture
    19 on at
    Hello

    For you need to create custom API for following this properties and add in the web service and test in the Postman.
     
     
     
     
     
     

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,238

#2
YUN ZHU Profile Picture

YUN ZHU 773 Super User 2025 Season 2

#3
Sumit Singh Profile Picture

Sumit Singh 630

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans