Wednesday 14 March 2018

What’s New On Microsoft Dynamics NAV 2018


API Integration in NAV 2018

As most of us know that Microsoft NAV 2018 has released a great feature about API in 2018, to support this feature we have new page type called as ‘API’. You will find four new properties in API Page I.e. Page type, Entity Name, Entity Set Name, ODataKeyFields.

For API feature, NAV 2018 has a new field with the Name Id & Type GUID. In Most of the tables, the field is added in ID 8000.

API Configuration

There is a new page added in base NAV called as ‘API Setup’ to initialize and update all API’s defined in NAV. When you run ‘API Setup’ Page under Home you will find an action called as Integrate API’s. run this action to initialize the setting.

Next step is to check API’s which are added or updated. Microsoft added a new virtual table in NAV table ID - 2000000193 (API Web Service). To find this virtual table data you can go to page object create a new page bounded with the source table ID 2000000193.

You can view all the available system API’s by running the new custom page from the object designer. To access the specific API from the web browser you need to type the web service URL in the below format

http://<<Server Name>>:<<OData Port>>/<<Service Name>>/api/beta

When you try the access the service in the browser, you may get error message saying the service is unavailable. For that you need to enable the setting from Microsoft Dynamics NAV 2018 administration.

These setting can be found under the NAV administration tool -> OData  Services section and the setting called “Enable API Services”  and “Enable OData Services”


Next step :-is to configure following parameter in service, Open nav 2018 administration and in general fast tab you will find services default company and in O Data Services will have to configure some parameters for more information please refer the below steps and screen shots. 

1.       Services default company (General): CRONUS Canada, Inc. (Company name that will be used to get/post data from API’s.
2.       Enable API Services: Check mark this option and it is used to Enable API Service to get results from URL used above.
3.       Enable OData Services: Check mark this option and it is used to Enable OData as API Depends on OData Services.
4.       OData Base URL: http://localhost:8038/DynamicsNAV110/api/beta/, The public URL for accessing OData Services.
5.        PORT: 8038, will be used in the URL above.

No comments:

Post a Comment