Skip to main content

Notifications

Business Central forum
Suggested answer

API v2.0 VS Web Service

Posted on by 44
Hi, I'm curious whats the difference between those 2. I've notice that they are almost the same but there is one API (Customer Ledger Entry) that exists in the `Web Services` but not in the `API V2.0`. Also I just want to know if `Web Service` is designed to handle large amount for read-only queries. Thanks in advance!
Categories:
  • AS-05060801-0 Profile Picture
    AS-05060801-0 44 on at
    API v2.0 VS Web Service
    Got it Mr. ZHU. Just a quick follow up question, is it recommended to use Direct Tenant over Common Endpoint for production?
  • Suggested answer
    YUN ZHU Profile Picture
    YUN ZHU 69,639 Super User 2024 Season 2 on at
    API v2.0 VS Web Service
    Yes.
     
     
    Thanks.
    ZHU
  • AS-05060801-0 Profile Picture
    AS-05060801-0 44 on at
    API v2.0 VS Web Service
    Please clarify what is  `c8558e71-6ad8-4fcd-9f29-3ca165b41bbe` from your URL? is it TenantId?
  • Suggested answer
    YUN ZHU Profile Picture
    YUN ZHU 69,639 Super User 2024 Season 2 on at
    API v2.0 VS Web Service
    Hi, In BC21, Microsoft added standard APIs
    Business Central 2022 wave 2 (BC21): Use new dedicated APIs for financial reporting (Advanced APIs -> reportsFinance/beta)
     
    customerLedgerEntry resource type (Beta)
     
    But because it is a Beta version, the endpoint is a little different from v2.0.
     
     
    Hope this helps.
    Thanks.
    ZHU
  • AS-05060801-0 Profile Picture
    AS-05060801-0 44 on at
    API v2.0 VS Web Service
    Thank you for sharing that info, YUN ZHU. My issue with the API is that it does not have a way to get the Customer Ledger Entry, would you suggest anyway I can get it via the API? 
  • Suggested answer
    YUN ZHU Profile Picture
    YUN ZHU 69,639 Super User 2024 Season 2 on at
    API v2.0 VS Web Service
    The main difference is in performance. API is much better than Web Service (Odata). Here are some data from Microsoft.
     
    Hope this helps.
    Thanks.
    ZHU

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

Anton Venter – Community Spotlight

Kudos to our October Community Star of the month!

Announcing Our 2024 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Dynamics 365 Community Newsletter - September 2024

Check out the latest community news

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 290,524 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 228,493 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans