Thursday, November 3, 2022

Business Central API 2.0 Version - Structure of API and Syntax for Get

 

Hello Friends, 

Business Central API 2.0 

Below are some best blog to learn it.

https://yzhums.com/6117/

List of API BC - https://learn.microsoft.com/en-us/dynamics365/business-central/dev-itpro/api-reference/v2.0/

Develop new API Page - https://learn.microsoft.com/en-us/dynamics365/business-central/dev-itpro/developer/devenv-develop-custom-api

https://businesscentralgeek.com/business-central-api-guide-in-2022

 

API Structure

https://api.businesscentral.dynamics.com/v2.0/TenantID/<serverinstance>/api/<API publisher>/<API group>/v2.0/CompanyID/EntitySetName

 

We have create two new API page

Below are useful list of API with structure

 

1) Get all companies id - https://api.businesscentral.dynamics.com/v2.0/0cd33610-3443-4d21-a9a1-5b0f3ae1dc84/Sandbox_Intech/api/v2.0/companies

 

2) Get all standard API list - https://api.businesscentral.dynamics.com/v2.0/0cd33610-3443-4d21-a9a1-5b0f3ae1dc84/Sandbox_Intech/api/v2.0

 

3) Get all the custom API list by API Group and Publisher - https://api.businesscentral.dynamics.com/v2.0/0cd33610-3443-4d21-a9a1-5b0f3ae1dc84/Sandbox_Intech/api/ISPL/PowerBIReport/v2.0/

 

4) Get API for Customer Led Entry - https://api.businesscentral.dynamics.com/v2.0/0cd33610-3443-4d21-a9a1-5b0f3ae1dc84/Sandbox_Intech/api/ISPL/PowerBIReport/v2.0/companies(8cd9882b-acb1-ec11-8aa5-6045bda57eaf)/customLedgerEntries

page 79131 API_CustomerLedgerEntry
{
    APIGroup = 'PowerBIReport';
    APIPublisher = 'ISPL';
    APIVersion = 'v2.0';
    Caption = 'apiCustomerLedgerEntry';
    DelayedInsert = true;
    EntityName = 'customLedgerEntry';
    EntityCaption = 'customLedgerEntry';
    EntitySetName = 'customLedgerEntries';    //Make Sure First Char in Small Letter
and don't use any special char or space
    EntitySetCaption = 'customLedgerEntries';
    ODataKeyFields = SystemId;
    PageType = API;
    SourceTable = "Cust. Ledger Entry";



5) Get API for Standard Inventory Posting Group Get - https://api.businesscentral.dynamics.com/v2.0/0cd33610-3443-4d21-a9a1-5b0f3ae1dc84/Production/API/v2.0/companies(8cd9882b-acb1-ec11-8aa5-6045bda57eaf)/inventoryPostingGroups

 

I have attached here postman collection for call this API, It will help us in future for develop new API Page



Thank you for reading.

Keep Sharing...Keep Growing...



1 comment:

  1. 10.110.2.4 – New Application Server
    10.110.2.132 – New Database Server

    Username: Nilesh.Gajjar_ext
    Password: Ni#GAJ@2022

    Username: Ankit.Dave_ext
    Password: An#DAV@2022

    ReplyDelete