Skip to main content

Notifications

Announcements

No record found.

Small and medium business | Business Central, N...
Answered

How to get all General Ledger Entries from a Account

(0) ShareShare
ReportReport
Posted on by 11

Can i get a list of entries from a specific Account by API?

  • Verified answer
    YUN ZHU Profile Picture
    YUN ZHU 75,595 Super User 2024 Season 2 on at
    RE: How to get all General Ledger Entries from a Account

    Hi, Because it's just Get,so using a Query Params, no header.

    pastedimage1651014854370v1.png

    pastedimage1651014884357v2.png

  • RE: How to get all General Ledger Entries from a Account

    Do you filter through headers?

  • Suggested answer
    YUN ZHU Profile Picture
    YUN ZHU 75,595 Super User 2024 Season 2 on at
    RE: How to get all General Ledger Entries from a Account

    Hi, yes, try the following.

    All general ledger entries:

    https://api.businesscentral.dynamics.com/v2.0/d8f36038-1f93-4543-affc-5dc92b6ee871/Preview20/api/v2.0/companies(c32dda04-259a-ec11-bb89-6045bd8e52fe)/generalLedgerEntries

    pastedimage1650930469794v1.png

    Fitler accountNumber

    https://api.businesscentral.dynamics.com/v2.0/d8f36038-1f93-4543-affc-5dc92b6ee871/Preview20/api/v2.0/companies(c32dda04-259a-ec11-bb89-6045bd8e52fe)/generalLedgerEntries?$filter=accountNumber eq '2110'

    pastedimage1650930573955v2.png

    More details about standard Apis: https://yzhums.com/6117/

    Hope this will help

    Thanks.

    ZHU

  • Suggested answer
    JAngle Profile Picture
    JAngle 46 on at
    RE: How to get all General Ledger Entries from a Account

    For web services to be published through the database UI is the best option.

    The one I’m referring to is published by default. Adapt the following to fit:

    api.businesscentral.dynamics.com/.../G_LEntries

    Substitute YourTenantID and the company value.

  • RE: How to get all General Ledger Entries from a Account

    Would it be able through database? If you can access it :)

  • Suggested answer
    JAngle Profile Picture
    JAngle 46 on at
    RE: How to get all General Ledger Entries from a Account

    If the standard endpoint only allows a single entry you may want to try publishing a web service instead. Doc on the standard api: docs.microsoft.com/.../dynamics_generalledgerentry_get

    Failing that there is a query object in the web services page that is worth trying

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

Congratulations 2024 Spotlight Honorees!

Kudos to all of our 2024 community stars! 🎉

Meet the Top 10 leaders for December!

Congratulations to our December super stars! 🥳

Get Started Blogging in the Community

Hosted or syndicated blogging is available! ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,642 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,371 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans