Hi everyone,
We are integrating with Microsoft Dynamics 365 Business Central using the standard API v2.0.
We currently import generalLedgerEntries from the standard endpoint: /api/v2.0/companies({companyId})/generalLedgerEntries
We would like to link individual general ledger entries to the related customer, vendor, or contact in Business Central.
However, the standard generalLedgerEntry API resource only seems to expose fields such as:
- id
- entryNumber
- postingDate
- documentNumber
- documentType
- accountId
- accountNumber
- description
- debitAmount
- creditAmount
- lastModifiedDateTime
It does not appear to expose fields such as:
- Source Type
- Source No.
- Customer No.
- Vendor No.
- Customer Id
- Vendor Id
- Contact Id
Because of this, we cannot reliably determine whether a G/L entry belongs to a customer or vendor, or link it to the related contact.
I understand that the underlying G/L Entry table in Business Central may contain fields like Source Type and Source No., which could potentially be used to link to customers or vendors. But these fields do not seem to be available in the standard API v2.0 generalLedgerEntries resource.
My questions are:
- Is there any standard Business Central API endpoint that allows us to reliably link a generalLedgerEntry to its related customer/vendor/contact WITHOUT creating a custom AL APPI query?
Any guidance, examples, or recommended approaches would be appreciated.
Thanks!