Book Image

Building ERP Solutions with Microsoft Dynamics NAV

By : Stefano Demiliani
Book Image

Building ERP Solutions with Microsoft Dynamics NAV

By: Stefano Demiliani

Overview of this book

Implementing Microsoft Dynamics NAV in the real world often requires you to integrate the ERP with external applications or solve complex architectural tasks in order to have a final successful project. This book will show you how to extend a Microsoft Dynamics NAV installation to the enterprise world in a practical way. The book starts with an introduction to Microsoft Dynamics NAV architecture and then moves on to advanced topics related to implementing real-world solutions based on NAV and external applications. You will learn how an enterprise distributed architecture with NAV at the core can be implemented. Through a series of real-world cases on every topic and every industry (sales, retail, manufacturing, distribution, healthcare, and so on), you’ll see step by step how to efficiently solve a technical problem. These common problems encountered in a NAV implementation will be solved using the entire technology stack that Microsoft offers. By the end of the book, you will have the knowledge to efficiently solve certain scenarios, you will know which is the best solution architecture to propose to a customer and how to implement it.
Table of Contents (17 chapters)
Building ERP Solutions with Microsoft Dynamics NAV
About the Author
About the Reviewer
Customer Feedback

Testing the application

In order to test the application for the two described scenarios (orders retrieval and order creation), our console application must receive the correct defined parameter (READ, CREATE) at startup.

Let's learn how to test the application by performing the following steps:

  1. To do so, right-click on the solution name, click Properties, and then choose Debug. In the Debug window, you can specify the startup parameters:

  2. Let's test the application by passing the READ parameter as input.

  3. The application code has to retrieve all the sales orders for Customer No. = 10000 (Cannon Group SpA) and this is the situation that we have on NAV:

  4. If you place a breakpoint (by pressing F9) after the lines that calls the NAV web service, you can see the retrieved records in the Debug window:

  5. The final output on the console shows you the details for all the retrieved sales orders:

  6. Now change the application startup parameter and use CREATE in order to call the function for creating a sales...