Professional Documents
Culture Documents
Textbook Building Erp Solutions With Microsoft Dynamics Nav 1St Edition Stefano Demiliani Ebook All Chapter PDF
Textbook Building Erp Solutions With Microsoft Dynamics Nav 1St Edition Stefano Demiliani Ebook All Chapter PDF
https://textbookfull.com/product/mastering-microsoft-
dynamics-365-business-central-the-complete-guide-for-
designing-2nd-edition-stefano-demiliani/
https://textbookfull.com/product/implementing-microsoft-dynamics-
nav-alex-chow/
https://textbookfull.com/product/programming-microsoft-dynamics-
nav-5th-edition-mark-brummel/
https://textbookfull.com/product/microsoft-dynamics-
nav-2016-financial-management-anju-bala/
Building Dashboards with Microsoft Dynamics GP 2016
Allen
https://textbookfull.com/product/building-dashboards-with-
microsoft-dynamics-gp-2016-allen/
https://textbookfull.com/product/building-solutions-with-
microsoft-teams-understanding-the-teams-app-developer-
platform-1st-edition-jenkins-ns/
https://textbookfull.com/product/building-solutions-with-
microsoft-teams-understanding-the-teams-app-developer-platform-
jenkins-ns/
https://textbookfull.com/product/building-bots-with-microsoft-
bot-framework-creating-intelligent-conversational-interfaces-1st-
edition-kishore-gaddam/
https://textbookfull.com/product/microsoft-dynamics-
gp-2016-cookbook-grieve/
Building ERP Solutions with
Microsoft Dynamics NAV
Table of Contents
Building ERP Solutions with Microsoft Dynamics NAV
Credits
About the Author
About the Reviewer
www.PacktPub.com
Why subscribe?
Customer Feedback
Preface
What this book covers
What you need for this book
Who this book is for
Conventions
Reader feedback
Customer support
Downloading the example code
Downloading the color images of this book
Errata
Piracy
Questions
1. Introduction to Microsoft Dynamics NAV Architectures
Introducing Microsoft Dynamics NAV
Microsoft Dynamics NAV history
Microsoft Dynamics NAV architecture
Microsoft Dynamics NAV deployments
Differences between NAV deployments
Infrastructure costs
Performance
Growth of solutions
Upgrades
Performance and installation tips
Data tier (SQL Server Database)
Service tier
Number of Microsoft Dynamics NAV service tiers
Server memory
Server CPU - cores and speed
Data cache size
Metadata provider cache size
Maximum concurrent calls
Maximum concurrent connections
C/AL performance
Summary
2. Configuring Microsoft Dynamics NAV Web Services
Microsoft Dynamics NAV web service protocols
Microsoft Dynamics NAV web service types
Page web services
Codeunit web services
Query web services
Using filter expressions in an OData URI
NAV web services configuration
SOAP Services tab settings
OData Services tab settings
Publishing NAV web services
Creating and publishing NAV web services
Checking NAV web services
Summary
3. Creating an Application Using NAV Web Services
Creating the NAV web service
Creating the consumer application
Reading NAV sales orders
Creating a NAV sales order
Testing the application
Using an OData web service
Extending the application for deleting NAV sales order lines
Using the SalesOrder web service (Page 42)
Using the sales order subform web service (Page 46)
Creating a cross-platform application
Tips and tricks
Summary
4. Using NAV Web Services with Microsoft Power BI
Introducing Microsoft Power BI
Publishing NAV data for Power BI
Loading NAV data on the Power BI desktop
Publishing your NAV dashboard to the Power BI portal
Microsoft Dynamics NAV content pack for Power BI
Summary
5. Integrating NAV Web Services and External Applications
An overview of the business scenario
Creating NAV business logic
Publishing the NAV objects
Creating the service layer
DALCustomers
DALShipmentAddresses
DALItems
DALPrices
DALOrders
Testing the solution
Solution deployment
Summary
6. Extending NAV Pages with Control Add-ins
A business case
Control add-in implementation
WinForms control add-in
Universal control add-in
Control add-in deployment
Summary
7. Programming Universal Windows Apps with NAV and Devices
Business case 1 - handling mobile informations with NAV
An overview of Universal Windows Platform
The solution - implementing the NAV business logic
The solution - implementing the integration layer
The solution - implementing the UWP application
Business case 2 - NAV and the Microsoft Band for healthcare
Business case 2 - developing the Band 2 application
Summary
8. Exploring Microsoft Azure and its Services
The Microsoft Azure platform
Azure Virtual Machines
Azure App Service
Azure Cloud Services
Azure Batch Services
Azure Scheduler
Azure Virtual Network
Azure Active Directory
Azure Storage
Azure Logic Apps
Azure SQL Database
Azure SQL Data Warehouse
Azure Analysis Services
Azure Service Bus
Azure Machine Learning
Azure Internet of Things (IoT) suite
Summary
9. Working with NAV and Azure App Service
The business scenario
Azure App Service
Developing the solution
Deployment to Azure App Service
Summary
10. Implementing a Message-Based Architecture with Azure Service
Bus and NAV
The business scenario
An overview of the Azure Service Bus
Queues
Topics
Relays
Developing the solution
Configuring Azure Service Bus
Publishing NAV business logic for sales orders
Creating a Visual Studio solution for transmitting and receiving
orders
Testing the application
Summary
Building ERP Solutions with
Microsoft Dynamics NAV
Building ERP Solutions with
Microsoft Dynamics NAV
Copyright © 2017 Packt Publishing
Every effort has been made in the preparation of this book to ensure
the accuracy of the information presented. However, the information
contained in this book is sold without warranty, either express or
implied. Neither the author, nor Packt Publishing, and its dealers and
distributors will be held liable for any damages caused or alleged to
be caused directly or indirectly by this book.
Livery Place
35 Livery Street
Birmingham
B3 2PB, UK.
ISBN 978-1-78712-308-3
www.packtpub.com
Credits
Author Copy Editor
Technical Editors
Production Coordinator
Parag Topre
Shantanu Zagade
Vibhuti Gawde
About the Author
Stefano Demiliani is a Microsoft Certified Solution Developer
(MCSD), MCSA, MCAD, MCTS on Microsoft Dynamics NAV, MCTS on
Sharepoint, MCTS on SQL Server, and an expert on other Microsoft-
related technologies.
You can find out more about Stefano and get in touch with him by
visiting http://www.demiliani.com or via Twitter (@demiliani) or
LinkedIn.
This book is the result of months of work and it’s a dream that
comes true. Thanks to all the wonderful staff that has worked
with me in these months (Rohit, Aaron, Rahul, Duilio): your
support was unbelievable.
Did you know that Packt offers eBook versions of every book
published, with PDF and ePub files available? You can upgrade to the
eBook version at www.PacktPub.com and as a print book customer,
you are entitled to a discount on the eBook copy. Get in touch with us
at service@packtpub.com for more details.
https://www.packtpub.com/mapt
Get the most in-demand software skills with Mapt. Mapt gives you full
access to all Packt books and video courses, as well as industry-
leading tools to help you plan your personal development and
advance your career.
Why subscribe?
Fully searchable across every book published by Packt
Copy and paste, print, and bookmark content
On demand and accessible via a web browser
Customer Feedback
Thanks for purchasing this Packt book. At Packt, quality is at the
heart of our editorial process. To help us improve, please leave us an
honest review on this book's Amazon page at
https://www.amazon.com/dp/1787123081.
If you'd like to join our team of regular reviewers, you can e-mail us
at customerreviews@packtpub.com. We award our regular reviewers
with free eBooks and videos in exchange for their valuable feedback.
Help us be relentless in improving our products!
Preface
I started my professional career in the IT world many years ago as a
pure developer, and I’ve spent many years of my life developing
custom applications from scratch with Microsoft technologies.
When more than 12 years ago I also started working in the ERP field
(and, in particular, with Microsoft Dynamics NAV), I learned that
when implementing an ERP solution, there are some business tasks
that you can efficiently solve using the internal ERP programming
language (C/AL for Microsoft Dynamics NAV), but there are also
many tasks that require the usage of other technologies to be solved
in a brilliant way.
The main goal of this book is to open the mind of the ERP developer
and help him understand how to solve integration tasks in a modern
(and efficient) way.
This is my mantra: not all tasks must be solved using C/AL. Leave
C/AL for the internal ERP business logic!
In this book, we’ll cover many business scenarios that you can find
when implementing an ERP solution (all of them come from the real
world), and we’ll see how to solve them in a modern way using
“service-oriented” solutions and cloud services.
What this book covers
Chapter 1, Introducing Microsoft Dynamics NAV Architectures,
introduces you to Microsoft Dynamics NAV. This covers the history
and the evolution of this ERP solution and helps you explore the
different architectures that you can have when implementing a
Microsoft Dynamics NAV ERP solution.
Chapter 4, Using NAV Web Services with Power BI, explains how you
can expose the ERP data by using OData web services on the Power
BI platform for data analysis and reporting.
Chapter 9, Working with Azure App Service and NAV, covers how
you can take advantage of cloud services in order to implement a
distributed and totally scalable architecture that integrates the
Microsoft Dynamics NAV ERP to external systems.
SN.exe -T <NameOfYourDLLAddinFile>
New terms and important words are shown in bold. Words that
you see on the screen, for example, in menus or dialog boxes,
appear in the text like this: "Right-click on the solution and navigate
to Add | Class…."
Note
Warnings or important notes appear in a box like this.
Tip
Tips and tricks appear like this.
Reader feedback
Feedback from our readers is always welcome. Let us know what
you think about this book-what you liked or disliked. Reader
feedback is important for us as it helps us develop titles that you will
really get the most out of. To send us general feedback, simply e-
mail feedback@packtpub.com, and mention the book's title in the
subject of your message. If there is a topic that you have expertise
in and you are interested in either writing or contributing to a book,
see our author guide at www.packtpub.com/authors.
Customer support
Now that you are the proud owner of a Packt book, we have a
number of things to help you to get the most from your purchase.
Downloading the example code
You can download the example code files for this book from your
account at http://www.packtpub.com. If you purchased this book
elsewhere, you can visit http://www.packtpub.com/support and
register to have the files e-mailed directly to you.
Once the file is downloaded, please make sure that you unzip or
extract the folder using the latest version of:
WinRAR / 7-Zip for Windows
Zipeg / iZip / UnRarX for Mac
7-Zip / PeaZip for Linux
The traveling man who “lives in a suitcase” and at the same time
wishes to enjoy the pleasures of amateur photography sometimes
experiences difficulty in developing films in a hotel room. Soup plates
borrowed from the steward, or even the bowl pitcher and the ice-
water pitcher in the room, can be used for development, but it is very
hard to improvise a ruby lamp. My emergency lamp is a small vest-
pocket flash lamp over which two yellow envelopes, one inside of the
other, are slipped, as shown. The lower edges are cut perfectly
square and rest on the table, or shelf, in the closet, and all white light
is excluded. At night, the shades may be drawn, and a yellow-paper
sack may be tied around the electric light.—Contributed by J. L.
Pinkston, Granite Hill, Ga.
An Ice Creeper
Dissolve ¹⁄₂ oz. of orange shellac in ¹⁄₂ pt. of alcohol, and add 1
teaspoonful of Venice turpentine, the same quantity of raw linseed
oil, and 2 oz. tincture of benzoin. Shake well, and set in a varnish
can in hot water.
Soak the coiled line in the varnish for two hours, then hang it up to
dry. Thin the varnish with alcohol, and repeat the dipping. When the
line is dry, rub it down well with a wool rag greased with tallow. Silk
lines treated in this manner are pliable, and the fibers of the silk are
so united by the varnish that the strength of the line is almost
doubled.
Making Chest Lock More Secure
Theprose,
charm of the birchen canoe has long been sung in verse and
and while the bark that the Indian used has been
supplanted by a more perfect type of modern manufacture, the
popularity of this, the most graceful of water craft, has increased with
years, until today we find the canoe the choice of thousands of
recreation seekers who paddle about in park lakes and quiet
streams, or spend their vacations in cruising down rivers and other
attractive waterways—sometimes within the environs of towns and
villages, and again dipping paddles in the wilderness streams of the
far north. True, the modern canoe is a distinct product of the
twentieth century, and while it is so largely used at summer resorts, it
nevertheless retains all the good points of the old, while embodying
numerous improvements which fit it even better for wilderness travel
than the Indian model after which it was patterned. The noteworthy
increase in the number of canoeists in the past dozen years is good
evidence that this natty craft is fast coming into its own, and as more
and more outdoor men and women understand its possibilities and
limitations and become proficient in handling it, the long-rooted fear
and distrust with which the uninformed public regard the canoe, will
pass away. As a matter of fact, accidents ever follow in the wake of
ignorance and carelessness, and while there are very few expert
gunners injured by firearms, and still fewer experienced canoeists
drowned, there are numerous sad accidents constantly occurring to
the reckless and foolhardy, who do not know how to handle a
weapon, nor understand the first thing about paddling a canoe. Let
us consider then, the practical side of the subject, the choice of a
suitable canoe and the knack of handling it in a safe and efficient
manner.
If one would experience in full measure the many-sided charm of
paddling, he should get a good canoe. Unlike other and heavier
water craft, the canoe is a lightly balanced and responsive
conveyance, which may be cranky and dangerous, or safe and
stable, according to the model, the skill of the builder, and the
dexterity of the paddler. There are canoes and canoes, of varying
models and sizes, and constructed of many materials, and while all
may serve as a means of getting about in the water, the paddling
qualities include numerous little idiosyncrasies which serve to
differentiate canoes as well as men. In fact, this light and graceful
craft may be properly viewed as the highest type of boat building,
since it must be fashioned strong but light; it must be steady when
going light; capable of carrying comparatively heavy loads; draw little
water, and it must be honestly constructed of good material to stand
up under the hard usage which every canoe is subjected to, whether
used for summer paddling, or upon long hunting and shooting trips.
Three types of canoes are in common use by experienced
canoeists, the birch-bark, the all-wood, and the canvas-covered
cedar canoe. The birch-bark, by reason of its rougher workmanship,
is slow under the paddle, is easily injured, and it grows heavier and
more difficult to handle every time it is used. The all-wood canoe is
most expensive to buy, and though swift under the paddle, is too
easily injured and too difficult to repair for rough and ready use. The
cedar-planked canoe which is covered with filled and painted canvas
is for many reasons the best all-around craft-attractive enough for
park use, and stout enough for use in rapid water and for cruising in
northern lakes and rivers.
This type of craft is much used in Canada along the St. Lawrence
River, and to a much less extent by American sportsmen, owing to
its higher cost, and its tendency to break and cause a leak. Of
course, the all-wood canoe is a good craft, but everything
considered, there can be no question in the minds of canoeists who
are acquainted with all types of canoes, that the all-cedar or
basswood craft is less dependable than the canvas-covered cedar
canoe. The Peterborough type—so called from a Canadian city of
this name where many wood canoes are made—with its relatively
low ends and straight sides with but little sheer and tumble home, is
the model commonly used by practically all manufacturers of the all-
wood canoe. While a boat of this kind can be, and often is, used in
rough-water lake paddling as well as in wilderness travel, the all-
wood canoe is better suited for club use, and in the wider and more
quiet-flowing streams and lakes.
The Best All-Around Craft, for Two Men and a Reasonable Amount of Camp
Duffle, Is a Canvas-Covered Cedar Canoe, 16 Feet Long, 32-Inch Beam, and
12 Inches Amidships, Weighing About 60 Pounds
The Canvas-Covered Cedar Canoe