Skip to main content

Microsoft Dynamics NAV 2018 - API Part 4 - Develop Custom API.

Hi Readers,

We already have two posts about NAV 2018 API listed below -

API Part 1

API Part 2 - Configure API

API Part 3 - Consuming API

In this article, we will see how we can create a new custom API. We will customize NAV and see how API can be developed if we want to create a custom API's.

If you are interested in the small demo then please go further otherwise, I am sure you know how to consume these APIs.

Let's create a New custom table that we will use for API named as "External Items", with a boolean flowfield & Inventory Flowfield that will be set based on data entered from external systems in this table.

As in standard API Tables discussed in the earlier article, we will add Id Field with Field No. 8000

Now let's create a list page to see data in this page that is inserted by the external system.

Let's create an API page that we will require to configure in API Page which has all 44 standard pages published.

1. A New Page Type is added in NAV 2018 that is API.
2. Specify EntityName and EntitySetName that will be used in URL to access by the external system.
3. Also Speicy OdataKeyField the GUID Field i.e ID as shown below.

In the next article, we will discuss how we can add this new API to the external system. Let me know if any questions or suggestions.

Saurav Dhyani


  1. Hi Saurav,

    Is there any article you would publish for "NAV 2018 - Develop Custom API"

    if yes then please share details about it.

    Thank you

  2. Hi Saurav, can you please let me know the URL with passing company name as a parameter in query string, I tried many times , but all in vain , can you please help me with this

    1. @Vikas -
      Didn't get your question. Could you please explain.

  3. Hi Saurav,

    Nice article. I am trying to search for your next article for this article but not getting any link on google. Tried to search with "Microsoft Dynamics NAV 2018 - API Part 5 - Develop Custom API".

    Please provide link of it.


Post a Comment

Popular posts from this blog

Send Mail with Attachment From Navision.

Hi all, We have seen how to save a report into PDF and how to send mail to a customer. Let's link these two post in one i.e. Mailing statement to a customer into PDF Format. This article is part of the Series. Please Refer  Table of Content here . If you have the old objects set let me brief you what I will be changing - 

Dynamics 365 Business Central 2021 release wave 2 (BC19) Released.

Hi Readers, As we all were expecting Microsoft have Released Business Central 2021 Release Wave 2 Today a.k.a BC19. In this article we will see what all is announced with the General Availability.  Starting Today Customers & Partners can start using Business Central 19. #msdyn365bc #bc19

MSDYN365BC - Data Upgrade To Microsoft Dynamics 365 Business Central on premises.

Hi Readers, We have already talked about the number of steps for upgrading to Business Central on Premises from different NAV versions. After that article, I received multiple requests for an article which list down steps for Data Migration. In this article, we will discuss steps of data migration to MSDYN365BC (on-Prem) from NAV 2017. For this article, I am considering a Cronus Demo Database without any customization. For an actual upgrade project, we will have to complete object merge using compare and Merge process. After the Merge Process, the next step is data migration. Let's discuss those steps. Direct Upgrade to Microsoft Dynamics 365 Business Central (on-Prem) is from following versions - 1. NAV 2015. 2. NAV 2016. 3. NAV 2017. 4. NAV 2018.