Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Building ERP Solutions with Microsoft Dynamics NAV

You're reading from   Building ERP Solutions with Microsoft Dynamics NAV Solve business scenarios using NAV

Arrow left icon
Product type Paperback
Published in Mar 2017
Publisher Packt
ISBN-13 9781787123083
Length 392 pages
Edition 1st Edition
Arrow right icon
Author (1):
Arrow left icon
Stefano Demiliani Stefano Demiliani
Author Profile Icon Stefano Demiliani
Stefano Demiliani
Arrow right icon
View More author details
Toc

Table of Contents (11) Chapters Close

Preface 1. Introduction to Microsoft Dynamics NAV Architectures FREE CHAPTER 2. Configuring Microsoft Dynamics NAV Web Services 3. Creating an Application Using NAV Web Services 4. Using NAV Web Services with Microsoft Power BI 5. Integrating NAV Web Services and External Applications 6. Extending NAV Pages with Control Add-ins 7. Programming Universal Windows Apps with NAV and Devices 8. Exploring Microsoft Azure and its Services 9. Working with NAV and Azure App Service 10. Implementing a Message-Based Architecture with Azure Service Bus and NAV

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:

    Testing the application

  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:

    Testing the application

  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:

    Testing the application

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

    Testing the application

  6. Now change the application startup parameter and use CREATE in order to call the function for creating...
lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime