Hey Everyone:
I'm trying to find a decent answer to this, but I'm getting overwhelmed by AI slop answers.
Has anyone successfully done an intercompany GL entry using the API in Business Central? If so, I have some questions that I can't seem to find an answer for.
My initial thought was to try and do it through /journals({{id}})/journalLines, but my first hit said "you can't use IC Partner as an account type" (why not?) and the second one where I moved the IC Partner to the balanceAccountType field is now telling me that "The Gen. Journal Template does not exist", despite the fact that the template isn't referenced by the entry.
This leads me to believe that /journals is not the right place to do this. Especially since when I do a scan of "/journals" (the batches) I only get the normal GL batches.
So - has anyone done this? If so:
- what endpoint?
- what payload package (in general terms)?
Or am I stuck either custom writing an API (ew), or exposing the intercompany general journal page as an OData service (also, ew)?
Thanks!
-J