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.