Skip to main content

Notifications

Announcements

No record found.

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

Saurav.Dhyani Profile Picture Saurav.Dhyani 17,965 Super User 2024 Season 2
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.

Regards,
Saurav Dhyani

This was originally posted here.

Comments

*This post is locked for comments