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

Adding New Journal Thru 3rd Party App

(1) ShareShare
ReportReport
Posted on by 152
I am currently adding new Journals thru an App I have created. The issue I have is that the API I use to add Journals Lines only allows a small number of fields.
 
Example API I am using:
https://api.businesscentral.dynamics.com/v2.0/xxxxxxx/Production/api/v2.0/companies(xxxxxxx)/journals(aa9d0de7-c704-f011-9346-6045bdf6e2be)/journalLines"), HttpWebRequest)
 
With the POST I can add the following fields for a Journal Line.
 
Dim postdataje As New JObject
            postdataje.Add("accountType", xaccountType)
            postdataje.Add("accountNumber", xaccountNumber)
            postdataje.Add("postingDate", Session("xpostingDate").ToString)      
            postdataje.Add("documentNumber", Session("xdocumentNumber").ToString)   
            postdataje.Add("externalDocumentNumber", "")
            postdataje.Add("amount", xamont)
            postdataje.Add("comment", xcomment)
            postdataje.Add("description", xDescription)
            postdataje.Add("balanceAccountType", xbalanceAccountType)
 
My question is there a way to add more fields from an external APP or am I limited to what I show?
 
I would like to add 2 more fields from the fields available for a JE if possible?
 
Thanks for any help on this.
 
 
 
I have the same question (0)
  • Suggested answer
    YUN ZHU Profile Picture
    95,729 Super User 2025 Season 2 on at
    This is a limitation of the standard API and we cannot extend it as of now.
    You can only add fields by customizing a new API.
    Hope the following can give you some hints.
    Dynamics 365 Business Central: Can we extend standard APIs? – Download Standard Source Code for APIs
     
    Thanks.
    ZHU
  • Gerardo Rentería García Profile Picture
    25,236 Most Valuable Professional on at
  • Suggested answer
    Khushbu Rajvi. Profile Picture
    20,601 Super User 2025 Season 2 on at

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