Skip to main content

Notifications

Announcements

No record found.

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

Business Central API question

(0) ShareShare
ReportReport
Posted on by 30
Hi
I'm looking for some assistance with the Business Central API. Currently I'm making calls to BC using the api v2.0 https://docs.microsoft.com/en-us/dynamics365/business-central/dev-itpro/api-reference/v2.0/ which is working well but I'm now trying to get the posted creditor and debtor transaction data. On the debtor side I want the data from the 'Cust. Ledger Entry' table but there is no api endpoint for that table. (Nor the creditor side)
Have anyone got any idea how to query this data from the api?
BC-Tables.png
  • Suggested answer
    aksmith Profile Picture
    aksmith 30 on at
    RE: Business Central API question

    Thanks for your help - I have had a look through the OData V4 web services and I can get the data I required

  • Verified answer
    YUN ZHU Profile Picture
    YUN ZHU 75,673 Super User 2024 Season 2 on at
    RE: Business Central API question

    Hi, for 'Cust. Ledger Entry', there is a standard OData V4 URL in BC. You can try this first.

    For example: https://api.businesscentral.dynamics.com/v2.0/d8f36038-1f93-4543-affc-5dc92b6ee871/Sandbox02/ODataV4/Company('My%20Company')/Cust_LedgerEntries

    pastedimage1643165098328v2.png

    If it's not available, as Igne said, you need to customize the new API.

    Hope this will help.

    Thanks.

    ZHU

  • Suggested answer
    Inge M. Bruvik Profile Picture
    Inge M. Bruvik 993 Super User 2024 Season 1 on at
    RE: Business Central API question

    There is no standard API avalible for the Custom Ledger Entries or the Vendor Ledger entries. 

    So you would either have to use the Odata V4 webservice or create a custom API.

    Best practice these days is to create a custom API for this.

    docs.microsoft.com/.../devenv-develop-custom-api

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,661 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,379 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans