Skip to main content

Microsoft Dynamics NAV 2018 - API Part 2 - Configure API.

Hi readers,


In the first article, we discussed exploration of API released with Microsoft Dynamics NAV 2018.


As we knew from the last article we read the Microsoft document says that there are 44 API released in Base Microsoft NAV. Let's see how we can access that list and how to configure API.




To Start with Microsoft have added a page API Setup (5469) to initialize of update all APIS defined in NAV Objects.

Don't get confuse with data in this page, we need to focus on action Integrate API as shown below.



So what will happen if we click on it -

1. System will look for all subscriber of the Published Event "ApiSetup" in Codeunit Graph Mgt - General Tools.

2. For Every Subscriber if it is API then system will Add or Update Integration Records for API's.

Next step is to check APIs which are added or updated. As in previous article we see that Microsoft added a new virtual table in NAV 2018 - 2000000193 (Api Web Service). Lets create a list page based on this table and see the data inside this as shown below.



Now after finding information from MSDN to access any of these API's below is the format to access. http://<<Server Name>>:<<OData Port>>/<<Service Name>>/api/beta

In my case, it is - http://localhost:11048/DynamicsNAV110/api/beta

Lets try to access is and see results.

So what we are missing, after reading more about it we need to set following parameter in service.

1. Service Default Company. -- Company Name that will be used to get/post data from API's.
2. Enable API Services.     -- Enable API Service to get results from URL used above.
3. Enable ODATA Services.   -- Enable Odata as API depends on ODATA Services.
4. OData Base URL.          -- The public URL for accessing OData services.
5. Port.                    -- Will be used in the URL Above.


So lets try to access the base URL again and see a list of pulished API in Microsoft Dynamics NAV 2018. As highlighted 44 published API is displayed on the page.

Hope you find the information useful and will be able to configure API In your environment.

In Next article we will try to see demo of how we can use these standard API. That may not be the how we will actually use it but a simple demo and then i will leave it with everyone open mind to use it further.

Let me know your views.

Regards,
Saurav Dhyani

Comments

Popular posts from this blog

VIEW SERVER STATE permission on SQL Server?

Hi all, Sometime While trying to Login into a database we face an error message as shown below. --------------------------- Microsoft Dynamics NAV Classic --------------------------- You cannot start Microsoft Dynamics NAV Classic because you do not have the VIEW SERVER STATE permission on SQL Server. Contact your system administrator. --------------------------- OK    ---------------------------

NAV 2013 R2 - Cumulative update 12 Released.

Hi all, Please find below the details of  Cumulative Update 12 released for Microsoft Dynamics NAV 2013 R2. Title - Cumulative Update 12 for Microsoft Dynamics NAV 2013 R2 Build No. - 38053 Release Date - October, 2014 Local Version Included - AU, AT, BE, CH, DE, DK, ES, FI, FR, IS, IT, NA, NL, NO, NZ, SE, UK, RU Download Link Note: Implementing this cumulative update will require a database conversion unless you have already implemented update rollup 5.

Error After Restore SQL Backup of NAV 2013 Database

Hi all, we are facing a conman issue during restoring a SQL Database backup restored for NAV 2013. While Trying to run object from Object Designer we get below listed error (even the service is configured properly) - --------------------------- Microsoft Dynamics NAV Development Environment --------------------------- There are no NAV Server instances available for this database. You must ensure that a NAV Server instance is running and is configured to use the database before you perform this activity. --------------------------- OK    ---------------------------