Notifications
Announcements
No record found.
Hi, good day
I suggest you rely on a query object to obtain this information.
Query object - Business Central | Microsoft Learn
The accounting impact of a purchase is similar to the following:
Posting Groups #1 – Item Purchase Posting | Totovic Dynamics 365 Blog
Best Regards Gerardo
Hi,
Linking General Ledger entries directly to purchase orders via SQL is tricky because BC doesn’t store a native reference between the G/L Entry and Purchase Header tables. The connection is indirect and flows through posted documents and ledger entries.
G/L Entry
Purchase Header
Here’s how you can trace it:
Document No.
Source Type
Source No.
Vendor Ledger Entry
Vendor No.
Purch. Inv. Header
Order No.
Value Entry
Item Ledger Entry
It’s not a single join — you’ll need to stitch together multiple tables depending on whether the transaction is item-based, service-based, or purely financial. Helpful References Purchase Order Processing and the Various General Ledger Entries – Crestwood Custom Fields Flow from Purchase Order to G/L Entry – Dynamics Community Data Item Links and Joins in AL – Microsoft Learn
If you find this helpful, feel free to mark this as the suggested or verified answer. Cheers Jeffrey
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.
As AI tools become more common, we’re introducing a Responsible AI Use…
We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
OussamaSabbouh 3,143
Jainam M. Kothari 1,694 Super User 2025 Season 2
YUN ZHU 1,067 Super User 2025 Season 2