Professional Documents
Culture Documents
Nav 2013 Installation Configuration PDF
Nav 2013 Installation Configuration PDF
Nav 2013 Installation Configuration PDF
Unless otherwise noted, the examples depicted herein are provided for illustration only and are fictitious. No
real association or connection is intended or should be inferred.
This courseware does not provide you with any legal rights to any intellectual property in any Microsoft
product. Complying with all applicable copyright laws is the responsibility of the user. Without limiting the
rights under copyright, no part of this courseware may be reproduced, stored in or introduced into a retrieval
system, or transmitted in any form or by any means or for any purpose, without the express written
permission of Microsoft Corporation.
Microsoft®, Microsoft Dynamics®, Microsoft® PowerPoint®, Microsoft® SQL Server® data management
software and Microsoft Dynamics® NAV are trademarks of the Microsoft group of companies. All other
trademarks are property of their respective owners.
These license terms are an agreement between Microsoft Corporation (or based on where you live, one of its
affiliates) and you. Please read them. They apply to your use of the content accompanying this agreement which
includes the media on which you received it, if any. These license terms also apply to Trainer Content and any
updates and supplements for the Licensed Content unless other terms accompany those items. If so, those terms
apply.
BY ACCESSING, DOWNLOADING OR USING THE LICENSED CONTENT, YOU ACCEPT THESE TERMS.
IF YOU DO NOT ACCEPT THEM, DO NOT ACCESS, DOWNLOAD OR USE THE LICENSED CONTENT.
If you comply with these license terms, you have the rights below for each license you acquire.
1. DEFINITIONS.
a. “Authorized Learning Center” means a Microsoft IT Academy Program Member, Microsoft Learning
Competency Member, or such other entity as Microsoft may designate from time to time.
b. “Authorized Training Session” means the instructor-led training class using Microsoft Instructor-Led
Courseware conducted by a Trainer at or through an Authorized Learning Center.
c. “Classroom Device” means one (1) dedicated, secure computer that an Authorized Learning Center owns
or controls that is located at an Authorized Learning Center’s training facilities that meets or exceeds the
hardware level specified for the particular Microsoft Instructor-Led Courseware.
d. “End User” means an individual who is (i) duly enrolled in and attending an Authorized Training Session
or Private Training Session, (ii) an employee of a MPN Member, or (iii) a Microsoft full-time employee.
e. “Licensed Content” means the content accompanying this agreement which may include the Microsoft
Instructor-Led Courseware or Trainer Content.
f. “Microsoft Certified Trainer” or “MCT” means an individual who is (i) engaged to teach a training session
to End Users on behalf of an Authorized Learning Center or MPN Member, and (ii) currently certified as a
Microsoft Certified Trainer under the Microsoft Certification Program.
g. “Microsoft Instructor-Led Courseware” means the Microsoft-branded instructor-led training course that
educates IT professionals and developers on Microsoft technologies. A Microsoft Instructor-Led
Courseware title may be branded as MOC, Microsoft Dynamics or Microsoft Business Group courseware.
h. “Microsoft IT Academy Program Member” means an active member of the Microsoft IT Academy
Program.
i. “Microsoft Learning Competency Member” means an active member of the Microsoft Partner Network
program in good standing that currently holds the Learning Competency status.
j. “MOC” means the “Official Microsoft Learning Product” instructor-led courseware known as Microsoft
Official Course that educates IT professionals and developers on Microsoft technologies.
k. “MPN Member” means an active silver or gold-level Microsoft Partner Network program member in good
standing.
l. “Personal Device” means one (1) personal computer, device, workstation or other digital electronic device
that you personally own or control that meets or exceeds the hardware level specified for the particular
Microsoft Instructor-Led Courseware.
m. “Private Training Session” means the instructor-led training classes provided by MPN Members for
corporate customers to teach a predefined learning objective using Microsoft Instructor-Led Courseware.
These classes are not advertised or promoted to the general public and class attendance is restricted to
individuals employed by or contracted by the corporate customer.
n. “Trainer” means (i) an academically accredited educator engaged by a Microsoft IT Academy Program
Member to teach an Authorized Training Session, and/or (ii) a MCT.
o. “Trainer Content” means the trainer version of the Microsoft Instructor-Led Courseware and additional
supplemental content designated solely for Trainers’ use to teach a training session using the Microsoft
Instructor-Led Courseware. Trainer Content may include Microsoft PowerPoint presentations, trainer
preparation guide, train the trainer materials, Microsoft One Note packs, classroom setup guide and Pre-
release course feedback form. To clarify, Trainer Content does not include any software, virtual hard
disks or virtual machines.
2. USE RIGHTS. The Licensed Content is licensed not sold. The Licensed Content is licensed on a one copy
per user basis, such that you must acquire a license for each individual that accesses or uses the Licensed
Content.
2.1 Below are five separate sets of use rights. Only one set of rights apply to you.
vii. you will only use qualified Trainers who have in-depth knowledge of and experience with the
Microsoft technology that is the subject of the Microsoft Instructor-Led Courseware being taught for
all your Authorized Training Sessions,
viii. you will only deliver a maximum of 15 hours of training per week for each Authorized Training
Session that uses a MOC title, and
ix. you acknowledge that Trainers that are not MCTs will not have access to all of the trainer resources
for the Microsoft Instructor-Led Courseware.
ii. You may customize the written portions of the Trainer Content that are logically associated with
instruction of a training session in accordance with the most recent version of the MCT agreement.
If you elect to exercise the foregoing rights, you agree to comply with the following: (i)
customizations may only be used for teaching Authorized Training Sessions and Private Training
Sessions, and (ii) all customizations will comply with this agreement. For clarity, any use of
“customize” refers only to changing the order of slides and content, and/or not using all the slides or
content, it does not mean changing or modifying any slide or content.
2.2 Separation of Components. The Licensed Content is licensed as a single unit and you may not
separate their components and install them on different devices.
2.3 Redistribution of Licensed Content. Except as expressly provided in the use rights above, you may
not distribute any Licensed Content or any portion thereof (including any permitted modifications) to any
third parties without the express written permission of Microsoft.
2.4 Third Party Programs and Services. The Licensed Content may contain third party programs or
services. These license terms will apply to your use of those third party programs or services, unless other
terms accompany those programs and services.
2.5 Additional Terms. Some Licensed Content may contain components with additional terms,
conditions, and licenses regarding its use. Any non-conflicting terms in those conditions and licenses also
apply to your use of that respective component and supplements the terms described in this agreement.
a. Pre-Release Licensed Content. This Licensed Content subject matter is on the Pre-release version of
the Microsoft technology. The technology may not work the way a final version of the technology will
and we may change the technology for the final version. We also may not release a final version.
Licensed Content based on the final version of the technology may not contain the same information as
the Licensed Content based on the Pre-release version. Microsoft is under no obligation to provide you
with any further content, including any Licensed Content based on the final version of the technology.
b. Feedback. If you agree to give feedback about the Licensed Content to Microsoft, either directly or
through its third party designee, you give to Microsoft without charge, the right to use, share and
commercialize your feedback in any way and for any purpose. You also give to third parties, without
charge, any patent rights needed for their products, technologies and services to use or interface with
any specific parts of a Microsoft software, Microsoft product, or service that includes the feedback. You
will not give feedback that is subject to a license that requires Microsoft to license its software,
technologies, or products to third parties because we include your feedback in them. These rights
survive this agreement.
c. Pre-release Term. If you are an Microsoft IT Academy Program Member, Microsoft Learning
Competency Member, MPN Member or Trainer, you will cease using all copies of the Licensed Content on
the Pre-release technology upon (i) the date which Microsoft informs you is the end date for using the
Licensed Content on the Pre-release technology, or (ii) sixty (60) days after the commercial release of the
technology that is the subject of the Licensed Content, whichever is earliest (“Pre-release term”).
Upon expiration or termination of the Pre-release term, you will irretrievably delete and destroy all copies
of the Licensed Content in your possession or under your control.
4. SCOPE OF LICENSE. The Licensed Content is licensed, not sold. This agreement only gives you some
rights to use the Licensed Content. Microsoft reserves all other rights. Unless applicable law gives you more
rights despite this limitation, you may use the Licensed Content only as expressly permitted in this
agreement. In doing so, you must comply with any technical limitations in the Licensed Content that only
allows you to use it in certain ways. Except as expressly permitted in this agreement, you may not:
• access or allow any individual to access the Licensed Content if they have not acquired a valid license
for the Licensed Content,
• alter, remove or obscure any copyright or other protective notices (including watermarks), branding
or identifications contained in the Licensed Content,
• modify or create a derivative work of any Licensed Content,
• publicly display, or make the Licensed Content available for others to access or use,
• copy, print, install, sell, publish, transmit, lend, adapt, reuse, link to or post, make available or
distribute the Licensed Content to any third party,
• work around any technical limitations in the Licensed Content, or
• reverse engineer, decompile, remove or otherwise thwart any protections or disassemble the
Licensed Content except and only to the extent that applicable law expressly permits, despite this
limitation.
5. RESERVATION OF RIGHTS AND OWNERSHIP. Microsoft reserves all rights not expressly granted to
you in this agreement. The Licensed Content is protected by copyright and other intellectual property laws
and treaties. Microsoft or its suppliers own the title, copyright, and other intellectual property rights in the
Licensed Content.
6. EXPORT RESTRICTIONS. The Licensed Content is subject to United States export laws and regulations.
You must comply with all domestic and international export laws and regulations that apply to the Licensed
Content. These laws include restrictions on destinations, end users and end use. For additional information,
see www.microsoft.com/exporting.
7. SUPPORT SERVICES. Because the Licensed Content is “as is”, we may not provide support services for it.
8. TERMINATION. Without prejudice to any other rights, Microsoft may terminate this agreement if you fail
to comply with the terms and conditions of this agreement. Upon termination of this agreement for any
reason, you will immediately stop all use of and delete and destroy all copies of the Licensed Content in
your possession or under your control.
9. LINKS TO THIRD PARTY SITES. You may link to third party sites through the use of the Licensed
Content. The third party sites are not under the control of Microsoft, and Microsoft is not responsible for
the contents of any third party sites, any links contained in third party sites, or any changes or updates to
third party sites. Microsoft is not responsible for webcasting or any other form of transmission received
from any third party sites. Microsoft is providing these links to third party sites to you only as a
convenience, and the inclusion of any link does not imply an endorsement by Microsoft of the third party
site.
10. ENTIRE AGREEMENT. This agreement, and any additional terms for the Trainer Content, updates and
supplements are the entire agreement for the Licensed Content, updates and supplements.
b. Outside the United States. If you acquired the Licensed Content in any other country, the laws of that
country apply.
12. LEGAL EFFECT. This agreement describes certain legal rights. You may have other rights under the laws
of your country. You may also have rights with respect to the party from whom you acquired the Licensed
Content. This agreement does not change your rights under the laws of your country if the laws of your
country do not permit it to do so.
13. DISCLAIMER OF WARRANTY. THE LICENSED CONTENT IS LICENSED "AS-IS" AND "AS
AVAILABLE." YOU BEAR THE RISK OF USING IT. MICROSOFT AND ITS RESPECTIVE
AFFILIATES GIVES NO EXPRESS WARRANTIES, GUARANTEES, OR CONDITIONS. YOU MAY
HAVE ADDITIONAL CONSUMER RIGHTS UNDER YOUR LOCAL LAWS WHICH THIS AGREEMENT
CANNOT CHANGE. TO THE EXTENT PERMITTED UNDER YOUR LOCAL LAWS, MICROSOFT AND
ITS RESPECTIVE AFFILIATES EXCLUDES ANY IMPLIED WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT.
14. LIMITATION ON AND EXCLUSION OF REMEDIES AND DAMAGES. YOU CAN RECOVER FROM
MICROSOFT, ITS RESPECTIVE AFFILIATES AND ITS SUPPLIERS ONLY DIRECT DAMAGES UP
TO US$5.00. YOU CANNOT RECOVER ANY OTHER DAMAGES, INCLUDING CONSEQUENTIAL,
LOST PROFITS, SPECIAL, INDIRECT OR INCIDENTAL DAMAGES.
It also applies even if Microsoft knew or should have known about the possibility of the damages. The
above limitation or exclusion may not apply to you because your country may not allow the exclusion or
limitation of incidental, consequential or other damages.
Please note: As this Licensed Content is distributed in Quebec, Canada, some of the clauses in this
agreement are provided below in French.
Remarque : Ce le contenu sous licence étant distribué au Québec, Canada, certaines des clauses
dans ce contrat sont fournies ci-dessous en français.
EXONÉRATION DE GARANTIE. Le contenu sous licence visé par une licence est offert « tel quel ». Toute
utilisation de ce contenu sous licence est à votre seule risque et péril. Microsoft n’accorde aucune autre garantie
expresse. Vous pouvez bénéficier de droits additionnels en vertu du droit local sur la protection dues
consommateurs, que ce contrat ne peut modifier. La ou elles sont permises par le droit locale, les garanties
implicites de qualité marchande, d’adéquation à un usage particulier et d’absence de contrefaçon sont exclues.
Elle s’applique également, même si Microsoft connaissait ou devrait connaître l’éventualité d’un tel dommage. Si
votre pays n’autorise pas l’exclusion ou la limitation de responsabilité pour les dommages indirects, accessoires
ou de quelque nature que ce soit, il se peut que la limitation ou l’exclusion ci-dessus ne s’appliquera pas à votre
égard.
EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous pourriez avoir d’autres droits
prévus par les lois de votre pays. Le présent contrat ne modifie pas les droits que vous confèrent les lois de votre
pays si celles-ci ne le permettent pas.
Introduction
Microsoft Dynamics Courseware Overview………………………………………………..…………….….....0-3
Student Objectives………………………………………………………………………………………..…………….….0-4
Module 1: ARCHITECTURE
Lesson 1: Microsoft Dynamics NAV 2013 Architecture ...................................................................1-2
Lesson 7: Microsoft Dynamics NAV Portal Framework for Microsoft SharePoint 2010 ... 2-18
Lab 2.1: Install the Three Tiers on Three Computers ..................................................................... 2-21
1
Installation and Configuration in Microsoft Dynamics® NAV 2013
Module 4: MICROSOFT DYNAMICS NAV CLIENT INSTALLATION
Lesson 1: Install the RoleTailored Client for Windows .....................................................................4-2
Lab 4.2: Set Up the RoleTailored Client for Windows from the Command Line................. 4-50
2
Table of Contents
Module 7: DEPLOYMENT
Lesson 1: Deployment Process ..................................................................................................................7-2
Lab 8.1: Administering NAV Server Using PowerShell API .......................................................... 8-29
3
Installation and Configuration in Microsoft Dynamics® NAV 2013
We created this additional Table of Contents to assist you in quickly finding out the areas that are
new and, or changed from the Microsoft Dynamics NAV earlier version for this course.
These areas are identified with this icon throughout the training material.
Module 1: ARCHITECTURE
Lesson 2: The Client Options .....................................................................................................................1-8
Topic 2: Microsoft Dynamics NAV Portal Framework for SharePoint ..................................... 1-10
Topic 1: What Is Microsoft Dynamics NAV Portal Framework for SharePoint 2010? ....... 4-26
Topic 3: Install Portal Framework for the First Time ...................................................................... 4-28
Topic 4: Deploy and Activate Microsoft NAV Portal Framework on SharePoint Web
Applications .................................................................................................................................................... 4-32
4
Table of Contents
Topic 5: Set Up Delegation ...................................................................................................................... 4-33
Topic 1: Introduction.....................................................................................................................................8-2
5
Installation and Configuration in Microsoft Dynamics® NAV 2013
Topic 14: New-NAVServerUserPermissionSet .................................................................................. 8-19
6
INTRODUCTION
Training is an important component of maintaining the value of a Microsoft
Dynamics® investment. Quality training from industry experts keeps you up-to-
date and helps you develop the skills necessary for fully maximizing the value of
your solution. Microsoft Dynamics provides different kinds of training to meet
everyone’s needs, from online training, classroom training, or training materials.
Select the training type that will best help you stay ahead of the competition.
Online Training
Online training delivers convenient, detailed training in the comfort of your own
home or office. Online training provides immediate access to training 24 hours a
day. It is perfect for the customer who does not have the time or budget to travel.
Online training options combine the efficiency of online training with the
thorough product coverage of classroom training.
Classroom Training
Training Materials
Training materials help you learn at your own pace, in your own time, with
information-packed training manuals. The many training manuals features many
tips, tricks, and insights that you can reference continuously.
The Microsoft Dynamics courseware consists of detailed training manuals that are
designed from a training perspective. These manuals include advanced topics, in
addition to training objectives, exercises, interactions, and quizzes.
Look for a complete list of manuals that are available for purchase on
CustomerSource or PartnerSource.
0-1
Microsoft Official Training Materials for Microsoft Dynamics ®
Your use of this content is subject to your current services agreement
Installation and Configura
C ation in Microsoft D
Dynamics® NAV 201
13
Micro
osoft Dyn
namics Coursew
C ware Con
ntents
Microsoft Dynamics
D courrseware contaains labs and q
quick interacttions. These h
help
Lab
Within the Microsoft Dyn namics trainin
ng materials, yyou will find labs. These lab bs are
typically offfered in two le
evels to accommmodate eacch student’s vaariety of
knowledge and expertise e. We suggestt that you try the High leve el steps first. Iff you
need help completing
c th
he task, look t o the informaation in the Detailed steps.
High lev
vel steps
High levels steps are the most challen nging. These ssteps are desiigned for the
experiencedd student who o requires littlle instruction to complete the required task.
Detailed
d steps
Detailed steeps are geared
d toward new w users who reequire detaile
ed instructionss and
explanation ns to complete
e the lab. Dettailed steps gu
uide you thro
ough the wholle
task. This in
ncludes naviga
ation.
This training
g material might include co ontent for neew features that is specific tto this
software veersion, and to any updated features. To aassist in findin
ng the conten nt for
the new fea atures, an icon
n ( ) is placeed next to thee heading. Thee icon identifiies
areas that are
a new and, or o changed frrom the earlieer version. How wever, it is
important tot review all content to maake sure theree is a thorough h understanding of
this informaation.
Student Objectives
What do you hope to learn by participating in this course?
1.
2.
3.
Module Overview
Microsoft Dynamics NAV 2013 is built on a three-tiered architecture model that
improves security, scalability, and flexibility of Microsoft Dynamics NAV. Microsoft
Dynamics NAV 2013 supports different client types and multiple configurations.
To install the Microsoft Dynamics NAV 2013, you can choose from several
predefined setup options.
Objectives
• The client tier: A client user interface that provides the front end
(presentation logic layer).
• The middle tier or server tier: A multithreaded middle-tier server
that manages the business logic and all communication.
• The data tier: The SQL Server™ database server that provides the
data layer. It is augmented by Microsoft Dynamics NAV 2013
database components.
For every deployment of Microsoft Dynamics NAV 2013 you must install these
three core components.
You can have multiple instances of any of the core components in a production
environment. The diagram
The Three Tiers of the RoleTailored Architecture shows a simple installation that
has two SQL Server database computers, each associated with a single Microsoft
Dynamics NAV Server computer, each of which in turn supports two Microsoft
Dynamics NAV RoleTailored clients:
Each Microsoft Dynamics NAV Server computer can run several Microsoft
Dynamics NAV server instances. Each server instance can be connected to one
Microsoft Dynamics NAV database at a time. You can connect multiple server
instances to one and the same Microsoft Dynamics NAV database.
Component Purpose
Microsoft Dynamics NAV Server A tool for configuring and managing
Administration Tool Microsoft Dynamics NAV Server and
Microsoft Dynamics NAV sites.
The data tier in the Microsoft Dynamics NAV 2013 architecture consists of a
computer that is running the SQL Server database with which Microsoft Dynamics
NAV interacts. It also contains the SQL Server database components. SQL Server
database components configure Microsoft SQL Server to work with Microsoft
Dynamics NAV 2013.
The data tier can be installed as part of the Microsoft Dynamics NAV setup, or you
can use an instance of SQL Server.
In Microsoft Dynamics NAV setup, SQL Server database components are a default
component for the developer option. You can add the components to the server
option or as part of a custom installation.
Microsoft Dynamics NAV Server also hosts and executes all business logic. The
SQL Server interface from Microsoft Dynamics NAV Server is rewritten for
Microsoft Dynamics NAV 2013. It uses an ADO.NET interface (instead of ODBC)
which is a managed data access layer that does not provide an interface or an
access point to the user (improving security and scalability) and that supports SQL
Server connection pooling. The redesign of data access offers different
advantages:
Microsoft Dynamics NAV 2013 offers improved performance for the following
reasons:
For more information about the ValueIsFilter option, see How to:
Create, View, and Edit a Calculation Formula in the online help.
• In most cases, calling the FIND or NEXT functions after you have set
the view to include only marked records issues a single SQL
statement. In an earlier version of Microsoft Dynamics NAV, calling
FIND or NEXT functions that use marked records issued an SQL
statement for each mark. There are some exceptions if many
individual records are marked. For more information, see
MARKEDONLY Function (Record) in the online help.
Microsoft Dynamics NAV Server supports a range of different client types. You
administer Microsoft Dynamics NAV Server by using either Microsoft Dynamics
NAV Server Administration Tool or Microsoft Dynamics NAV Windows PowerShell
API.
Microsoft Dynamics NAV Server is installed when you select either the Server
option or the Developer option in Microsoft Dynamics NAV Setup.
The client tier provides the client interface to the user and is responsible for data
presentation. It consists of the following components:
In addition to the client for Windows, Microsoft Dynamics NAV 2013 also supports
additional client types.
The following can be considered Microsoft Dynamics NAV clients because they
interact with the Microsoft Dynamics NAV database through Microsoft Dynamics
NAV Server:
Multiple Configurations
For each role, the Microsoft Certified Partner or developer creates a customizable
Role Center that displays key information that is required for relevant employees
and makes their day-to-day tasks easier to complete. Users run the RoleTailored
client for Windows to find the information and data entry points their jobs
require.
The following figure shows the role-oriented interface in the RoleTailored client
for Windows.
Microsoft Dynamics NAV Portal Framework for Microsoft SharePoint 2010 is a set
of components that can be used to build Microsoft SharePoint web applications
that display Microsoft Dynamics NAV pages and reports.
Using the Microsoft Dynamics NAV Portal Framework for Microsoft SharePoint, a
Microsoft Dynamics NAV administrator can create a browser application that
provides access to specific Microsoft Dynamics NAV features, applications, and
pages.
The Microsoft Dynamics NAV Portal Framework for SharePoint diagram shows the
tiers and components of the Microsoft Dynamics NAV Portal Framework network
architecture.
Tier Description
Client A computer or computers for accessing
SharePoint sites from Internet Explorer®.
Developer Experience
Developers of solutions for Microsoft Dynamics NAV Portal Framework will have
the same experience as with RoleTailored client. Developers create Microsoft
Dynamics NAV objects in the development environment and implement the same
metadata and business logic as RoleTailored client. A page or report that can be
displayed in the RoleTailored client can also be displayed on a SharePoint site.
End-user Experience
End-users will find Microsoft Dynamics NAV data familiar as it shares the same
appearance as SharePoint. Working with Microsoft Dynamics NAV pages and
reports in SharePoint resembles working with the pages and reports in
RoleTailored client.
Microsoft Dynamics NAV Portal Framework is designed for occasional users who
typically need an overview of their daily work status and perform fairly simple or
light data entry.
Microsoft Dynamics NAV 2013 web services are stateless and do not preserve the
values of global variables or single-instance codeunits between calls.
SOAP web services provide full flexibility for building operation-centric services.
This includes industry standard interoperability, in addition to channel and host
plug-ability. For web services that must interoperate with Java or use channels
other than HTTP, SOAP services are the only option. Windows Communication
Framework (WCF) has supported SOAP services since its initial release in the .NET
Framework 3.0, and .NET 4 adds more support and default bindings to make it
easier to build SOAP services that use WCF. You define and publish Microsoft
Dynamics NAV 2013 SOAP web services in the RoleTailored client, and manage
them from the Microsoft Dynamics NAV Server Administration Tool.
The Microsoft Dynamics NAV Application Server can run both as a Windows
service and from a command prompt. It provides access from external clients to
the Microsoft Dynamics NAV database. Microsoft Dynamics NAV Application
You manage NAS services from the Microsoft Dynamics NAV Server
Administration Tool.
The Microsoft Dynamics NAV Web client enables you to access Microsoft
Dynamics NAV data from a web browser, even over the Internet. You can view
and edit data by using an interface that resembles the RoleTailored client for
Windows. Microsoft Dynamics NAV Web client does not replace the Windows
client but complements it by enabling scenarios that are not possible or difficult
with the Windows client.
You develop solutions for Microsoft Dynamics NAV Web client by using the
Microsoft Dynamics NAV Development Environment - implementing the same
objects and business logic as you would with the Windows client.
Note: Microsoft Dynamics NAV Web client supports most of the same
Microsoft Dynamics NAV objects and features as the Windows client. But there are
some small differences. For more information about these differences, see the online
Help topic Feature Limitations of Microsoft Dynamics NAV Web Client.
The Microsoft Dynamics NAV Web Client Architecture diagram shows the tiers
and components in the network architecture for the Microsoft Dynamics NAV
Web client.
Installation Options
After you have analyzed and prepared the hardware and software requirements
for the Microsoft Dynamics NAV 2013 deployment, you can start to install the
core components.
Microsoft Dynamics NAV 2013 Setup allows you to install the components
individually. In addition it offers several predefined component packages called
Installation Options, each designed for a typical use or type of user. When you
select a predefined installation option, you can always customize the list of
installed components.
Microsoft Dynamics NAV 2013 Setup can also be used to capture and save a set of
custom setup settings in a setup configuration file. You can use this configuration
file together with Setup, either when you or another user runs Setup or when you
run a silent installation.
The first installation option, which is the Install Demo option, appears on the first
page after you accept the license agreement in Setup. The other options are
available if you click Choose an installation option.
Setup does not provide a Cancel button on all pages. But you can cancel an
installation from any page by clicking Close in the upper-right corner. All
Microsoft Dynamics NAV components are removed from the computer. The only
components that Setup installs but cannot remove are as follows:
Install Demo
The Install Demo option is intended for users who want to try the features of
Microsoft Dynamics NAV. It can also be used to install a stand-alone development
environment. Therefore, a developer can work on Microsoft Dynamics NAV
applications without worrying about network connections and inter-component
security. We do not recommend it as the foundation for an actual production
environment.
With this option, Setup installs all three core components to the local computer.
Because the Microsoft Dynamics NAV Server can only be installed on a 64-bit
operating system, you can only use this option on a 64-bit operating system.
When you choose the Install Demo option, Setup installs the following
components:
When you click Demo Install, Setup begins to copy files. After this, you have no
more interaction with Setup (except to click Close to exit Setup when it is finished
copying files).
Setup cannot install an .mdf file (the data file for a database) to the local
computer if the destination folder or drive is compressed.
Server Option
When you choose the Server option, Microsoft Dynamics NAV 2013 Setup installs
the following component:
• Microsoft Dynamics NAV Server. This forms tier two in the Microsoft
Dynamics NAV three-tier product architecture. (RoleTailored client is
tier two, and SQL Server Database Components, together with SQL
Server or SQL Server Express, is tier three.)
• Microsoft Dynamics NAV Server Administration Tool. This tool is
discussed more in the "Microsoft Dynamics NAV Server" module in
this course.
You can configure the Server option to add or remove components by clicking
Customize under the Server option on the Choose an installation option pane.
Client Option
Installed Components
When you choose the Client option, Microsoft Dynamics NAV Setup installs the
following component:
The RoleTailored client forms tier one in the Microsoft Dynamics NAV three-tier
product architecture. (Microsoft Dynamics NAV Server is tier two, and SQL Server
Database Components, together with SQL Server or SQL Server Express, is tier
three.)
You can configure the Client option to install additional components by clicking
Customize under the Client option on the Choose an installation option pane.
If you install the Windows client by using any installation option other than the
Install Demo option, you must provide some initial configuration information to
enable the client to establish a connection with an instance of Microsoft Dynamics
NAV Server. Configuring the Windows client during and after installation will be
discussed later in this course.
The set of components installed with the Developer option includes components
a developer would typically use in designing Microsoft Dynamics NAV
applications for a customer company. It can also be used for administrative tasks
such as creating a database, managing users, and creating and assigning
permission sets.
Installed Components
When you choose the Developer Environment option, Setup installs the
following components:
Installed Components
This option differs from the other installation options that are available on the
Choose an installation option page in Setup. It is not a subset of the complete
list of available components for a particular type of user or configuration. Instead,
it is the full list of Microsoft Dynamics NAV components from which you can
select individual components to install. You can use this list to design your own
installation option.
When you run Microsoft Dynamics NAV 2013 Setup, you can install a predefined
component package. These packages are called Installation Options. If you have
to modify the set of components that are included in an existing installation
option, then you can click Customize under any installation option. If you want to
install components that are not all available in a predefined installation option,
then you can click Custom Components.
Note: You can customize the component list for the Client, Server, or
Developer installation options. However, only with the Developer option can you
choose from the complete set of Microsoft Dynamics NAV components. The range
of available components for the other two installation options is limited to
components that are relevant for that option.
In this procedure, you use the Component Selection page to select what to
install.
Note: To install Microsoft Dynamics NAV to a location other than the default
location, on the Customize the installation page, click Destination folder.
2. Select the components that you want to install on the Customize the
installation page.
Options are presented in a tree view. The tree has three levels:
- The top level shows only a single node, which is Microsoft Dynamics
NAV.
- The second level shows additional nodes that each identify a
component such as Client and Server. Some second-level nodes have
a plus sign on the left. Click the plus sign to expand the third level of
the hierarchy.
- The third level shows subcomponents for the selected second-level
component.
The component is
FIGURE 1.9: COMPONENT NODE SELECTION selected for
STATUS installation. Some or
none but not all of
the subcomponents
are also selected.
Only items on the
top or second level
can be inactive
because only these
nodes can have
subcomponents.
Neither the
component nor any
FIGURE 1.10: COMPONENT NODE SELECTION
of its subcomponents
STATUS
are selected for
installation.
With Microsoft Dynamics NAV Setup, you can preconfigure components before
you install Microsoft Dynamics NAV so that you do not have to configure them
after. You can use the Specify parameters page to associate configuration
settings with a component before installation.
1. In Setup, on the Specify parameters pane, supply all settings for the
listed components.
2. When you have finished configuring a component, click Apply to
validate your settings. If there are issues with the settings that you
have selected, then information about these issues is displayed on the
Problems were identified for this configuration pane.
After you have solved possible problems displayed on the Specify parameters
page, you can continue Microsoft Dynamics NAV Setup with the configuration
settings applied. The settings will only be valid for the current installation. When
you run Setup again, you will have to re-enter the settings.
After you finish customization and configuration of the components to install, you
can save this information to a Setup configuration file. You can use this file
together with Setup, either when you or another user runs Setup or when you run
a silent installation.
You can create a new setup configuration file or save a modified setup
configuration file on the Specify parameters page in Microsoft Dynamics NAV
Setup. This page is available when you run Setup unless you select Install Demo,
which skips all other Setup pages.
You now return to the Specify parameters page, where you can continue with
installing software. You can also close Setup if you only have to create a Setup
configuration file.
Instead of using the Setup wizard, you can run Microsoft Dynamics NAV 2013
Setup at a command prompt. You can do this by starting the Setup.exe on the
Microsoft Dynamics NAV installation media. (Setup.exe is in the root directory.)
The /config parameter includes the path and file name information for a Microsoft
Dynamics NAV 2013 Setup configuration file to load.
To edit a Setup configuration file, you can either use an XML editor or you can
load it into Microsoft Dynamics NAV Setup, make the desired modification, and
then save the file. You do not have to install any software during this process.
Module Review
Module Review and Takeaways
1. How many core components does the Microsoft Dynamics NAV 2013
architecture contain?
( )2
( )3
( )4
( ) unlimited
( ) It saves input data, data state, and data notifications only on the client
( ) It sends data, data state, and notifications from the business logic to
the client and back again.
( ) You can use Microsoft Dynamics NAV business web services only to
read data from the Microsoft Dynamics NAV database.
( ) You can generate SOAP web services and OData web services from
Microsoft Dynamics NAV page objects.
6. Which installation option will install all core components without additional
interaction with Setup?
( ) Developer Option
( ) Server Option
( ) Client Option
1. How many core components does the Microsoft Dynamics NAV 2013
architecture contain?
( )2
(√) 3
( )4
( ) unlimited
4. What is the role of the Data Binder component in the Microsoft Dynamics
NAV 2013 architecture?
( ) It saves input data, data state, and data notifications only on the client
(√) It sends data, data state, and notifications from the business logic to
the client and back again.
( ) You can use Microsoft Dynamics NAV business web services only to
read data from the Microsoft Dynamics NAV database.
(√) You can generate SOAP web services and OData web services from
Microsoft Dynamics NAV page objects.
6. Which installation option will install all core components without additional
interaction with Setup?
( ) Developer Option
( ) Server Option
( ) Client Option
Module Overview
Microsoft Dynamics® NAV 2013 takes advantage of the Microsoft software
platform. Therefore, all the software prerequisites of Microsoft Dynamics NAV
2013 are part of the Microsoft software stack. This software platform consists of
the following prerequisites for Microsoft Dynamics NAV 2013:
Objectives
Windows Server 2008 R2 Standard is the most robust Windows Server operating
system to date. With built-in, improved web and virtualization capabilities, it
increases the reliability and flexibility of the server infrastructure while helping to
save time and reduce costs. Powerful tools give you more control over the servers
and streamline configuration and management tasks. Plus, enhanced security
features work to harden the operating system to help protect your data and
network and provide a solid, highly dependable foundation for your business.
Windows Web Server 2008 R2 is a powerful web application and services platform.
Featuring Internet Information Services (IIS) 7.5 and designed exclusively as an
Internet-facing server, it offers improved administration and diagnostic tools to
help reduce infrastructure costs when you use it with different popular
development platforms. With included Web server and DNS server roles, in
addition to improved reliability and scalability, this platform helps you manage
the most demanding environments — from a dedicated web server to a whole
web server farm.
Windows HPC Server 2008 R2, the Microsoft third-generation HPC solution,
provides a comprehensive and cost-effective solution for harnessing the power of
high-performance computing. Out-of-the-box, world-class performance, and
scalability enable organizations of all sizes to rapidly deploy solutions ranging
from personal HPC workstations to large clusters spanning thousands of nodes.
Customers can lower both their operating and capital costs. Windows HPC Server
2008 R2 integrates easily with existing IT infrastructure to enable end-users to
access HPC resources by using familiar Windows-based technologies. With a
tightly integrated set of dedicated cluster and parallel development tools,
anchored around Visual Studio 2010, developers can build robust and scalable
HPC applications easily and quickly. Windows HPC Server 2008 R2 is
complemented by a rich ecosystem of SI, ISV, and OEM partners to make sure that
customers have access to the applications of their choice and the resources
required to successfully run them.
For more information about Windows Server 2008 and the different editions and
features in each edition, see http://www.microsoft.com/windowsserver/.
Designed and priced for small businesses with up to 75 users, Windows Small
Business Server 2008 delivers enterprise-class server technology in an affordable,
all-in-one solution. It helps protect your business information from loss by
performing automatic daily backups. Additionally, it helps users be more
productive with features such as email, Internet connectivity, internal websites
(collaboration), remote access, and file and printer sharing.
For more information about Microsoft Windows Small Business Server, see
http://www.microsoft.com/sbs/.
Note: Some core components and clients such as the Microsoft Dynamics
NAV Server and the Microsoft Dynamics NAV Portal Framework for SharePoint®
2010 can only be installed on 64 bit editions.
The Microsoft Dynamics NAV Server Administration Tool does not run on Windows
Server 2008. It does run on Windows Server 2008 R2.
SQL Server 2008 R2 delivers several breakthrough capabilities that will help
organizations to scale database operations with confidence, improve IT and
developer efficiency, and enable highly scalable and well-managed business
intelligence on a self-service basis for users.
The Microsoft SQL Server database engine is the core of this enterprise data
management solution. Additionally, Microsoft SQL Server offers analysis (business
intelligence with SQL Server Analysis Services), reporting (SQL Server Reporting
Services), integration (SQL Server Integration Services), and notification
functionalities. The figure The Microsoft SQL Server Platform shows the SQL Server
platform context:
Microsoft SQL Server 2008 and SQL Server 2008 R2 come in different editions
offering key functionalities to support any business size and IT strategy. SQL
Server 2008 editions are available for both 32-bit and 64-bit platforms. However,
Microsoft SQL Server 2008 R2 is available only for the 64-bit platform.
Note: Microsoft Dynamics NAV 2013 supports the 64-bit editions of both
Microsoft SQL Server 2008 and Microsoft SQL Server 2008 R2.
Workgroup Edition is the data management solution for small organizations that
need a database that has no limit on the size or number of users and can work as
a back end to small web servers and departmental or branch office operations.
To determine which SQL Server edition will work best for the Microsoft Dynamics
NAV 2013 implementation, review the features in each edition.
SQL Server 2012 will provide Mission Critical Confidence with greater uptime,
blazing-fast performance and enhanced security features for mission critical
workloads. SQL Server 2012 provides both Breakthrough Insight with managed
self-service data exploration and stunning interactive data visualizations
capabilities and Cloud On Your Own Terms by enabling the creation and
extension of solutions across on-premises and public cloud. SQL Server 2012 will
be available in three main editions:
• Enterprise Edition
• Business Intelligence Edition
• Standard Edition
For more information about SQL Server 2012 editions and the corresponding
features, please see http://www.microsoft.com/sqlserver/.
The .NET Framework has two main components: the common language runtime
and the .NET Framework class library. The common language runtime is the
foundation of the .NET Framework. You can think of the runtime as an agent that
manages code at execution time. It provides core services such as memory
management, thread management, and remoting, while also enforcing strict type
safety and other forms of code accuracy that promote security and robustness. In
fact, the concept of code management is a fundamental principle of the runtime.
Code that targets the runtime is known as managed code, whereas code that does
not target the runtime is known as unmanaged code. The class library, the other
main component of the .NET Framework, is a comprehensive, object-oriented
collection of reusable types that you can use to develop applications ranging from
traditional command-line or graphical user interface (GUI) applications to
applications that are based on the latest innovations provided by ASP.NET, such as
Web Forms and Web services.
When you install Microsoft Dynamics NAV Server, the service logs on by using the
NT Authority\Network Service account by default. This is a shared account that
can be used by other unrelated network services. Any users who have rights to this
account have rights to all services that are running on this account.
If you want to run the Microsoft Dynamics NAV Server under a domain user
account, you must:
Depending on various factors, the account may already have this ability. For
example, if you have already installed SQL Server and configured it to run under
the same account, SQL Server will have modified the account to log on as a
service. If not, you can enable the account by following this procedure:
1. Click Start, point to Run, type "mmc", and then click OK.
2. On the File menu, click Add/Remove Snap-in.
3. In Add/Remove Snap-in, click Add, and then, in Add Standalone
Snap-in, double-click Group Policy Object Editor.
4. In Group Policy Object, click Browse, browse to the Group Policy
object (GPO) that you want to modify, click OK, and then click Finish.
5. Click Close, and then click OK.
6. In the console tree, click User Rights Assignment.
To grant the necessary SQL Server database privileges to the service account, do
the following:
System Requirements
The minimum system requirements for the Microsoft Dynamics NAV 2013
Database Components for SQL Server are as follows:
Domain Description
SQL Server The database components run on the following
versions and editions of SQL Server:
• Microsoft SQL Server 2008 R2 Express,
Workgroup, Standard, or Enterprise (64-bit
editions only).
• Microsoft SQL Server 2008 Express,
Workgroup, Standard, or Enterprise (64-bit
editions only).
The 64-bit edition of SQL Server 2008 R2
Express is automatically installed before the
Microsoft Dynamics NAV 2013 database
components by Microsoft Dynamics NAV 2013
Setup if a supported SQL Server product is not
already installed on the destination computer.
System Requirements
The minimum system requirements for Microsoft Dynamics NAV Server are as
follows:
Domain Description
Operating system Microsoft Dynamics NAV Server runs only on
64-bit editions of the following versions of
Windows:
• Windows 7 Professional, Enterprise, or
Ultimate (64-bit editions only)
• Windows Server 2008 R2
• Windows Server 2008 (64-bit edition only)
• Windows Server 8
System Requirements
The minimum system requirements for the RoleTailored client are as follows:
Domain Description
Operating system The RoleTailored client runs on the following
versions of Windows:
• Windows 7 Professional, Enterprise, or
Ultimate (32-bit or 64-bit editions)
• Windows 8
• Windows Server 2008 R2
• Windows Server 2008 (32-bit or 64-bit
editions)
On 64-bit editions of Windows, the
RoleTailored client runs in WOW64 emulation
mode.
Note: Microsoft Dynamics NAV 2013 Setup can only install the Excel add-in if
Excel 2010 is present on the destination computer.
System Requirements
The minimum system requirements for the Web client are as follows:
Domain Description
Server component • Microsoft .NET Framework 4.0.
Microsoft Dynamics NAV Setup installs this
software if it is not already present on the
destination computer.
• Internet Information Server 7.0.
The minimum system requirements for the Microsoft Dynamics NAV Portal
Framework for SharePoint 2010 are as follows:
Domain Description
Operating system Microsoft Dynamics NAV Portal Framework for
Microsoft SharePoint 2010 runs on the
following versions of Windows:
• Windows Server 2008 R2.
• Windows Server 2008 (64-bit editions only).
System Requirements
The minimum system requirements for the Microsoft Dynamics NAV business web
services are as follows:
Domain Description
Additional software • Microsoft Visual Studio 2010 or Microsoft
Visual Studio 2008.
• Microsoft .NET Framework 4.0.
Note: You can use most web service-enabled products with Microsoft
Dynamics NAV web services. However, some products may be unable to deal with
more complex web service functionality and complex XML structures, such as
extension codeunits.
System Requirements
The minimum system requirements for the ADCS for Microsoft Dynamics NAV
2013 are as follows:
Domain Description
Additional software • MSXML version 6.0.
• Telnet or Microsoft Windows
HyperTerminal. VT100 Plug-in, which acts
as a virtual Telnet server and is required for
each computer on which you install ADCS.
• Microsoft Loopback Adapter.
Before he starts the installation of the data and the server tier, Tim creates a new
domain user account to use as a service account.
Detailed Steps
1. Create a service account in Active Directory.
a. Click Start, and then click Administrative Tools, Active Directory
Users and Computers.
b. In the left tree view pane, expand the contoso.com node.
c. In the left navigation pane, right-click the Managed Service
Accounts node.
d. In the shortcut menu that opens, select New > User.
e. In the New Object – User window, in the Full Name field, enter
NAV Service Account.
Detailed Steps
1. Grant the logon as a service permission.
a. Click Start, and then click Administrative Tools, Group Policy
Management.
b. In the left tree view pane, expand the contoso.com node.
c. In the left navigation pane, expand the Domains node.
d. Expand the Group Policy Objects node.
e. Right-click the Default Domain Controllers Policy object, and
then click Edit.
f. In the Group Policy Management Editor window, select
Computer Configuration, Policies, Windows Settings, Security
Settings, Local Policies, User Rights Assignment.
g. In the right side pane, double-click Logon as a service.
h. Select the Define these policy settings option.
i. Click Add User or Group.
j. In the Add User or Group window, enter
CONTOSO\NAV2013Svc, and then click OK.
k. Click Apply to add the account to the list of accounts that have
the logon as a service right.
l. Close the Group Policy Management Editor.
m. Close Group Policy Management.
As a first step in the installation, Tim installs the data tier on the DYN-NAV-SQL
server. Because it is not a production environment, Tim decides to install the SQL
Server Express Edition. He will use the CONTOSO\NAV2013svc account as service
account for the Microsoft Dynamics NAV Server.
Detailed Steps
1. Logon to the server as Administrator.
a. On the desktop, press CTRL+ALT+DEL.
b. In the Password field, enter the password for the Administrator
user:
"Pa$$w0rd".
c. Press ENTER (or click the arrow icon at the right side of the
Password field).
Detailed Steps
1. Insert the Microsoft Dynamics NAV 2013 product DVD in the DVD
drive.
a. Open the DVD drive by pressing the Eject button on the physical
drive.
b. Put the DVD on the tray.
c. Press the Close button to close the DVD drive.
Detailed Steps
1. Select the installation option.
a. In the Welcome to the Microsoft Dynamics NAV 2013 Setup
window, click Next.
b. On the Microsoft Software License Terms page, click I Accept.
c. On the Microsoft Dynamics NAV Setup page, click Choose an
Installation Option.
d. On the Choose an installation option page, click Custom.
e. On the Customize the installation page, click the icon at the left
of the SQL Server Database Components node.
f. Click Run All from My Computer.
g. Click Next.
h. On the Specify parameters page, in the Service Account field,
enter CONTOSO\NAV2013svc. (If the selected account does not
have the logon as a service right, an error message will be
displayed. In that case, you must assign the necessary permissions
to the specified account before you can continue.)
i. On the Specify parameters page, in the SQL Database field,
enter NAV_DEMO2013.
j. Click Apply.
If no SQL Server Edition is installed on the server or if the
NAVDEMO instance cannot be found, Setup will display a
warning message and will suggest installing SQL Server Express
Edition.
k. Click OK to start the installation.
Detailed Steps
1. Close Microsoft Dynamics NAV 2013 Setup.
a. Click Close to close the setup wizard.
Detailed Steps
1. Verify the installation result.
a. Click Start in the Windows taskbar.
b. Click All Programs, Administrative Tools, Services.
c. In the Services management console, browse the list of services in
the right side pane.
The list should now include a service named “SQL Server
(NAVDEMO)”
d. Check that the Status column for the Microsoft Dynamics NAV
Server is Started.
After he installs the SQL Server database components, Tim continues to install the
server tier on the DYN-NAV-SRV server.
Detailed Steps
1. Log on to the server as administrator.
a. On the desktop, press CTRL+ALT+DEL.
b. In the Password field, enter the password for the Administrator
user:
Pa$$w0rd
c. Press ENTER (or click the arrow icon at the right side of the
Password field.
Detailed Steps
1. Insert the Microsoft Dynamics NAV 2013 Product DVD in the DVD
drive.
a. Open the DVD drive by pressing the Eject button on the physical
drive.
b. Put the DVD on the tray.
c. Press the Close button to close the DVD drive.
Detailed Steps
1. Select the installation option.
a. In the Welcome to the Microsoft Dynamics NAV 2013 Setup
window, click Next.
Note: When you install the second and the third tier on the same computer,
Microsoft Dynamics NAV Setup will start in Maintenance mode. The setup interface
can be a bit different in that case. (See also the instructor notes.)
If you have chosen to install SQL Server Express Edition, go to step 13. If you have
installed another edition of Microsoft SQL Server
Detailed Steps
1. Close Microsoft Dynamics NAV 2013 Setup.
a. Select Close to close the setup wizard.
Detailed Steps
1. Verify the installation result.
a. Click Start in the Windows taskbar.
b. Click All Programs, Administrative Tools, Services.
c. In the Services management console, browse the list of services in
the right-side pane.
The list should now include a service named “Microsoft Dynamics
NAV Server [DynamicsNAV2013]”
d. Check that the Status column for the Microsoft Dynamics NAV
Server is Started.
Now that the data and the server tiers are available, Tim installs the RoleTailored
client on the DYN-NAV-CLT computer.
Detailed Steps
1. Log on to the server as Administrator.
a. On the desktop, press CTRL+ALT+DEL.
b. In the Password field, enter the password for the Administrator
user:
Pa$$w0rd.
c. Press ENTER (or click the arrow icon at the right side of the
Password field.
Detailed Steps
1. Insert the Microsoft Dynamics NAV 2013 product DVD in the DVD
drive.
a. Open the DVD drive by pressing the Eject button on the physical
drive.
b. Put the DVD on the tray.
c. Press the Close button to close the DVD drive.
Detailed Steps
1. Select the installation option.
a. In the Welcome to the Microsoft Dynamics NAV 2013 Setup
window, click Next.
b. On the Microsoft Software License Terms page, click I Accept.
c. On the Microsoft Dynamics NAV Setup page, click Choose an
Installation Option.
d. On the Choose an installation option page, click Client.
e. On the Customize the installation page, click the icon at the left
of the Client node.
f. Select Run from My Computer.
g. Expand the Client node.
h. Click the icon at the left of the Microsoft Office Excel Add-in
node.
i. Select Run from My Computer.
j. Click Next.
k. On the Specify parameters page, in the Server Name field,
enter the name of the computer running Microsoft Dynamics
NAV Server.
l. On the Specify parameters page, verify that the Service Name
field is set to DynamicsNAV2013.
m. Click Apply to start the installation.
Detailed Steps
1. Close Microsoft Dynamics NAV 2013 Setup.
a. Click Close to close the setup wizard.
Detailed Steps
1. Start the RoleTailored client.
a. Click Start in the Windows taskbar.
b. Click All Programs, Microsoft Dynamics NAV 2013.
Module Review
Module Review and Takeaways
Module Overview
This module describes the Microsoft Dynamics NAV Server, the middle tier of the
Microsoft Dynamics NAV 2013 architecture. It will introduce you to the Microsoft
Dynamics NAV security system. Next it explains the different interfaces that you
can use to administer a Microsoft Dynamics NAV 2013 deployment and what you
can do in each administration interface. Finally, it will discuss how to set up
Microsoft Dynamics NAV Server to support logon over a wide area network
(WAN).
Objectives
Microsoft Dynamics NAV Server supports different client types such as the
following:
Installation
• Server
• Developer
Microsoft Dynamics NAV Server is also part of the Install Demo option. However,
this installation option does not provide any user interaction during setup and will
install Microsoft Dynamics NAV Server with default components and settings.
Note: Microsoft Dynamics NAV Server can be included as part of the Custom
Components installation option. It cannot be installed as part of the Client
installation option.
Configuration
Microsoft Dynamics NAV Server can be configured either during setup or after
setup. During Setup you can customize the default settings for the Microsoft
Dynamics NAV Server on the Specify parameters page. The information that is
collected on this page is saved to a configuration file. Please realize that you
cannot handle all configuration tasks and parameters with Microsoft Dynamics
NAV Setup. For example, you can configure the instance of SQL Server and
database to connect to and the TCP/IP port to use for the client. However, you
cannot configure the users who must have access to the database.
The figure, Configuring the NAV Server Settings During Setup, shows an overview
of the default settings that can be customized.
When you run Microsoft Dynamics NAV 2013 Setup and install Microsoft
Dynamics NAV Server, you can provide configuration information (on the Specify
parameters page) that is then used as the configuration for the default Microsoft
Dynamics NAV Server instance.
After you install Microsoft Dynamics NAV Server, you can change any of the
settings that you provided during setup, or any of many other Microsoft Dynamics
NAV Server settings, by using either the Microsoft Dynamics NAV Server
Administration tool or the Microsoft Dynamics NAV PowerShell API. This is
discussed later in this module. Although it is not recommended, you can also
change configuration by manually editing the CustomSettings.config file in the
Microsoft Dynamics NAV Server installation folder. (By default, Microsoft
Dynamics NAV Server is installed in C:\Program Files\Microsoft Dynamics
NAV\70\Service\. However, you can customize the installation path during setup.)
The parameters that you see in the Specify parameters pane depend on which
components you have selected for configuration. When you install Microsoft
Dynamics NAV Server, you are prompted for settings that relate to Microsoft
Dynamics NAV Server itself and to the computer that is running SQL Server and
the instance to which Microsoft Dynamics NAV Server will connect.
Category/Parameter Description
Server/Send Feedback Specifies whether Microsoft Dynamics
NAV Server can collect basic and
anonymous information about your
hardware configuration and how you
use Microsoft Dynamics NAV Server.
Information is automatically sent to
Microsoft, which uses it to identify
trends and usage patterns and to
improve its software.
Yes enables the collection and
sending of this data.
Click Apply when you have finished entering values to return to the Specify
parameters page in Setup.
After you finish running Setup, you can modify Microsoft Dynamics NAV Server By
Using any of the methods described in the following section.
After you install Microsoft Dynamics NAV Server, you can change any of the
settings that you provided during Setup, or any of many other Microsoft
Dynamics NAV Server settings, in any of the following ways:
Note: After you modify a Microsoft Dynamics NAV Server setting, you must
restart the associated Microsoft Dynamics NAV Server instance before any changes
can take effect.
A Microsoft Dynamics NAV Server instance is the service through which the
various types of Microsoft Dynamics NAV clients interact with the Microsoft
Dynamics NAV SQL Server database. It is a distinct service in Windows and is the
middle tier between the client and the data tiers.
When you install Microsoft Dynamics NAV Server on a computer, there is a single
default instance. If your organization requires additional instances, then you can
either install Microsoft Dynamics NAV Server on additional computers or create
additional instances on the original Microsoft Dynamics NAV Server. You can
create (and manage) additional server instances by using the Microsoft Dynamics
NAV Server Administration tool. This procedure is described later in this module.
In a Microsoft Dynamics NAV Server instance, you can have multiple service types.
Each service type, such as client services or OData web services, corresponds to a
particular type of client that can connect to SQL Server through Microsoft
Dynamics NAV Server. The only type of client that does not have its own service
type is the Microsoft Dynamics NAV Portal Framework for Microsoft SharePoint®
2010. This is configured and managed separately. (This is described in the next
module.)
Be aware that restarting the server instance affects all service types within that
instance. For example, RoleTailored client for Windows users are disconnected,
and web service applications are interrupted. Therefore, if you plan to run
different types of services on a single computer running Microsoft Dynamics NAV
Server, run the different services types in separate service instances. Your
computer should have sufficient memory to run multiple service instances. For
example, if you plan to use both the client services and OData web services on a
single computer running Microsoft Dynamics NAV Server, then you should run the
client services in one server instance and the OData web services in a separate
server instance. Then, if you have to change an OData web services setting, then
you do not affect RoleTailored client for Windows users when you restart the
instance to enable the change.
After you have set up and configured Microsoft Dynamics NAV Server, there are
several steps that you can follow to improve security.
Login Account
When you install Microsoft Dynamics NAV Server, the default configuration
enables the service to log on by using the NT Authority\Network Service account.
If Microsoft Dynamics NAV Server and SQL Server are on different computers,
then we recommend that you configure Microsoft Dynamics NAV Server to log on
by using a dedicated Windows domain user account instead. This account should
not be an administrator either in the domain or on any local computer. A
dedicated domain user account is considered more secure because no other
services, and therefore no other users, have permissions for this account.
Disk Quotas
Client users can send files to be stored on Microsoft Dynamics NAV Server. So, we
recommend that administrators set up disk quotas on all computers that are
running Microsoft Dynamics NAV Server. This can prevent users from uploading
too many files and therefore make the server unstable. Disk quotas track and
control disk space use for NTFS volumes. This allows administrators to control how
much data each user can store on a specific NTFS volume. For more information
about disk quotas, see the Disk Quotas Technical Reference on Microsoft TechNet.
The Microsoft Dynamics NAV Setup program opens a port in the firewall on the
computer where you install Microsoft Dynamics NAV Server. By default, this is
port 7046. Setup does not limit who or what can connect to this port. To improve
security, you can consider limiting access to this port to a specific subnet. One way
is to use netsh, which is a command-line tool for configuring and monitoring
Windows-based computers at a command prompt.
For example, the following command limits access to port 7046 to the specified
addresses and subnets:
Server Administration
Microsoft Dynamics NAV 2013 provides four interfaces for administration:
Please be aware that not all the interfaces provide the same functions for
administration. Depending on the setting that you want to modify, you will have
to use a different server administration interface.
This lesson will first introduce you in the Microsoft Dynamics NAV security system.
Afterward, it will describe the different administration interfaces.
Data Security
In the Microsoft Dynamics NAV security system there are four levels of security:
• Database
• Company
• Object
• Record
Graphically, these can be represented as the layers, where the central layer is the
records in the database.
Database-Level Security
The first layer of security when you open Microsoft Dynamics NAV is database
security. After you start Microsoft Dynamics NAV and try to open the database,
your credentials are checked. If you are not granted permission to open the
database, you receive an error message.
Company-Level Security
After you have gained access to the database, you can select the company whose
information you want to reach.
To select a company, click the Microsoft Dynamics NAV menu and then click
Select Company. The Select Company window appears. This window lists all the
companies that are created in the current database and that you have access to. A
Microsoft Dynamics NAV database can contain several companies. Each company
can use its own tables and can also share tables with other companies.
Select the company that you want to access click OK, and the company data
becomes available. If there are companies in the database that you were not
granted permissions to access, you cannot see their data in this window.
Object-Level Security
When you open company data in Microsoft Dynamics NAV, your ability to access
information is determined by the security system.
The Microsoft Dynamics NAV security system consists of permission sets and
permissions that you can assign to users who have access to the company. The
permission sets determine the access that users have and the tasks that users can
perform on the objects that exist in the database.
The security system divides the database into the following objects.
Object Description
table Data The actual data that is stored in the tables.
table The tables themselves.
Page The pages that are used to view and enter
data.
The various permission sets that exist in Microsoft Dynamics NAV determine the
tasks that you can perform on these objects.
Record-Level Security
Record-level security lets you limit the access that a user has to the data in a table.
You do this by specifying that the user only has permission to access certain
records in the table.
You implement record-level security by setting security filters to records. You can
specify, for example, that a user can only read the records that contain
information about a particular customer. This means that the user cannot access
the records that contain information about other customers.
The maximum length of a security filter is 250 characters, but all the delimiters,
symbols, and operators such as, <, >, |, &, .., and = also count as characters and can
much reduce the length of the security filters that you can enter.
Also, security filters are concatenated and therefore the sum of all the security filters
applied to a user or a permission set cannot exceed 250 characters.
Record level security filters affect performance in the same way as any other filters
that are applied by the user. It is important that the record level security filters have
matching keys in tables that contain a large number of records, and that these keys
are used.
In Microsoft Dynamics NAV 2013, you use User objects to identify who can access
the Microsoft Dynamics NAV database. Before you can access the data in the
database, you have to authenticate by supplying valid credentials.
Windows
With this credential type, users are authenticated with their Windows credentials
(Active Directory®, the local workgroup, or just the local computer’s users). Before
you create a Windows user in the RoleTailored client, there must already be a
corresponding user in Windows. Windows users, because they are authenticated
through Windows, are not prompted for credentials when they start the
RoleTailored client.
Username
With this setting, the users are prompted for username/password credentials
when they start the RoleTailored client. These credentials are then validated
against Windows authentication by Microsoft Dynamics NAV Server. There must
already be a corresponding user in Windows. Security certificates are required to
protect the passing of credentials across a wide area network. This setting should
typically be used when the Microsoft Dynamics NAV Server is part of an
authenticating Active Directory domain but the computer where the RoleTailored
client is installed is not.
NavUserPassword
You do not have to create user logons in SQL Server before you create Microsoft
Dynamics NAV users.
You can create users that can be used with multiple credential types. For example,
you could create a user who would automatically be logged on to the
RoleTailored client without having to present credentials when the credential type
is Windows, but would be prompted for a user name (the value of the User Name
field) and a password when the credential type is Username.
You specify which credential type is used for a particular Microsoft Dynamics NAV
Server instance by configuring the relevant RoleTailored client for Windows
configuration file and Microsoft Dynamics NAV Server instance configuration.
Note: All users of a given Microsoft Dynamics NAV Server instance must use
the same credential type.
After you have defined a user, you can assign it to permission sets. A permission
set is a set of permissions for a set of objects in the Microsoft Dynamics NAV
database that you can assign to one or more users. By default, several predefined
permission sets are provided in the RoleTailored client. You can use these
permission sets as defined, modify them, or create your own permission sets.
The following permission sets have special definitions that you should note as you
implement permissions and security for RoleTailored client users.
SUPER (DATA) Can read, use, change, and delete all data.
You typically assign this permission set to
an accounting manager who has to work
with all data but does not have to change
Microsoft Dynamics NAV.
Indirect Permissions
When you define permissions, set the values for table permission to Yes, Indirect,
or blank, which indicates no permission. You can use indirect permission to use an
object only through another object.
For example, a user can have permission to run codeunit 80, Sales-Post. The Sales-
Post codeunit performs many tasks, including inserting records in table 21,
Customer Ledger Entry. When the user runs the Sales-Post codeunit, Microsoft
Dynamics NAV checks whether the user has permission to insert records in the
Customer Ledger Entry table. If the user does not have permission, then the
codeunit cannot complete its tasks, and the user receives an error message. If the
user has permission, the codeunit runs successfully.
So when a user has indirect permission to a table, that user can only modify the
table by running another object that has permission to modify the specific table.
The user can only modify a table when doing this from supported application
areas and cannot run the feature accidentally or maliciously by other methods.
For Microsoft Dynamics NAV to work correctly, the SUPER user must have the
appropriate permissions in SQL Server, such as system administrator or db_creator
permissions. When Microsoft Dynamics NAV 2013 Setup creates the CRONUS
International Ltd. demonstration database in SQL Server, the current user is added
as a database user with db_owner permissions.
After you have created users and assigned them to permission sets, you can add
users to profiles. This links them to Role Centers in the RoleTailored client.
Profiles are collections of Microsoft Dynamics NAV users who share the same Role
Center. Profiles can be created or edited in the RoleTailored client.
A Role Center is a home page in Microsoft Dynamics NAV 2013 for all users of a
profile. It is a type of page on which you can put different parts. Each part is a
container in which you can host other pages or predefined system parts, such as
an Outlook® part or parts for adding tasks, notifications, or notes. For example,
the Order Processor Role Center is configured to reflect the tasks and priorities of
an order processor. In the RoleTailored client, the profile that is used appears in
the header of the Role Center’s main content area.
Configuration
• Navigation pane
• FactBoxes
• Home parts
• Lists
• Task pages
• Action menus
• Report menus
To configure a Role Center, you must start the RoleTailored client for Windows in
configuration mode. This is described later in this module.
Personalization
The Order Processor Role Center can then be further personalized on a single
computer to meet the needs of a person (end-user) who is performing the job as
an order processor. This person can personalize the Role Center by:
• Resizing columns.
• Changing the contents of drop-down menus.
• Customizing the navigation pane.
• Adding or removing FactBoxes.
• To clear the configuration table, open the Profile Card window, click
Actions, and then select Clear Configured Pages.
• To clear the personalization table, open the Profile Card window,
click Actions, and then select Clear Personalized Pages.
RoleTailored Client
With the RoleTailored client, you can create new and modify existing users,
profiles, and permission sets (which determine access to specific objects).
After you have created users and assigned them to permission sets, you can add
users to profiles. This aligns them with Role Centers in the RoleTailored client.
RoleTailored client users can be managed from the Users page. To access this
page, click the Departments page and then click Administration > IT
Administration > General > Users. You can also use this page to link permission
sets to users.
Permission sets can be administered from the Permission Sets page. To access
this page, click the Departments page and then click Administration > IT
Administration > General > Permission Sets.
To create new profiles or edit existing profiles, you can use the Profiles page. To
access this page, click the Departments page and then click Administration >
Application Setup > RoleTailored Client > Profiles.
Note: You can also open the Users page by typing “Users” in the Search box
on your home page in the RoleTailored client and then pressing Return.
Demonstration Steps
Demonstration Steps
Demonstration Steps
Demonstration Steps
If the default permission sets that are provided with the RoleTailored client for
Windows are insufficient or unsuitable for your organization, then you can create
new permission sets.
If the individual object permissions that define a permission set are not suitable,
then you can edit a permission set
Demonstration Steps
A table can contain a FlowField that generates sums based on values that are
stored in another table. In this case, users must have permission to read both
tables or they cannot read the first table.
Demonstration Steps
You use the Profile card to create profiles for end-users. Each profile is associated
with a Role Center. Profiles are typically based on job titles in a company.
The procedure for modifying an existing profile is the same, except you select an
existing profile in the Profiles page instead of clicking New (step 3).
Demonstration Steps
You use the User Personalization window in the RoleTailored client for Windows
to assign a user to a profile.
Demonstration Steps
Development Environment
You use the Development Environment to create and manage Microsoft Dynamics
NAV 2013 databases, to create and manage Microsoft Dynamics NAV companies,
and to upload or change Microsoft Dynamics NAV licenses.
To open the Development Environment, click Start > All Programs > Microsoft
Dynamics NAV 2013 Development Environment. On startup, the Development
Environment shows the Object Designer.
Unlike the RoleTailored client, the Development Environment will connect directly
to a Microsoft Dynamics NAV SQL Server database. You can connect to different
databases without having to restart other core components.
In the Object Explorer pane in SQL Server Management Studio, follow these
steps after you connect to the instance of Microsoft Dynamics NAV SQL Server:
1. Expand the Security node, right-click Logins, and select New Login.
If the administrator already has a Login, right-click the user and select
Properties. Then go to step 4.
2. In the Login – New box, select Search.
3. In the Select User or Group box, select a valid Active Directory user.
To grant the db_owner role on a Microsoft Dynamics NAV database in SQL Server
Management Studio, follow these steps:
The license file must be uploaded to SQL Server by using the Microsoft Dynamics
NAV Development Environment. You can upload a license file either for all
databases on an instance of SQL Server or for a specific database only.
Please be aware that on a computer that is running any version of Windows with
User Access Control enabled, you must start the Development Environment with
administrator user rights. Click Start, right-click Microsoft Dynamics NAV
Development Environment, and then click Run as administrator.
The following procedure describes how to upload the license file to SQL Server:
To save the license file in the database, you must have the Per Database license
granule (2020) in your license. You must also have the necessary roles and
permissions in SQL Server, as described earlier in this lesson.
Database Management
Databases can be managed from the Database menu (which is under the File
menu).
Note: Only members of the Administrator group on the computer can use the
Microsoft Dynamics NAV Server Administration tool.
The NAV Server Administration tool can be used to perform the following tasks:
Although Microsoft Dynamics NAV Server will run on Windows Server 2008, the
Microsoft Dynamics NAV Server Administration tool will only run on Windows
Server 2008 R2.
To start the tool, on the Windows taskbar, click Start > All Programs > Microsoft
Dynamics NAV Administration.
Note: Alternatively, you can click Start, and in the Search programs and
files box, enter Microsoft Dynamics NAV Administration, and then click the
related link.
FIGURE 3.4: THE MICROSOFT DYNAMICS NAV SERVER ADMINISTRATION TOOL STARTED FROM
WINDOWS START MENU
Microsoft Dynamics NAV Server Administration tool is divided into three panes:
• The left pane shows a tree view that lists all Microsoft Dynamics NAV
Server computers that you are administering from this computer and
all Microsoft Dynamics NAV Server instances on those computers. The
first time that you run Microsoft Dynamics NAV Server Administration
tool, the view is collapsed. You only see the local server without any
Microsoft Dynamics NAV Server instances listed. To display any
instances on the server, you can click the triangle to the left of the
local computer. Next, you can right-click the default instance to
display settings for that instance in the center pane.
• The center pane shows information about the item that you have
selected in the left pane. When the selected item is a computer that is
running Microsoft Dynamics NAV Server, the center pane shows a list
of Microsoft Dynamics NAV Server instances on that computer and
the status of each instance (running or stopped), and the name of the
account under which the instance is running. When the item selected
in the left pane is a Microsoft Dynamics NAV Server instance, the
center pane shows the settings for that instance.
• The right pane displays available actions for the object that is selected
in the left pane. These options differ, depending on whether a
Microsoft Dynamics NAV Server or a Microsoft Dynamics NAV Server
instance is selected. For more information, see Administration Tool
Actions.
If you start the tool from MMC, you can administer multiple Microsoft Dynamics
NAV Server computers from a single instance of Microsoft Dynamics NAV Server
Administration tool. This is described next.
The following procedure describes how to start the tool from Microsoft
Management Console (MMC) and to connect to the local Microsoft Dynamics
NAV Server.
1. On the local Microsoft Dynamics NAV Server, click Start > Run, and
then enter the following command:
mmc
FIGURE 3.5: THE MICROSOFT DYNAMICS NAV SERVER ADMINISTRATION TOOL STARTED FROM
MMC
When you close MMC, you are prompted to save your settings to a Microsoft
Management Console (.msc) file. If you save your settings (for example to the
Windows Desktop), then you can use this file to open MMC with the Microsoft
Dynamics NAV Server already listed.
The following procedure describes how to enable the remote Microsoft Dynamics
NAV Server administration on a Microsoft Dynamics NAV Server.
1. On the local Microsoft Dynamics NAV Server, click Start > Run, and
then enter the following command:
mmc
Now you see multiple Microsoft Dynamics NAV Server computers listed in the tree
view pane of Microsoft Dynamics NAV Server Administration tool:
Microsoft Dynamics NAV Server Administration tool actions are tasks that are
listed in the right pane of the tool. The actions that are available vary, depending
on whether you have selected a Microsoft Dynamics NAV Server or a Microsoft
Dynamics NAV Server instance in the left pane.
You can perform these tasks when you select a Microsoft Dynamics NAV Server in
the tree view pane.
Action Comment
Connect to Another With this action, you can connect to
Computer another Microsoft Dynamics NAV Server.
When you select this option, the Connect
to another computer box appears. In the
box, type the name of the Microsoft
Dynamics NAV Server That You want to
administer in the Server Name box, and
then click OK.
You can perform the following tasks when you select a Microsoft Dynamics NAV
Server instance in the tree view pane.
Action Comment
Configuration When you select this option, you can view
the configuration settings for the selected
instance in the middle pane. To modify the
settings, click Edit at the bottom of the
middle pane. To save the modified settings,
click Save. To discard the changes, click
Cancel. When you change settings, you
must restart the server instance.
You can perform the following tasks when you select a Microsoft Dynamics NAV
Server instance in the middle pane.
Action Comment
Remove This removes the selected server instance
(and the underlying Windows service).
When you install Microsoft Dynamics NAV Server on a computer, there is at first a
single default instance. The default instance is identified as Microsoft Dynamics
NAV Server. If your organization requires additional instances, then you can either
install Microsoft Dynamics NAV Server on additional computers or create
additional instances on the original Microsoft Dynamics NAV Server.
You can use the Server Administration tool to manage existing server instances
and create new instances.
The following procedure describes how you can create a new server instance on
the local Microsoft Dynamics NAV Server.
Client Services Port Enter the number of the listening port for
RoleTailored client for Windows
connections.
SOAP Services Port Enter the number of the listening port for
SOAP web services connections.
OData Services Port Enter the number of the listening port for
OData web services connections.
Remember that you have to specify a value for all service types (Client, SOAP,
OData, and Management), even if you want to create a server instance for specific
service types only.
5. Supply the required values in the Log on Account section, and then
specify the computer account that will run the instance in the Service
Account field. You can select the Network Service account or a
domain user account. If you select Network Service in the Service
Account field, then you do not have to specify values for the User
name, Domain, and Password fields.
Service Account Select the account type under which the server
instance will run. You can select either Network
Service or User Account.
Note: Using the Network Service account to run a Microsoft Dynamics NAV
Server instance is considered less secure because this account is a shared account
that can be used by other unrelated network services. Any user who has rights to
the Network Service account also has rights to other services that are running on
this account. Running Microsoft Dynamics NAV Server instances under a dedicated
domain user account, which is an account that is used only for Microsoft Dynamics
NAV components, can be more secure but requires a domain administrator to set
up and provision the account.
When you create additional server instances on a Microsoft Dynamics NAV Server,
a subfolder will be created under C:\Program Files\Microsoft Dynamics
NAV\70\Service\Instances\ for each instance. This subfolder will have the same
name as the server instance and will contain the CustomSettings.config file for the
server instance.
After you have created a new server instance, you can also configure it using the
Microsoft Dynamics NAV Server Administration tool.
After you have installed a Microsoft Dynamics NAV Server instance, you can use
the Server Administration tool to (re)configure the settings for the server instance.
To change these settings, start the Microsoft Dynamics NAV Server Administration
tool, connect to the server that you want to administer, and then select the server
instance to configure.
The following table shows the parameters that you can change:
Default: UTC
Session Event Table The day of the week and the start time
Purge Frequency that the session event table will be
queried for purging. The value of the
DayOfWeek ranges from 0 (Sunday) to
6. The value of Time should be a valid
time of the day expressed in the format
hh:mm. hh is hours measured on a 24-
hour clock, and mm is minutes.
OData Services Default Company The default company that is used if the
user has never used the Microsoft
Dynamics NAV client.
Remember that you must restart the Microsoft Dynamics NAV Server instance for
the new settings to take effect.
Powershell API
The PowerShell API enables you to manage licenses and server settings, to create
and remove server instances and to manage users, and permission sets.
To start a PowerShell administration session, click Start > All Programs >
Microsoft Dynamics NAV 2013 PowerShell Session.
To then see the commands that are available for administering Microsoft
Dynamics NAV, type the following command at the PowerShell prompt:
Get-Command *NavServer*
To get help on syntax and options for a specific command, type the following
command:
For example, to get Help about the Get-NAVServerInstance command, type the
following:
Get-help Get-NAVServerInstance
For more information about the different PowerShell commands, see the
“Microsoft Dynamics NAV PowerShell API” module.
This lesson also discusses some performance benchmarks that you should consider
before you implement a WAN connection. Finally it will describe how to
implement security certificates in test and production environments.
Deployment Scenario
Microsoft Dynamics NAV 2013 not only supports multiple client types, it also
enables you to implement a secure RoleTailored client for Windows connection to
Microsoft Dynamics NAV Server over a wide area network (WAN).
In this deployment scenario, the RoleTailored client for Windows and Microsoft
Dynamics NAV Server can be in the same or separate Active Directory domains.
The following illustration shows how a computer that is running the RoleTailored
client for Windows in one Active Directory domain can connect to an instance of
Microsoft Dynamics NAV Server in another domain.
Certificates
When you set up a remote access deployment, we strongly recommend that you
protect your WAN connections with security certificates.
You can use service certificates to help secure RoleTailored client for Windows
connections over a wide area network (WAN). Microsoft Dynamics NAV 2013 can
support the following configurations:
This topic describes the chain trust configuration, which is the more secure option.
Note: Implementing remote logon requires changing the credential type for
the Microsoft Dynamics NAV Server instance involved. Consider using a dedicated
Microsoft Dynamics NAV Server instance for remote connections so that this
change does not affect local users.
However, before you start deployment, you should determine whether users fit
the performance profile for running the RoleTailored client for Windows over a
WAN.
Performance Considerations
You can use the information in this section to help decide whether the
RoleTailored client for Windows over WAN option is appropriate for your
organization. Specifically, this section should help you answer the following
questions:
There are two primary scenarios for running the RoleTailored client for Windows
over a WAN.
• Each user has a download speed of at least 1 megabit per second and
an upload speed of at least 200 kilobits per second.
• Network latency is less than 200 milliseconds.
Latencies that ranged from 0 to 600 milliseconds were also tested. This range
approximates connections from a fast LAN connection to a slow ADSL connection.
The range also approximates a fast satellite connection. This would be between
500 and 1000 milliseconds.
In the Throughput/Latency graph, the x-axis from left to right shows the round-
trip time added to the connection in milliseconds. The line that runs from the
lower-left to the upper-right shows the latency, or response times. The other lines
show the maximum kilobytes received per second, average kilobytes received per
second, maximum kilobytes sent per second, and the average kilobytes sent per
second.
The graph shows that latency linearly affects the response time. It also shows that
a larger latency affects the ability to use the available bandwidth and that the
"elbow" or optimum latency is between a latency of 100 and 150 milliseconds.
In the Bandwidth per User graph, the x-axis shows bandwidth per user, and the y-
axis shows the response time for the 10 sales orders. On the bandwidth per user
axis, 5/1 represents a 50-megabit upload and 10-megabit download connection,
and 2/0.5 represents a 20-megabit download and 0.5 megabit upload connection.
The graph shows that the "elbow" or optimal bandwidth is between 1.50/0.3
megabits and 2/0.1. Additional tests show that the determining factor for these
connections is the upload speed instead of download speed, and that the elbow is
between 0.1 and 0.3 megabits per user for the tested scenarios.
Note: The term Secure Sockets Layer (SSL) is not used in this topic to describe
the implementations. Although these implementations do use the public and private
key infrastructure of SSL and SSL certificates, they use Windows Communication
Foundation (WCF) transport-level security (TLS) over the TCP/IP protocol instead of
https. This means that they are not strict SSL implementations.
Prerequisites
You create and install a root certification authority (CA) and a server certificate on
the computer that is running Microsoft Dynamics NAV Server. Next, you create a
certificate revocation list for the root certification authority and then install the
certificate revocation list on the computer that is running Microsoft Dynamics
NAV Server. (A certificate revocation list is required because WCF applications
check the revocation list when validating certificates.) After that, you create and
install the test certificate for the Microsoft Dynamics NAV Server service and you
grant the Microsoft Dynamics NAV Server service account access to the
certificate’s private key. Finally, you will reconfigure Microsoft Dynamics NAV
Server to support remote logon.
b. When you are prompted, enter the password that you used to
create the root CA.
b. When you are prompted, enter the password that you used to
create the root CA. In this case, "Pa$$w0rd".
c. Select the Trusted Root Certificate Authorities node, and then
refresh the snap-in.
Most enterprises and hosting providers have their own infrastructure for issuing
and managing certificates. You can also use these certificate infrastructures. The
only requirement is that the service certificates must be set up for key exchange
and therefore must contain both private and public keys.
Prerequisites
After you have installed the root CA and the service certificate on the computer
that is running Microsoft Dynamics NAV Server, you must grant access to the
service account that is associated with the server so that the service account can
access the service certificate’s private key. You must also change the configuration
settings for Microsoft Dynamics NAV Server to enable remote logins.
Demonstration Steps
NAS Services
NAV Application Server
If you have applications that used the NAS available with earlier version of
Microsoft Dynamics NAV, you should now be able to use these applications with
Microsoft Dynamics NAV 2013 without significant modifications. Modifications are
required for applications that use COM, because server-side COM is no longer
supported in Microsoft Dynamics NAV 2013. This is because not all COM
components can execute on 64-bit operating systems.
NAS services can help you manage and optimize access to the Microsoft Dynamics
NAV database. NAS Services in Microsoft Dynamics NAV Server support
applications such as ADCS, Microsoft Office Outlook Integration, and the NAV Job
Queue.
There are multiple reasons for running NAS services sessions in dedicated
Microsoft Dynamics NAV Server instances:
You configure NAS services by using the settings on the NAS Services tab in
Microsoft Dynamics NAV Server Administration tool:
Parameter Description
Company Specifies the Microsoft Dynamics NAV
company whose data opens when NAS
services start. The company name is case-
sensitive.
• StartNAS
NAS services sessions execute in the time zone specified by the Services Default
Time Zone parameter (on the General tab) for Microsoft Dynamics NAV Server.
Tim has successfully finished his first installation of Microsoft Dynamics NAV 2013.
During the installation, he also gained some experience with Microsoft Dynamics
NAV Setup.
As a next step, he wants to redo the installation and set up a production and test
environment. For this new installation, he will not use the SQL Server Express
Edition; he will use an existing instance of SQL Server to install the databases. Next
he will install two Microsoft Dynamics NAV Server instances, one for the
production and one for the test environment. Finally he will disable both SOAP
and OData services for the two environments.
Tim starts by installing the NAV database to an existing instance of SQL Server.
This instance is the default instance of SQL Server.
Detailed Steps
1. Log on to the server as Administrator.
a. On the Desktop, press CTRL+ALT+DEL.
b. In the Password field, type the password for the Administrator
user:
"Passw0rd".
c. Press ENTER (or click the arrow icon at the right of the Password
field.
Detailed Steps
1. Select the installation option.
a. In the Welcome to the Microsoft Dynamics NAV 2013 Setup
window, click Next.
b. On the Microsoft Software License Terms page, click I Accept.
c. On the Microsoft Dynamics NAV Setup page, click Choose an
Installation Option.
d. On the Choose an installation option page, click Custom.
e. On the Customize the installation page, click the icon at the left
of the SQL Server Database Components node. The node will
expand.
f. Click the icon at the left of the Demo Database node.
g. Select Run from My Computer.
h. On the Customize the installation page, click Next.
i. On the Specify parameters page, clear the SQL Server Instance
field.
j. On the Specify parameters page, enter NAV_DEMO2013_LIVE in
the SQL Database field.
k. On the Specify parameters page, verify that the Replace
Existing Database field is set to No.
l. Click Apply to start the installation.
Detailed Steps
1. Start SQL Server Management Studio (SSMS).
a. On the Windows Taskbar, click Start > All Programs >
Microsoft SQL Server 2012 > SQL Server Management
Studio.
b. In the Connect to Server box, in the Server Type field, click
Database Engine.
c. In the Server name field, enter the name of the SQL Server to
which you want to connect.
Detailed Steps
1. Start SQL Server Management Studio.
a. On the Windows Taskbar, click Start > All Programs >
Microsoft SQL Server 2012 > SQL Server Management
Studio.
b. In the Connect to Server box, in the Server Type field, select
Database Engine.
c. In the Server name field, enter the name of the SQL Server to
which you want to connect.
d. In the Authentication field, select Windows Authentication.
e. Click Connect.
Detailed Steps
1. Back up the production database.
a. In the Object Explorer pane, expand the server node.
b. In the Object Explorer pane, expand the Databases node.
c. Right-click the NAV_DEMO2013_LIVE database, and then click
Tasks > Back Up.
d. In the Back Up Database – NAV_DEMO2013_LIVE window, on
the General pane, check that the NAV_DEMO2013_LIVE database
is selected in the Source – Database field.
e. Check that the Backup type is set to Full.
Detailed Steps: When you make a backup of a database, verify that the
backup destination file already exists before you start the actual backup procedure.
Then, you will not accidentally overwrite or modify an existing backup set.
Detailed Steps
1. Restore the backup (test environment).
a. In SQL Server Management Studio, in the Object Explorer pane,
right-click the Databases node and then select Restore
Database.
b. In the Restore Database window, under Source, select the
Device option.
c. Click the button at the right of the Device option.
d. In the Select backup devices window, in the Backup Media
field, select File.
e. In the Select backup devices window, click Add.
f. In the Locate Backup File window, select the backup file (*.BAK)
you created in the previous task.
g. Click OK to close the Locate Backup File window.
h. Click OK to close the Select backup devices window.
Detailed Steps
1. Check the SQL Server databases.
a. In the Object Explorer window, right-click the Databases node
and then select Refresh.
Detailed Steps
1. Add a login for the service account.
a. In SQL Server Management Studio, expand the Security node.
b. Right-click the Logins node and select New Login.
c. In the Login – New dialog box, click Search.
Now the databases for the production and test environments are ready. Tim will
install the Microsoft Dynamics NAV Server software on the SQL Server. At the
same time, he will install the Microsoft Dynamics NAV Administration tool so he
can manage the configuration of the server instance. He starts with the server
instance for the production environment.
Detailed Steps
1. Log on to the server as Administrator.
a. On the Desktop, press CTRL+ALT+DEL.
b. In the Password field, enter the password for the Administrator
user:
Passw0rd
c. Press ENTER (or click the arrow icon at the right of the Password
field).
Detailed Steps
1. Insert the Microsoft Dynamics NAV 2013 product DVD in the DVD
drive.
a. Open the DVD drive by pressing the Eject button on the physical
drive.
b. Put the DVD on the tray.
c. Press the Close button to close the DVD drive.
Detailed Steps
1. Select the components to install.
a. In the Welcome to the Microsoft Dynamics NAV 2013 Setup
window, on the Maintenance page, select Add or remove
components.
b. On the Customize the installation page, click the icon at the left
of the Server node.
c. Select Run All from My Computer.
d. On the Customize the installation page, click the icon at the left
of the Administration tool node.
e. Select Run from My Computer.
f. On the Customize the installation page, click Next.
g. On the Specify parameters page, in the Service Name field,
enter DynamicsNAVLive.
Detailed Steps
1. Open Services panel.
a. On the Windows Taskbar, click Start > All Programs >
Accessories > System Tools > Control Panel > System and
Security > Administrative Tools > Services.
b. In the right pane, scroll down the list of services and check for a
service called Microsoft Dynamics NAV Server
[DynamicsNAVLive].
By default services are sorted alphabetically by Name (in ascending order). If this
is not the case, you can click the header label of the Name column to change the
sorting. You can also press M on your keyboard to move immediately to the first
service whose name starts with M.
Next in Tim’s planning is a step to create the Microsoft Dynamics NAV Server
instance for the test environment. Tim will use the Microsoft Dynamics NAV
Administration tool to do this.
Detailed Steps
1. Start Microsoft Dynamics NAV Administration tool.
a. On the Windows Taskbar, click Start > All Programs >
Microsoft Dynamics NAV Administration.
Detailed Steps
1. Create a new server instance.
a. In the left pane, select Microsoft Dynamics NAV (local).
b. In the right pane, click Add Instance.
c. In the Server Instance window, in the Server Instance field,
enter DynamicsNAVTest.
d. In the Management Services Port field, type “7055”.
e. In the Client Services Port field, type “7056”.
f. In the SOAP Services Port field, type “7057”.
g. In the OData Services Port field, type “7058”.
h. In the Service Account field, select User Account.
i. In the User Name field, type “NAV2013Svc”.
j. In the Domain field, type “CONTOSO”.
k. In the Password field, type the password for the NAV2013svc
account.
l. Type the password again in the Confirm Password field.
m. Click OK to close the Server Instance window.
Detailed Steps
1. Configure the server instance.
a. In the left pane of the Microsoft Dynamics NAV Administration
tool, double-click Microsoft Dynamics NAV (local).
b. In the left pane, select the DynamicsNAVTest instance. The
configuration settings will now appear in the middle pane.
c. At the bottom of the middle pane, click Edit.
d. On the General tab, change the Database Name to
NAV_DEMO2013_TEST.
e. Click Save to confirm the new settings.
Detailed Steps
1. Start the server instance.
a. In the left pane of the Microsoft Dynamics NAV Administration
tool, click Microsoft Dynamics NAV (local).
b. In the middle pane, right-click the DynamicsNAVTest instance,
and then click Start.
When he configures the new server instance for the test environment, Tim notices
that not only are client services enabled, but also SOAP web services and OData
web services. Because these service types are currently not used, Tim decides to
disable the service types in both production and test environment.
Detailed Steps
1. Start Microsoft Dynamics NAV Administration.
a. On the Windows Taskbar, click Start > All Programs >
Microsoft Dynamics NAV Administration.
A recent meeting has pointed out that people in the customer service team spend
lots of time executing tasks manually. Processes could be optimized if some
manual tasks could be scheduled and executed automatically. Because of this
meeting, Marie, the customer service manager, contacts Tim to check if this is
possible and what has to be done.
Tim tells Marie that he can do this by using the Job Queue functionality in
Microsoft Dynamics NAV. Tim will enable the Job Queue in the test environment.
To do this, he has to set up NAS services. He decides to create a new server
instance, so he can easily start and stop the Job Queue functionality without
affecting the other users in the test environment.
Detailed Steps
1. Start Microsoft Dynamics NAV Administration tool.
a. On the Windows Taskbar, click Start > All Programs >
Microsoft Dynamics NAV Administration.
Detailed Steps
1. Create a new server instance.
a. In the left pane, select Microsoft Dynamics NAV (local).
b. In the right pane, click Add Instance.
c. In the Server Instance window, in the Server Instance field, type
“DynamicsNAVTest-NAS”.
d. In the Management Services Port field, type “7065”.
e. In the Client Services Port field, type “7066”.
f. In the SOAP Services Port field, type “7067”.
g. In the OData Services Port field, type “7068”.
h. In the Service Account field, select User Account.
Detailed Steps
1. Configure the server instance.
a. In the left pane of the Microsoft Dynamics NAV Administration
tool, double-click Microsoft Dynamics NAV (local).
b. In the left pane, select the DynamicsNAVTest-NAS instance. The
configuration settings will now appear in the middle pane.
c. At the bottom of the middle pane, click Edit
d. On the General tab, change the Database Name to
NAV_DEMO2013_TEST.
e. Click Save to confirm the new settings.
Detailed Steps
1. Configure NAS services.
a. In the left pane of the Microsoft Dynamics NAV Administration
tool, double-click Microsoft Dynamics NAV (local).
b. In the left pane, select the DynamicsNAVTest-NAS instance. The
configuration settings will now appear in the middle pane.
c. At the bottom of the middle pane, click Edit.
d. On the NAS Services tab, change the Company Name to
CRONUS International Ltd.
e. In the Startup Codeunit field, type “1”.
f. In the Startup Method field, type “NASHandler”.
g. In the Startup Argument field, type “JOBQUEUE”.
h. Click Save to confirm the new settings.
Detailed Steps
1. Disable client services.
a. On the Client Services tab, clear the Enable Client Services check
box.
Detailed Steps
1. Disable SOAP services.
a. On the SOAP Services tab, clear the Enable SOAP Services
check box.
Detailed Steps
1. Disable OData services.
a. On the OData Services tab, clear the Enable OData Services
check box.
Detailed Steps
1. Save settings.
a. Click Save to confirm the new settings.
Detailed Steps
1. Restart server instances
a. In the left pane of the Microsoft Dynamics NAV Administration
tool, click Microsoft Dynamics NAV (local).
b. In the middle pane, right-click the DynamicsNAVTest-NAS
instance, and then click Restart.
c. In the Change Microsoft Dynamics NAV Server Instance Status
box, click OK.
Detailed Steps
1. Verify service status in Microsoft Dynamics NAV Administration.
a. In the left pane of the Microsoft Dynamics NAV Administration
tool, click Microsoft Dynamics NAV (local).
b. In the middle pane, check that the Status column for the
DynamicsNAVTest-NAS instance is set to Running.
Module Review
Test Your Knowledge
1. To create a new company in the Microsoft Dynamics NAV database, you must
use:
( ) You copy the Microsoft Dynamics NAV Server software from the
product DVD to a different folder, and edit the CustomSettings.config
file.
( ) You cannot install multiple server instances on the same . Each server
instance must be installed on a separate server.
( ) 2407
( ) 5555
( ) 7045
( ) 7046
6. To create users, profiles and permission sets in Microsoft Dynamics NAV 2013,
you must use:
1. To create a new company in the Microsoft Dynamics NAV database, you must
use:
( ) You copy the Microsoft Dynamics NAV Server software from the
product DVD to a different folder, and edit the CustomSettings.config
file.
(√) You use the Microsoft Dynamics NAV Administration tool to create
additional server instances.
( ) You cannot install multiple server instances on the same . Each server
instance must be installed on a separate server.
( ) 2407
( ) 5555
( ) 7045
(√) 7046
6. To create users, profiles and permission sets in Microsoft Dynamics NAV 2013,
you must use:
Module Overview
In the previous modules, you have seen that Microsoft Dynamics NAV 2013
supports multiple client types. All client types can be installed by using Microsoft
Dynamics NAV 2013 Setup.
Although the Development environment and NAS services are also considered as
Microsoft Dynamics NAV 2013 clients, they are not described in this module. The
module "Microsoft Dynamics NAV Server" describes how to install and manage
NAS services. The Development environment is described in the module "The
Developer Environment".
Microsoft Dynamics NAV 2013 uses the Microsoft software platform. Therefore, all
the software prerequisites of Microsoft Dynamics NAV are part of the Microsoft
software stack. For a list of software requirements for the different client types, see
the module "Installation Requirements."
Objectives
However, when you deploy Microsoft Dynamics NAV 2013, you typically do not
run the Install Demo option on each client computer in the network because you
do not have to have a data and a server tier on each client computer. Instead, you
install one of the client types on the client computers and then connect to the
server tier.
The RoleTailored client for Windows (and the other client types) can be installed
by using Microsoft Dynamics NAV 2013 Setup. When you install Microsoft
Dynamics NAV 2013, you can select from several prepackaged installation options
(each designed for a typical use or type of user) or you can perform a customized
installation that fully meets your needs.
To install the RoleTailored client for Windows, select one of the following
installation options:
• Client
• Developer
• Custom
After you install the product, you can start the RoleTailored client for Windows on
the Start menu.
Documentation
When you install the Document component, you can specify the destination
folder for the documents on the Specify parameters page. The default folder is
C:\Program Files (x86)\Microsoft Dynamics NAV\70, but you can change this.
If you want to add new Microsoft Dynamics NAV components and features on a
computer that already contains some components, you have to run Microsoft
Dynamics NAV Setup again on that computer. Microsoft Dynamics NAV Setup
automatically checks for existing components and starts in Maintenance mode.
Option
Add/Remove Components Use this option to add or remove
Microsoft Dynamics NAV product
components. It also lets you customize
how your installed programs run.
Newly selected components are added;
cleared components are removed.
When you select Add/Remove Components, Microsoft Dynamics NAV Setup first
shows you the Customize the installation page (where you can select additional
components or clear existing components) and then the Specify Parameters
page (where you can enter specific configuration parameters for the newly added
components). After you specify the necessary parameters, you can either Save the
configuration to a file or click Apply to start the installation.
Note: When you uninstall Microsoft Dynamics NAV 2013, the Microsoft
Dynamics NAV database is not removed. You must remove it manually. The same
applies to the Microsoft Dynamics NAV license file and any other software
prerequisite for Microsoft Dynamics NAV (for example, the Microsoft .NET
Framework 4.0).
This demonstration shows how to install the RoleTailored client for Windows in a
network.
Demonstration Steps
1. Insert the Microsoft Dynamics NAV 2013 product DVD in the DVD
drive.
a. Open the DVD drive by pressing the Eject button on the physical
drive.
b. Put the DVD on the tray.
c. Press the Close button to close the DVD drive.
By default, when you install the RoleTailored client for Windows by using the
Client installation option, the Development environment is not installed. This
demonstration shows how to add the Development environment to a computer
that is running the RoleTailored client for Windows.
Demonstration Steps
1. Insert the Microsoft Dynamics NAV 2013 Product DVD in the DVD
drive.
a. Open the DVD drive by pressing the Eject button on the physical
drive.
b. Put the DVD on the tray.
c. Press the Close button to close the DVD drive.
When you install the RoleTailored client for Windows, you must select the
components to install and specify several setup parameters to be saved to a client
configuration file.
In larger networks, you have to select the components and enter the parameters
on each RoleTailored client for Windows computer. This can be very time
consuming and easily lead to typing errors (causing incorrect configurations).
To streamline the setup process, Microsoft Dynamics NAV Setup lets you capture
and save a set of setup decisions (such as the components to install and the
parameters to use) to a Setup configuration file. You can then distribute this
configuration file and use it on any other computer to install the RoleTailored
client for Windows. Instead of selecting the components one by one and
specifying all the parameters manually, you load the Setup configuration file and
continue Setup.
Best Practice: In large networks, we recommend that you copy the Microsoft
Dynamics NAV 2013 product DVD to a shared network folder that can be accessed
from all clients. You might add a separate folder that contains the Setup
configuration files for your convenience.
If you have to change an existing Setup configuration file, you can run Microsoft
Dynamics NAV Setup on a computer without any Microsoft Dynamics NAV
components installed. You can load it into Setup, make the desired modifications,
and then save it. You do not have to install any software during this process.
Setup configuration files can also be used to install Microsoft Dynamics NAV
Setup from the command line. This is illustrated in the next lesson.
Microsoft Dynamics NAV 2013 Setup can also be run from a command prompt.
On the Microsoft Dynamics NAV installation media, setup.exe is in the root
directory. To start Microsoft Dynamics NAV Setup from the command line, follow
these steps:
Note: If User Access Control is turned on, you must open the command
prompt with administrative credentials. To do this, click Start > All Programs >
Accessories. Right-click Command Prompt, and then click Run as administrator.
For more information about how to install and administer Microsoft Dynamics
NAV, see the module "Microsoft Dynamics NAV Server".
After you have installed the Microsoft Dynamics NAV Server and enabled web
services, you can publish Microsoft Dynamics NAV pages, codeunits, and queries
as web services by using the RoleTailored client.
Developers can publish two types of web services from Microsoft Dynamics NAV
objects:
• SOAP Web Services. You can publish either Microsoft Dynamics NAV
pages or codeunits as SOAP services.
• OData Web Services. You can publish either pages or queries as
OData services.
OData web services are a new addition to Microsoft Dynamics NAV 2013,
complementing the SOAP web services that have been available in earlier
versions. A developer who plans to create Microsoft Dynamics NAV web services
may have to decide which type of web service is better suited to the company's
needs.
SOAP web services provide full flexibility for building operation-centric services.
They provide industry standard interoperability. Windows Communication
Framework (WCF) has supported SOAP services since its initial release in the .NET
Framework 3.0, and .NET 4 adds more support and default bindings to make it
easier to build SOAP services using WCF.
The most common messaging pattern in SOAP is the remote procedure call (RPC),
where one network node (the client) sends a request message to another node
(the server), and the server sends a response message to the client.
The OData standard is good for web service applications that require a uniform,
flexible, general purpose interface for exposing create retrieve update delete
(CRUD) operations on a tabular data model to clients. OData is less appropriate
for applications that are primarily RPC oriented or in which data operations are
constrained to certain prescribed patterns. OData supports Representational State
Transfer (REST)-based data services. These enable resources, identified using
Uniform Resource Identifiers (URIs) and defined in an abstract data model (i.e. the
Entity Data Model (EDM)), to be published and edited by web clients within
corporate networks and across the Internet by using simple HTTP messages.
OData services are lightweight, with functionality frequently referenced directly in
the URI.
.NET Framework 4.0 is enhanced with WCF Data Services, which implement all the
non-NAV-specific parts of the OData stack. Visual Studio service references
“understand” OData services and can generate EDM-based proxies. This enables
the developer to use LINQ to write the data access logic.
Whereas SOAP web services expose a WSDL document, OData web services
expose an EDMX document that contains metadata for all published web services.
The extensions to the Atom Publishing Protocol that are defined in the AtomPub
extensions to the OData protocol documentation describe how REST-based data
services can enable resources. These are identified by using URIs and defined in an
abstract data model (EDM), to be published and edited by web clients within
corporate networks and across the Internet by using simple HTTP messages.
After you create a web service in the RoleTailored client, you must publish the
web service so that it is available to service requests over the network. Users can
discover web services by pointing a browser or a tool such as Visual Studio at the
computer that is running Microsoft Dynamics NAV Server and requesting a list of
available services. When you publish a web service, it is immediately available over
the network for authenticated users. All authorized users can access metadata for
Microsoft Dynamics NAV web services, but only users who have sufficient
Microsoft Dynamics NAV permissions can access actual data.
Note: Codeunit and Page are valid object types for SOAP web services. Page
and Query objects are valid types for OData web services.
This demonstration shows how to publish a Page object as a web service. The
page is then available as both an OData and a SOAP web service.
Demonstration Steps
Note: The service name is visible to consumers of your web service and is the
basis for identifying and distinguishing web services. So, you should make the name
meaningful. If you are setting up integration with Microsoft Outlook by using
codeunit 5313, then you must use DynamicsNAVsynchOutlook as the service
name.
After you publish a web service, it is available on the Microsoft Dynamics NAV
Server instance to which you were connected when you published. The web
service is available across all Microsoft Dynamics NAV companies on the server
instance, not just the one that the RoleTailored client was using to publish the
web service.
Note: After publishing a web service, verify that the port that web service
applications use to connect to your web service is open. The default port for SOAP-
based web services is set to 7047. The default port for OData-based web services is
7048. The value can be configured by using the Microsoft Dynamics NAV
Administration Tool. For more information about this tool, see the module
"Installation Requirements".
You can verify the availability of the web service by using a browser.
Note: You must modify your Internet Explorer settings to display the actual
XML for a feed instead of the feed content that has changed. To turn off the feed
reading view, click Tools > Internet Options > Content > Feeds and Web Slices
> Settings and clear the Turn on feed reading view check box. Restart Internet
Explorer to enable the new setting.
The browser should now show the web service that you have published, in the
format of an AtomPub document:
The figure List of Available OData Web Services shows two OData web services:
Customer and Company.
To view the customers for a specific company in the database, you have to enter
the URI in this format:
http://
<Server>:<WebServicePort>/<ServerInstance>/OData/Company(‘<CompanyNa
me>’)/<CustomerWebServiceName>
The following URI can be used to retrieve data from the CRONUS International
Ltd. company through the OData web service called Customer:
http://localhost:7048/DynamicsNAV/OData/Company('CRONUS
International Ltd.')/Customer
Note: The company name is case sensitive. It is optional if you only want to
verify the availability of SOAP web services. When you use the web service to access
data in the Microsoft Dynamics NAV database, you must include the company
name.
The figure List of Available SOAP Web Services shows two SOAP web services:
Customer and SystemService.
You can use the SystemService service in a SOAP web service application to
retrieve a list of companies available in a specific database. A company name is
typically part of the URI when you access a Microsoft Dynamics NAV web service,
and the system service lets you retrieve names of available companies.
Similarly, you can use the Company service in an OData web service application to
retrieve a list of companies in a specific database.
To install Microsoft Dynamics NAV Web client, run Microsoft Dynamics NAV 2013
Setup. The Web client can be installed only as part of a Custom installation option.
The Microsoft Dynamics NAV Web Server components can be installed only on a
computer on which the following programs are present:
Setup installs a website for Microsoft Dynamics NAV Web client on an Internet
Information Services server and configures the connection from Microsoft
Dynamics NAV Web client to Microsoft Dynamics NAV Server. By default, Setup
configures the Microsoft Dynamics NAV Web client to connect to a Microsoft
Dynamics NAV Server instance on the same computer. The instance has the
following default parameters:
You can install Microsoft Dynamics NAV Web client on the same computer as the
Microsoft Dynamics NAV Server or a separate computer. If you install Microsoft
Dynamics NAV Web client on a different computer than Microsoft Dynamics NAV
Server, then you must set up delegation between the Microsoft Dynamics NAV
Web client and the Microsoft Dynamics NAV Server. For more information, see Set
Up Delegation later in this lesson.
After installation, you can change the configuration by modifying the web.config
file.
The web.config file is an .xml file that you can edit by using a text editor, such as
Notepad. By default, the web.config file is located in the C:\Programs
(x86)\Microsoft Dynamics NAV\70\Web Client folder.
Note: After you modify the web.config file, if you have Microsoft Dynamics
NAV Web client open in the Internet browser, the changes do not take effect until
you close the browser and then reopen Microsoft Dynamics NAV Web client.
The Microsoft Dynamics NAV Web client settings are included in the
<DynamicsNAVSettings> tag in the web.config file. The following table describes
the settings that are available in the <DynamicsNAVSettings> tag.
Setting Description
AllowNtlm Specifies whether NT LAN Manager (NTLM) fallback is
permitted for authentication.
To require Kerberos authentication, set this value to false.
Values: true, false
Default value: true
TimeZone Sets the time zone for Microsoft Dynamics NAV Web
client. The time zone applies to all date and time data that
a user views or enters in the Microsoft Dynamics NAV Web
client.
Values: A time zone that is included in the registry of the
computer that is running Microsoft Dynamics NAV Web
client. You find the time zones in the registry under
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows
NT\CurrentVersion\Time Zones. The value must match a
time zone that is listed in the registry. For example, you
can set the value to "Pacific Standard Time" or "Central
Europe Standard Time."
Default value: UTC
ClientServicesPort Specifies the TCP port for the Microsoft Dynamics NAV
Server. This is part of the Microsoft Dynamics NAV Server’s
URL.
Values: 1-65535
Default value: 7046
For example: The Microsoft Dynamics NAV Server to which the Microsoft
Dynamics NAV Web client connects is configured in the web.config file for the
Microsoft Dynamics NAV Web client. If you want to connect the Web client to
another database, you can change the Microsoft Dynamics NAV Server instance
by modifying the web.config.
On the computer that is running Microsoft Dynamics NAV Web client, use any
text editor, such as Notepad, to open the web.config file for edit.
The Microsoft Dynamics NAV Web client requires IIS version 7.0 with the following
features enabled:
• .NET Extensibility
• ASP .NET
• ISAPI Extensions
• ISAPI Filters
• Request Filtering
• Windows Authentication
• Static Content
This topic describes how to install and configure Internet Information Services for
the Microsoft Dynamics NAV Web client. The procedure is slightly different for
Windows 7 and Windows Server 2008 R2.
1. To install IIS on Windows 7, follow these steps: Click Start > Control
Panel > Programs.
2. Under Programs and Features, select Turn Windows features on or
off.
3. In the Windows features list, expand Internet Information Services,
and then expand World Wide Web Services.
4. Expand Application Development Features, and select the
following features:
o .NET Extensibility
o ASP .NET
o ISAPI Extensions
o ISAPI Filters
6. Expand Common HTTP Features, and then select the Static Content
feature.
7. To install Internet Information Service (IIS) Manager, under Internet
Information Services, expand Web Management Tools, and then
select IIS Management Console.
This step is optional. You use Internet Information Service IIS Manager
to manage local and remote web servers and sites.
8. Click OK to complete the installation.
9. To verify that the web server is installed correctly, start your browser
and then type "http://localhost" in the address field.
The default website opens and should display an IIS 7 image. If the IIS 7 image
does not appear, then verify that you have configured static content on IIS, as
described in steps above.
1. Click Start > All Programs > Administrative Tools > Server
Manager.
2. In the navigation pane, click Roles and then click Add Roles.
3. In the Before You Begin window, click Next.
4. In the Select Server Roles window, select Web Server (IIS) and then
click Next two times.
5. In the Select Role Service window, expand Common HTTP
Features, and then select Static Content. Other features that are
selected by default can remain selected.
6. Expand Application Development Features, and select the
following features:
o ASP.NET
o .NET Extensibility
o ISAPI Extensions
o ISAPI Filters
If a dialog box appears that asks you to confirm ASP.NET, click Allow
to continue.
The default website opens and should display an IIS 7 image. If the IIS 7 image
does not appear, then verify that you have configured static content on IIS, as
described in the steps above.
Note: Internet Information Services Manager was also installed. To verify the
installation, click Start > Administrative Tools > Internet Information Service
(IIS) Manager.
Set Up Delegation
When the client device, Microsoft Dynamics NAV Web client, and Microsoft
Dynamics NAV Server are on separate computers, the client device interacts with
Microsoft Dynamics NAV Server through the computer that is running Microsoft
Dynamics NAV Web client. Microsoft Dynamics NAV Web client is performing
actions on the client device's behalf. This process is known as impersonation.
Impersonation cannot be used across multiple computers. Therefore, you must set
up delegation from Microsoft Dynamics NAV Web client to Microsoft Dynamics
NAV Server.
To set up delegation from the front-end (running SharePoint or the Web Server
Components) to the Microsoft Dynamics NAV Server, follow these steps
1. On any server in the domain, click Start and then click Run.
2. In the Open field, type"dsa.msc".
3. In the navigation pane on the left, expand the node for the domain
where you have installed the Microsoft Dynamics NAV environment.
Host NAVSERVER
Note: If the account running the Microsoft Dynamics NAV server does not
have sufficient credentials to register an SPN on startup, a message is added in the
Windows Event Log of the NAV Server computer and the SPN must be registered
manually.
Microsoft Dynamics NAV Portal Framework is a set of components that you install
on a server or servers running Microsoft SharePoint Foundation 2010. Then you
use the Microsoft Dynamics NAV Portal Framework to build SharePoint web
applications that display Microsoft Dynamics NAV pages and reports.
Developers of solutions for Microsoft Dynamics NAV Portal Framework have the
same experience as those using the RoleTailored client. Developers create
Microsoft Dynamics NAV objects in the development environment and implement
the same metadata and business logic as RoleTailored client. A page or report that
can be displayed in the RoleTailored client can also be displayed on a SharePoint
site.
End-users can work with Microsoft Dynamics NAV data in a familiar SharePoint
environment that uses the same appearance and behavior. Working with
Microsoft Dynamics NAV pages and reports in SharePoint resembles working with
the pages and reports in the RoleTailored client.
Microsoft Dynamics NAV Portal Framework is designed for occasional users who
typically need an overview of their daily work status and perform fairly simple or
light data entry.
If you are installing Microsoft Dynamics NAV Portal Framework on the same
computer as Microsoft Dynamics NAV Server, then Setup automatically detects
the Microsoft Dynamics NAV Server instance. Therefore, you do not have to
provide any information unless you want to use another instance.
Before you start to install the Portal Framework, you must follow these steps:
1. Verify the system requirements are met on the computer that you
want to install Microsoft Dynamics NAV Portal Framework.
2. Obtain the following parameters for Microsoft Dynamics NAV Server.
Parameter Description
This topic describes how to install Microsoft Dynamics NAV Portal Framework for
the first time on one or more Microsoft SharePoint applications. To install
Microsoft Dynamics NAV Portal Framework, run Microsoft Dynamics NAV Setup
on the Microsoft SharePoint server farm or stand-alone server. Setup installs
Microsoft Dynamics NAV Portal Framework on the web applications on the
SharePoint server farm or stand-alone server.
The following figure shows the components involved with the setup of Microsoft
Dynamics NAV Portal Framework.
When you run Setup, you have three options for installing Microsoft Dynamics
NAV Portal Framework:
Setup installs a SharePoint solution package for Microsoft Dynamics NAV Portal
Framework on the server farm or stand-alone server. SharePoint Server deploys
and activates the Microsoft Dynamics NAV Portal Framework solution package on
each web application that you have selected. After you run Setup, you can deploy
and activate Microsoft Dynamics NAV Portal Framework on additional web
applications by using SharePoint Central Administration.
To install the Microsoft Dynamics NAV Portal Framework for SharePoint, follow
these steps :
Verify Installation
You can use the SharePoint Central Administration web application to view the
status of Microsoft Dynamics NAV Portal Framework on a SharePoint web
application.
To verify the Microsoft Dynamics NAV Portal Framework installation, follow these
steps:
After you first install Microsoft Dynamics NAV Portal Framework on one or more
SharePoint web applications, you can use SharePoint Central Administration to
deploy and activate Microsoft Dynamics NAV Portal Framework on other web
applications. When you install Microsoft Dynamics NAV Portal Framework,
Microsoft Dynamics NAV Setup installs a SharePoint solution package for
Microsoft Dynamics NAV Portal Framework on the server farm or stand-alone
server. Using SharePoint Central Administration, you deploy the solution package
to a web application. After the solution package is deployed, you must activate
the Microsoft Dynamics NAV Portal Framework feature on the web application
before you can start to display Microsoft Dynamics NAV content on sites of the
web application.
After you have deployed the Portal Framework solution, you can activate it on a
web application. To activate the it, follow these steps :
The Web Applications page lists all the SharePoint web applications
that are available on the server.
4. Select the web application, and then, in the ribbon, click Manage
Features.
5. In the Manage Web Application Features window, click Activate.
6. When Microsoft Dynamics NAV Portal Framework is activated, the
Status changes to Active.
7. Click OK when done.
Set Up Delegation
When SharePoint Server, Microsoft Dynamics NAV Server, and SQL Server
database components for Microsoft Dynamics NAV are installed on separate
computers, you must configure delegation between SharePoint Server and
Microsoft Dynamics NAV Server. Delegation works as follows: a front-end service
forwards a client request to a back-end service so that the back-end service can
also impersonate the client. Impersonation is typically used to check whether a
client is authorized to perform a particular action, whereas delegation is a way of
flowing impersonation capabilities, together with the client’s identity, to a back-
end service. You can use delegation as a Windows domain feature with Kerberos-
based authentication.
1. On any server in the domain, click Start and then click Run.
2. In the Open field, type "dsa.msc".
3. In the navigation pane on the left, expand the node for the domain
where you have installed the Microsoft Dynamics NAV environment.
4. To configure delegation, the functional level for the domain must be
Windows Server 2003 or a later version. To verify the domain
functional level, right-click the node for the domain where you have
installed Microsoft Dynamics NAV, and then click Raise Domain
Functional Level. If the level is not at least Windows Server 2003,
then raise it to that level.
5. Expand the Computers node, right-click the computer that is running
Microsoft Dynamics NAV Portal Framework for Microsoft SharePoint
2010, and then click Properties.
6. On the Delegation tab, click Trust this user for delegation to specified
services only and then click Use Kerberos only.
You must add the following services for the computer that is running
Microsoft Dynamics NAV Server:
Service Type User or Computer Port
Host NAVSERVER
Note: If the account running the Microsoft Dynamics NAV server does not
have sufficient rights to register an SPN on startup, a message is added in the
Windows Event Log of the NAV Server computer and the SPN must be registered
manually.
Each SharePoint application has its own web.config file. By default, the web.config
file is located on the computer that is running Microsoft SharePoint Foundation
Server 2010 in the c:\inetpub\wwwroot\wss\VirtualDirectories\portnumber folder.
The portnumber indicates the port that is assigned to the web application. For
information about identifying a port number, see the Prepare the Installation
topic in this lesson.
The web.config file is an .xml file that you can edit by using any text editor.
The following table describes the settings that are available in the
<DynamicsNAVSettings> tag of web.config file.
Setting Description
AllowNtlm Specifies whether NT LAN Manager (NTLM) fallback is
permitted for authentication.
To require Kerberos authentication, set this value to
false.
Values: true, false
Default value: true
ClientServicesPort Specifies the TCP port for the Microsoft Dynamics NAV
Server. This is part of the Microsoft Dynamics NAV
Server’s URL.
Values: 1-65535
Default value: 7046
(net.tcp://NavServer:Port/ServerInstance/Service)=NoSpn|
SPN
• NavServer is the name of the computer that is
running the Microsoft Dynamics NAV Server.
• Port is the port number on which the Microsoft
Dynamics NAV Server is running.
• ServerInstance is the name of the Microsoft
Dynamics NAV Server instance.
• NoSpn|SPN specifies whether to use an SPN. If the
ServicePrincipalNameRequired key is set to false,
then set this value to NoSpn. If the
ServicePrincipalNameRequired key is set to true,
then set this value to Spn.
Default value:
(net.tcp://localhost:7046/DynamicsNAV/Service)=NoSpn
If you set this key to the wrong value, then during
startup, the Microsoft Dynamics NAV Portal Framework
determines a correct value automatically. This causes the
Microsoft SharePoint Foundation Server to restart.
The Microsoft Dynamics NAV 2013 RoleTailored client for Windows supports
secured connections to Microsoft Dynamics NAV Server over a wide area network
(WAN). In this scenario, the RoleTailored client for Windows and Microsoft
Dynamics NAV Server can be in the same or separate Active Directory domains.
For more information about certificates, see the Wide Area Network Connections
topic in the, "Microsoft Dynamics NAV Server".
This module describes how to configure the Microsoft Dynamics NAV Server to
support logon over a WAN.
Note: Implementing remote logon requires changing the credential type for
the Microsoft Dynamics NAV Server instance involved. Consider using a dedicated
Microsoft Dynamics NAV Server instance for remote connections so that this
change does not affect local users.
With the chain trust configuration, only the root CA and the certificate revocation
list must be installed for the client computer. Afterward, you must modify the
client configuration file.
This procedure is identical to the procedure for installing the root CA on the
Microsoft Dynamics NAV Server.
mmc
After you have installed the root CA, you must also install the certificate
revocation list on the client. A certificate revocation list is required because WCF
applications check the revocation list when validating certificates.
mmc
The RoleTailored client for Windows and Microsoft Dynamics NAV Server must be
configured to use the same credential type. The default credential type for the
RoleTailored client for Windows is Windows. In a WAN connection deployment,
the credential type must be changed to Username. In addition, you must add
certificate information.
In Windows 7, Windows Vista, or Windows Server 2008, the location of the client
configuration file is C:\Users\<username>\AppData\Local\Microsoft\Microsoft
Dynamics NAV (where username represents the Windows user name). By default,
this file is hidden. Therefore, you may have to change your folder options in
Windows Explorer to view hidden files.
When you start the RoleTailored client for Windows, you are prompted for a valid
user name in the format domain\username and password for the server domain
(even if the client computer is in the same as the Microsoft Dynamics NAV server).
To view Microsoft Dynamics NAV 2013 in multiple languages, install one or more
language modules. This topic describes language modules in Microsoft Dynamics
NAV 2013.
Language modules are binary files that you cannot modify with external tools.
If you have customized Microsoft Dynamics NAV 2013, then after you install the
appropriate language module, you should also translate the strings for the objects
that you added or modified. This is covered in the course C/SIDE Introduction in
Microsoft Dynamics NAV 2013.
Language Subfolder
When you install a language module, a subdirectory for the language is created in
the Microsoft Dynamics NAV folder structure. The .stx, .etx, .chm, and .hh files for
each language are automatically installed in the subfolder. The name of the
subdirectory is the three-letter language code (abbreviated name) that is used by
Windows for the particular language.
To install language modules in Microsoft Dynamics NAV 2013, you must first
download the language module from the Language Modules for Microsoft
Dynamics NAV 2013 website. (This requires a PartnerSource logon.) Afterward you
install the following different components separately:
• Server
• RoleTailored client for Windows
• Development environment
• Database
• (optional) Microsoft Office Outlook
Database Component
1. Verify that the license that you are using allows you to compile
objects.
2. In the development environment client, open Object Designer.
3. In Object Designer, click All.
4. On the Edit menu, click Select All.
5. On the Tools menu, point to Language Module and then click
Import.
6. In the Language Module Import window, locate where you
downloaded the language module, browse to the Database folder,
select the .flm file, and then click Open.
7. With all objects selected, on the Tools menu, click Compile.
Tim wants to install the RoleTailored client for Windows on five computers in the
network. On four computers he wants to install the RoleTailored client for
Windows without the Development environment. On one computer, he wants to
install the RoleTailored client for Windows together with the Development
environment. The Microsoft Office Excel Add-in and Microsoft Office Outlook
Add-in will be installed on all computers. Tim starts by creating a Setup
configuration file that he can use to do the installation.
Because the new computers have not been delivered yet, Tim prepares the Setup
configuration file on the Microsoft Dynamics NAV Server computer.
Detailed Steps
1. Insert the Microsoft Dynamics NAV 2013 product DVD in the DVD
drive.
a. Open the DVD drive by pressing the Eject button on the physical
drive.
b. Put the DVD on the tray.
c. Press the Close button to close the DVD drive.
Detailed Steps
1. Select the installation option.
a. In the Welcome to the Microsoft Dynamics NAV 2013 Setup
window, on the Maintenance page, select Add or remove
components.
b. On the Customize the installation page, click the Client node to
expand it.
c. Click the icon at the left of the Development environment
(C/SIDE) component.
d. Select Not Available.
e. Click the icon at the left of the Microsoft Office Excel Add-in
component.
f. Select Run from My Computer.
g. Click the icon at the left of the Microsoft Office Outlook Add-in
component.
h. Select Run from My Computer.
i. Click the icon at the left of the Administration Tool node.
j. Select Not Available.
k. Repeat the previous two steps for the Documentation, Server,
SQL Server Database Components, Portal Framework for
SharePoint, Automated Data Capture Systems, NAV Web
Server Components, and ClickOnce Installer Tools
components.
l. On the Customize the installation page, click Next.
Detailed Steps
1. Specify configuration parameters.
a. On the Specify parameters page, in the Server Name field,
enter NAV-DC-SQL-SP.
b. Verify that the Client Services Port is set to 7046 and the Add
rule to Firewall field is set to Yes.
Detailed Steps
1. Save the configuration parameters to file.
a. On the Specify Parameters page, click Save.
b. In the Save As dialog box, browse to the Desktop folder.
c. In the File Name box, enter the name of the configuration file.
We recommend that you use short but meaningful names. In this
case, enter NAV2013_RTC_Live.
d. In the Save As dialog box, click Save.
e. On the Specify Parameters page, click Close to exit Microsoft
Dynamics NAV 2013 Setup.
f. In the Setup dialog box, click Yes.
The new computers were delivered. Tim has added the computers to the domain
and has installed Microsoft Office. He also copied the Microsoft Dynamics NAV
2013 Product DVD to a shared folder (called SOFTWARE) on the NAV-DC-SQL-SP
server and copied the NAV2013_RTC_Live.xml Setup configuration file to the local
c:\temp folder on each of the five computers. He can now start to install the
RoleTailored client for Windows.
Tim wants to install the RoleTailored client for Windows without the Development
environment component on four computers. He can use the Setup configuration
file from the previous lab to do this. Because he does not want to run through the
Setup wizard on each computer, he decides to run Setup by using the command
prompt and in quiet mode. If he does this, he does not have to run through the
Setup wizard manually.
Detailed Steps
1. Open a command prompt.
a. On the Windows Taskbar, click Start > All Programs >
Accessories > Command Prompt.
Detailed Steps
1. Start Microsoft Dynamics NAV Setup.
a. Enter the following command:
Detailed Steps
1. Close the command prompt.
a. At the command prompt, type "exit" and press Enter to close the
command prompt window
Tim must install the RoleTailored client together with the Development
environment component on one computer. He wants to use the same Setup
configuration file to do this, because it contains the correct configuration
parameters for the RoleTailored client for Windows. However, because the
Development environment component was not selected when the configuration
file was created, Tim must customize this installation.
Detailed Steps
1. Open a command prompt.
a. On the Windows Taskbar, click Start >All Programs
>Accessories > Command Prompt.
Detailed Steps
1. Start Microsoft Dynamics NAV Setup.
a. Enter the following command:
Detailed Steps
1. Choose the installation option.
a. In the Microsoft Dynamics NAV 2013 Setup window, click
Next.
b. On the Microsoft Software License Terms page, click I Accept.
c. On the Microsoft Dynamics NAV Setup page, click Customize
installation.
If you select Install preconfigured Product components, Setup
installs the product components exactly as saved in the Setup
configuration file. Because the Development environment
(C/SIDE) component was not selected in the configuration file,
you must customize the installation. Therefore, click Customize
installation.
d. On the Customize the installation page, click the Client node to
expand it.
e. Click the icon at the left of the Development environment
(C/SIDE) component.
f. Select Run from My Computer.
g. On the Customize the installation page, click Next.
h. On the Specify parameters page, click Apply.
i. Click OK to close the Microsoft Dynamics NAV Setup window.
Detailed Steps
1. Exit Microsoft Dynamics NAV Setup.
a. Click Close to close the Microsoft Dynamics NAV Setup
window.
Module Review
Module Review and Takeaways
This module describes the installation of Microsoft Dynamics NAV 2013 client
types. As an administrator, it is helpful to know the following:
Module Overview
In the module, Microsoft Dynamics® NAV Server, you were introduced to the basic
functionality of the Development Environment. The Development environment
acts as a client and is important for all Microsoft Dynamics NAV 2013
deployments as a tool for development and administration tasks. This module
describes how to install and use the Development Environment.
Objectives
Installation
The Development environment acts as a client and is important for all Microsoft
Dynamics NAV 2013 deployments as a tool for development and administration
tasks. For example, you must use it to upload the Microsoft Dynamics NAV 2013
license file.
You use Microsoft Dynamics NAV Setup to install the Development Environment.
The Development Environment is a subcomponent of the client.
You can install the RoleTailored client for Windows without the Development
Environment, but you cannot install the Development Environment without the
RoleTailored client for Windows.
Demonstration Steps
1. Insert the Microsoft Dynamics NAV 2013 product DVD in the DVD
drive.
a. Open the DVD drive by pressing the Eject button on the physical
drive.
b. Put the DVD on the tray.
c. Press the Close button to close the DVD drive.
4. Specify parameters.
a. On the Choose an installation option page, click the Customize
link for the Client option.
b. On the Customize the installation page, click the icon at the left
of the Client node. The node expands.
c. Click the icon at the left of the Development Environment
(C/SIDE) node.
d. Select Run from My Computer.
e. Click the icon at the left of the Documentation node.
f. Select Not Available.
g. On the Customize the installation page, click Next.
h. On the Specify parameters page, in the Server Name field,
enter the name of the server that is running the Microsoft
Dynamics NAV Server instance to which you want to connect.
i. In the Service Name field, enter the name of the server instance
to which you want to connect.
j. In the Client Services Port field, enter the port number that the
server instance is using for its client services. The default value is
7046.
k. Verify that the Add rule to Firewall field is set to Yes.
l. Click Apply to start the installation.
m. Click Close to exit Microsoft Dynamics NAV Setup.
Unlike the RoleTailored client, the Development Environment does not connect to
the Microsoft Dynamics NAV database through Microsoft Dynamics NAV Server.
Demonstration Steps
1. Insert the Microsoft Dynamics NAV 2013 Product DVD in the DVD
drive.
a. Open the DVD drive by pressing the Eject button on the physical
drive.
b. Put the DVD on the tray.
c. Press the Close button to close the DVD drive.
4. Specify parameters.
a. On the Customize the installation page, click the icon at the left
of the Client node. The node expands.
b. Click the icon at the left of the Development Environment
(C/SIDE) node.
c. Select Run from My Computer.
d. On the Customize the installation page, click Next.
e. On the Specify parameters page, click Apply to start the
installation.
f. Click Close to exit Microsoft Dynamics NAV Setup.
After you have installed the Development Environment, you can run it by
selecting Start > All Programs > Microsoft Dynamics NAV 2013 Development
Environment.
The first time that you open the Development Environment, it is not connected to
a Microsoft Dynamics NAV database.
When you reopen Microsoft Dynamics NAV 2013, the program automatically
opens the database and company on which you last worked.
Note: The name of the database and the company that you were last working
on is stored in the *.zup file. You can find this file in the c:\users\<user
name>\AppData\Roaming\ folder. If you delete this file, Microsoft Dynamics NAV
opens, but does not establish a connection to a Microsoft Dynamics NAV database.
• Manage databases
• Manage companies
• Manage Microsoft Dynamics NAV licenses
• Manage Microsoft Dynamics NAV objects
Note: You can click Tools > Language to change the language of the user
interface. Please be aware that some functionality is available only in English. This
especially applies to the design and programming features.
Managing Databases
You can use the Development Environment to manage Microsoft Dynamic NAV
databases.
Open a Database
In the Open Database dialog box, you can select the database to open:
Tab/Field Description
General / Server Name Enter the name of the SQL Server that
runs the database that you want to open.
You can click the field and select the
server from a list of available computers
that are running SQL Server or you can
enter the server name manually.
General / Database Name Enter the name of the database that you
want to open. You can enter the name
manually, or you can click the field to
make a selection from the list of
databases that are available on the
selected server.
To retrieve a list of available databases
from the selected SQL Server, you must
first enter valid credentials.
After you have completed the fields in the Open Database window, click OK to
open the database.
Note: To work in the application, you must always open a database and a
company - in that order. After you have done this one time, or if the choices are on
the command line that starts the program, this occurs automatically when you
choose a company. Therefore, you only have to click File > Database > Open
when you want to open a database different than the one currently open.
If you have to close the database, you can do this by clicking File > Database >
Close. You can use this function to close an open database, for example, before
you open another database. However, you do not have to use it because the
program saves all the data and closes everything correctly when you choose to
open another database or exit the program.
Delete a Database
Note: Before you delete a database, verify that there are no active users in
the database. In addition, stop all services and server instances that use the
database that you want to delete.
After you have deleted a database, the connection with the server is closed. You
have to reconnect to a server and reopen a database if you want to continue
working.
When you click OK, Microsoft Dynamics NAV tries to establish a connection to the
selected SQL Server that uses the credentials specified.
In the New Database window, you must enter the information about the
database that you want to create. The window contains the same Tabs as the
Alter Database window. The tabs are as follows:
On the General tab, you can define the logical name of the Microsoft Dynamics
NAV database in the Database Name field. The tab also shows the server name.
The value of the Server Name field is taken from the Select Server dialog box.
Database Files
The Database Files tab lets you increase the size of the database. You can do this
as follows:
• By increasing the size of one or more of the files that make up the
database.
• By adding new data files to the database.
For more information about how to add new database files, see “How-to: Add
New Database Files” in the online Help. For more information about increasing
the size of a database file, see “How-to: Increase the Size of Database Files” in the
online Help.
By default, when you create a new Microsoft Dynamic NAV database, two data
files are created. You can increase the size of each data file or add new data files
to expand the database. If secondary data files are present, you only have to
increase the size of the primary data file when the catalog that it contains has
become too large. When the catalog has become too large, new SQL Server
objects, such as tables, cannot be created until you increase the size of the
primary data file.
When you are using secondary data files, you cannot create more space for
storing Microsoft Dynamics NAV data by increasing the size of the primary data
file. You can create more space for storing data by increasing the size of the
secondary data files that contain Microsoft Dynamics NAV information. You can
also add new secondary data files to store more data.
Note: You can always make the database larger later, but you cannot make it
smaller using the Microsoft Dynamics NAV Development Environment.
If you have to reduce the size of the database, you can shrink the database files by
using SQL Server Management Studio.
On the Transaction Log Files tab, you can increase the size of the existing
transaction log files or add new log files to allow the database to perform more
transactions. The transaction log continues to grow as new transactions are
performed in the database. SQL Server truncates the log after it performs a
successful database or transaction log backup (or after it commits a transaction in
cases where the database recovery model is Simple).
You can also delete existing transaction log files that are empty. The first
transaction log file that is listed is the primary file. The primary transaction log file
cannot be deleted.
For more information about how to add new transaction log files, see “How-to:
Add New Transaction Log Files” in the online Help. For more information about
how to increase the size of a transaction log file, see “How-to: Increase the Size of
Transaction Log Files” in the online Help.
Collation
You can also change the collation that is used by the database. You must set the
database Single user option before you change the collation. For example, you
might change the collation of a database when you plan to centralize multiple
SQL Server databases (coming from different regions) on a single instance of SQL
Server.
A collation specifies the bit patterns that represent each character in a dataset.
Collations also determine the rules that sort and compare data. Characteristics of a
collation include, for example, accent sensitivity and case sensitivity.
If you change the database collation, this changes the collation of all the objects
in the database except tables that have the LinkedObject property set to Yes.
These objects must be recreated manually by, for example, scripting them in SQL
Server Management Studio.
Note: Changing the collation can be a lengthy process, depending on the size
of the database and the number of companies in the database, because the system
tables and all the user table indexes that contain character data must be rebuilt.
You can restore a database by using a collation that is incompatible with the
current database collation. When this happens, extended characters in data are
displayed incorrectly.
Options
On the Options tab, you can define the database access mode and the recovery
model for the database. The Single User option lets you restrict the number of
users who can access the database. You must select this option, for example,
before performing any database tests. (After the tests are complete, you must
clear this option.) You can also define the recovery model of the database. This
setting determines the kind of information that is written to the transaction log
and therefore the kind of recovery model that you want to use in this database.
For more information about the settings on this tab, see “Altering Databases –
Options tab” in the online Help.
Integration
The Integration tab contains database settings that influence the way Microsoft
Dynamics NAV 2013 integrates with SQL Server and external tools.
For more information about the settings on this tab, see “Altering Databases –
Integration tab” in the online Help.
Advanced
Use the Advanced tab to control the way locking is handled in the database, and
to specify the UidOffset.
For more information about the settings on this tab, see “Altering Databases –
Advanced Tab” in the online Help.
When you create a database, you have to specify several settings for the new
database. As soon as you have created the database, you can use the
Development Environment to change the settings. To change the settings of a
database, start the Development Environment and then click File > Database >
Alter.
In the Alter Database window, you can modify all settings of a database (except
for the Server Name and Database Name fields). Please be aware that you have
to activate the Single User option to change some fields.
After you have changed the fields, click OK to close the Alter Database window
and apply the new settings.
After you have created a new (and empty) database, you can enter program
objects and company data. Before you can create company data, you must import
some basic data from a backup copy of the original standard database. This is the
demonstration database that is included with the application. The backup must at
least include the parts called Data Common to All Companies and Application
Objects. Data common to all companies includes the program's report list and
permission groups. When you restore the application objects, the accounting
application is transferred to the database.
Microsoft Dynamics NAV has a built-in backup function that lets you create and
restore a backup of a Microsoft Dynamics NAV database.
After you have imported the application objects and the data common to all
companies, you are ready to start creating companies in the database.
1. Click Tools > Backup, and the Backup window appears. You use this
window to specify how extensive you want the backup to be and to
create the database backup.
2. Select the type of backup that you want to make. The options are as
follows: Entire Database, All Companies and Custom.
3. If you select Custom, you must select the companies that you want
copied. You do this in the list of companies under Selected
Companies. It is always a good idea to make backups of as much
information as possible. If you have to restore a backup later, you do
not have to restore the whole backup - you can determine how much
of the backup should be restored.
4. In the Description field, you must give the backup a unique
description.
5. In the File Name field, enter a name. This is the name under which
the backup is saved.
6. As soon as you have specified the name of the backup, and the drive
and the folder where you want to save the backup, click OK to start
making the backup.
The file name of the backup includes the path (location on the disk or network).
Therefore, if you enter only a file name, the backup is saved in the current folder
on the current drive. This is typically in the same location as Microsoft Dynamics
NAV. If you want to save the backup in a different location (because it uses too
much space), you have to enter the path together with the name in the File
Name field. To make this easier, you can click to the right side of the field to save
the backup with the correct name and in the desired location.
Note: We recommend that you use the Microsoft SQL Server backup function
to make backups of your production databases.
In practice, you should only use the Microsoft Dynamics NAV backup functions
when you create a completely new database, or when you want to restore data
from a specific company in a database.
1. Click Tools > Restore, and a standard Windows dialog box appears.
Use this window to locate the backup that you want to restore.
2. When you have located the backup, click Open and the Restore
window appears. The name of the backup appears in the File Name
field, and you can see the description and the time and date of its
creation. Further down in the window, you can see what was included
in the backup:
o Entire Backup - including all the companies in the database, the
data common to all companies, and all the application objects.
o All Companies - all the companies in the database including the
data common to all companies.
o Custom - what you chose, for example, certain companies, data
common to all companies, and the application objects.
3. You can restore less than the complete backup. To do this, clear the
check boxes next to items that you do not want included. You must
always include Data Common to All Companies and Application
Objects if you are restoring the backup into a completely empty
database.
4. After you have made your selection, click OK to start restoring the
backup. A status window on the screen informs you of the progress.
Restoring the database backup itself does not usually take a long time. But
because the data is packed, the subsequent process of generating the complete
data can be time-consuming, depending on the amount of data.
You can also use the Microsoft Dynamics NAV Development Environment to
determine the state of a database and to correct any database errors. To do this,
click File > Database > Test to open the Test Database window.
In the Test Database window, you can specify the extent of the test by selecting
one of these options: Minimum, Normal, Maximum, Custom.
When you make a selection, the system selects the individual tests that make up
the test you have selected. The following table lists the features that are tested
during the different tests.
Primary and secondary keys are sometimes described as indexes and are used, for
example, when you sort information. The keys determine how information in a
table is ordered. You switch keys when you want to sort according to a different
key.
Note: The Test space allocation test cannot be executed when there is more
than one user on the system. If you select a test that includes it, and there are other
people on the system, space allocation is not tested even though the rest of the test
is executed as usual.
On the Options Tab in the Test Database window, you can specify how the
output from the database test is managed. The output from the database test
consist of the errors messages that are generated. These can be handled as
follows:
• Screen: The error messages are displayed on the screen. Every time
that an error message appears, you must click OK before the test
continues. This can be troublesome if the test generates many
messages.
• Event Log: The error messages are written in the operating system’s
event log. For more information about the event log, see the
operating system’s documentation.
• File: The error messages are written to a text file. Click the field to
specify the name and location of the text file.
If you select Event Log or File, the database test is not interrupted and does not
take so long. You can then review any error messages that were generated and
repair the things that caused them.
As soon as you have started the test, a window appears that contains information
about the test status.
Best Practice: Before you run any test, configure Development Environment
to write test results to a file so that you do not have to acknowledge screen
messages for every error found. To do this, open the Options tab in the Test
Database dialog box, click File, and type or browse to a path and file name.
In the Database Information window, you can see the current status of your
database. For example, you can see the size of the database and whether it
consists of several files. You cannot enter anything in the window. The information
is mainly interesting to technical personnel. To open the window, click File >
Database > Information.
The Database Information (Tables) window lists all the tables in the database.
You can use this information to check how efficiently the database is being used.
To open this window click File > Database > Information, then click Tables at
the bottom of the Database Information window that appears.
Each table has a set of values that tells you how much the database is used.
For more information, see “Database Information (Tables)” in the online Help.
Managing Companies
Companies
Microsoft Dynamics NAV can access only one logical database at a time, but this
database can be divided into one or more companies. A company is a "sub
database," and its primary use is to separate and group data in the same database.
A company bundles one or more data tables together into a logical superstructure
that is identified by the company name.
In principle, you can create as many companies as you want in a database. But in
practical terms, you are limited by the space on the server and in the database
that you are using (and the number of companies included in the Microsoft
Dynamics NAV license file). A company does not require a fixed amount of space,
and as you can see in the New Company window, you do not have to allocate a
certain number of kilobytes (KB) to it. But as you gradually enter more and more
data into the company, less room remains in the database.
Even when you click File > Company > Open for the first time and you have not
already created any companies, there can be a company for you to open (if you
are using the database that contains the demonstration company). This is the
company that is included with the program. It contains a complete version of
Microsoft Dynamics NAV and gives examples of how to set up various types of
data. For example, it contains a chart of accounts, a list of customers, some items,
and posted entries.
It can be helpful to spend some time learning about the program by investigating
the demonstration company. You can recognize the demonstration company
because its name starts with CRONUS.
You can use the demonstration company in two ways. If you want to see all the
facilities in the system (including those for which you have not purchased
permissions), you must use the license file that is included with the demonstration
company. It is called cronus.flf, and you can select it by clicking Tools > License
Information > Change.
When you examine the demonstration company with your own license file, you
see only the functions that your license file allows. Your personal license file is
called fin.flf. You can select it in the same manner as the demonstration license
file. If you work in a larger network, the license file is typically something your
system manager provides for you.
For more information about how to open companies, see “How to: Open
Companies” in the online Help.
Delete a Company
When you delete a company, the whole company including all the data that it
contains is deleted. If you have made reports and customizations, they are not
deleted. They are saved in the database.
For more information about how to delete companies, see “How to: Delete
Companies” in the online Help.
Create a Company
In principle, you can create as many companies as you want, but in practical terms
you are limited by the space on the server and in the database that you are using.
A company does not use a fixed amount of space, and as you can see in the New
Company window, you do not have to allocate a certain number of kilobytes (KB)
to it. But as you gradually enter more and more data into the company, less room
remains in the database.
To create a company, start the Development Environment and open the database
where you want to add a new company. Click File > Company > New to open
the New Company window. In the Company Name field, enter the name of the
new company. Click OK to close the New Company window.
You can give the company any name that you want. But if you create a company
whose name starts with CRONUS (all in uppercase letters) while you work under a
demonstration license file, the company automatically becomes a demonstration
company, with all the restrictions that implies (you can only post between
November and February, and so on).
The company name can have no more than 30 characters. The company name is
case-sensitive, that is, it differentiates between uppercase and lowercase letters.
So, you can have one company called COMPANY and another called Company.
When you create the company name, remember that it is written at the top of
various reports, so write it exactly as you want it to appear.
For more information about how to create companies, see “How to: Create
Companies” in the online Help.
Rename a Company
If you make a mistake while entering the name of a new company, or if you want
a different one, you can always rename it. To do this, open the company in the
Development Environment and then click File > Company > Rename to open
the Rename Company window. Replace the current name with the new name
and then click OK to close the window.
Before you rename a company, verify that you are working in the company that
you want to rename and that you are the only user who has access to the
company.
When you work in the demonstration database that is included with the program,
using the cronus.flf license file, you can only change the company name to one
that begins with CRONUS (with uppercase letters).
For more information about renaming companies, see “How to: Rename
Companies” in the online Help.
Managing Licenses
The Demo License
When you install the RoleTailored client for Windows, the demo license is
automatically installed. The demo license works with the CRONUS demo database,
has serial number 000, and includes granule 540. The license allows access to the
whole base application and limited access to the development system.
However, the demo license does not offer you unlimited access to the Microsoft
Dynamics NAV application.
• Import objects in text format, except for form and report ID 99,999.
• Make more than 4,000 transactions in a database.
• Enter dates in months other than November, December, January, and
February.
A transaction is any action that requires interaction with the database. This
includes posting an order, posting a worksheet, and synchronizing a record.
Country/Region Versions
When you run a country/region version of Microsoft Dynamics NAV, the license
must correspond to the country/region version that you have installed.
License Information
The License Information window shows the contents of the current license file.
The information displayed includes the license number, the name of the license
owner, which application granules are included, and when the license expires.
Typically when you are working, your own serial number and the name of your
company appears in the window.
Button Description
Upload Used to upload your license file to the SQL
Server that you want to access. The license
information is used by all the client computers
that connect to this server unless a database
license file is being used.
Microsoft Dynamics NAV warns you before your license expires. If you let the
license on the server expire, you will be unable to access the server. However, you
can use the Change function to access the server by using an alternative
(renewed) license file (and then upload the new license file).
Each of the two functions uses the same type of standard Windows dialog to
locate the license file. When you have located the license file, click Open to have
the system upload or change the license file.
Note: You can also upload the license by using the PowerShell API. For more
information about this, see the Microsoft Dynamics PowerShell module in this
course.
Uploading the license file is typically something that you do once for each
database installation, not once for each client installation. The license file is saved
in the Microsoft SQL Server master database and applies to all Microsoft Dynamics
NAV databases on that instance of SQL Server.
However, Microsoft Dynamics NAV lets you upload a license for a specific
database only. In this case, the license file is saved in the Microsoft Dynamics NAV
database and applies only to that database. To save the license file in the
database, be aware of the following:
• You must have the Per Database license granule (2020) in your
license.
• You must activate the Save license in database option in the New
Database or Alter Database window.
The following procedure shows how to upload the license file to SQL Server.
To upload a license file for a specific database only, you must use the Alter
Database window:
Managing Objects
The Development Environment can be used to modify the application or create
new application areas.
Object Designer
When you run the Development Environment and open a database, you see the
Object Designer window.
In the Object Designer, you can create new Microsoft Dynamics NAV objects and
modify existing objects. You can also import and export Microsoft Dynamics NAV
objects in different formats. More information about how to create, modify,
import, and export objects, is covered in the course C/SIDE Introduction in
Microsoft Dynamics NAV 2013.
If you close the Object Designer window, you can open it in the following ways:
To this point, Tim has created two databases: a production database (with the real
company data) and a test database (which is a recent copy of the production
database). He plans to update the test environment every Saturday by restoring a
full backup of the production database in the test environment. (The existing test
environment will be overwritten.) Tim suddenly realizes that Mort is also using the
test environment for his development activities. Therefore, he cannot overwrite
the test database without destroying Mort’s work. Tim decides to create a third
environment, the Development Environment. To make sure that he keeps all
approved customizations, Tim plans to take the application objects from the
production database.
Detailed Steps
1. Start Microsoft Dynamics NAV 2013 Development Environment.
a. Click Start > All Programs > Microsoft Dynamics NAV 2013
Development Environment.
Detailed Steps
1. Open the production database.
a. Click File > Database > Open.
b. In the Server Name field, enter the name of the SQL Server that
runs the production database. In this case: NAV-DC-SQL-SP.
c. In the Database Name field, enter NAV_DEMO2013_LIVE.
d. In the Authentication drop-down list, select Windows
Authentication.
e. Click OK to close the Open Database window.
Detailed Steps
1. Start backup procedure.
a. Click Tools > Backup.
b. In the Backup window, select the Custom option.
c. In the Selected Companies list, make sure that the CRONUS
International Ltd. company is selected.
d. Make sure that the Data common to all companies and
Application Objects options are selected.
e. In the Description field, type a short description for the backup.
In this case, you can type "LIVE DB Backup – To Create DEV DB".
f. In the File Name field, type the path and file name for the
backup. In this case, you can type
"C:\Users\Administrator\Desktop\CH5_LIVEDB.fbk".
Detailed Steps
1. Start backup.
a. In the Backup window, click OK to start the backup procedure.
b. When the backup has finished, a message appears on the screen.
Click OK to close the message.
Detailed Steps
1. Close the production database.
a. Click File > Database > Close to close the production database.
Detailed Steps
1. Connect to the SQL Server.
a. Click File > Database > New.
b. In the Server Name field, type the name of the SQL Server where
you want to create the database. In this case, type "NAV-DC-SQL-
SP".
c. In the Authentication field, select Windows Authentication.
d. Click OK to connect to the SQL Server.
Detailed Steps
1. Create a new database.
a. On the General tab, in the Database Name field, enter
NAV_DEMO2013_DEV.
b. On the Collation tab, click the Case-sensitive check box to clear
the selection.
c. On the Options tab, in the Recovery model field, select Simple.
d. Click OK to create the database.
Detailed Steps
1. Open the development database.
a. Click File > Database > Open.
b. In the Server Name field, enter NAV-DC-SQL-SP.
Detailed Steps
1. Select the backup file to restore.
a. Click Tools > Restore.
b. In the Restore dialog box, browse to the CH5_LIVEDB.fbk backup
file (in the C:\Users\Administrator\Desktop folder).
c. In the Restore dialog box, click Open.
Detailed Steps
1. Restore Application Objects and Common Data.
a. In the Restore window, click the Selected Companies field to
clear the selection.
b. Make sure that the Data common to all companies and
Application Objects options are selected.
c. Click OK to start the restore.
When the restore is finished, you receive the “The ‘LIVE DB –
Create DEV Env.’ Backup was successfully restored” message.
d. Click OK to close the message.
Detailed Steps
1. Close the development database.
a. Click File > Database > Close to close the development
database.
Detailed Steps
1. Open the development database.
a. In the Microsoft Dynamics NAV 2013 Development Environment,
click File > Database > Open.
b. In the Server Name field, enter NAV-DC-SQL-SP.
c. In the Database Name field, enter NAV_DEMO2013_DEV.
d. In the Authentication field, select Windows Authentication.
e. Click OK to open the database.
Detailed Steps
1. Select the backup file to restore.
a. Click Tools > Restore.
b. In the Restore dialog box, browse to the CH5_LIVEDB.fbk backup
file (in the C:\Users\Administrator\Desktop folder).
c. In the Restore dialog box, click Open.
Detailed Steps
1. Restore a company.
a. In the Restore window, click the Custom option.
b. In the Selected Companies list, select the CRONUS International
Ltd. company.
c. Click OK to start the restore.
When the restore is finished, you receive the “The ‘LIVE DB –
Create DEV Env.’ Backup was successfully restored” message.
d. Click OK to close the message.
Detailed Steps
1. Close the development database.
a. Click File > Database > Close to close the development
database.
When he starts developing, Mort notices that all new controls, variables, and text
constants are assigned IDs starting from 1,000,000,000. This makes it difficult to
trace the origin of a specific control. To structure his customizations, Mort want to
assign IDs starting from 90,000. So, he asks Tim to change the Start ID
(UidOffset) parameter for the development database.
Detailed Steps
1. Open the development database.
a. In the Microsoft Dynamics NAV 2013 Development Environment,
click File > Database > Open.
b. In the Server Name field, enter NAV-DC-SQL-SP.
c. In the Database Name field, enter NAV_DEMO2013_DEV.
d. In the Authentication field, select Windows Authentication.
e. Click OK to open the database.
Detailed Steps
1. Open the Alter Database window.
a. Click File > Database > Alter.
Detailed Steps
1. Close the development database.
a. Click File > Database > Close to close the development
database.
Module Review
Module Review and Takeaways
( ) Import, Export
( ) Upload, Change
( ) Upload, Download
2. How many companies can you create in a Microsoft Dynamics NAV database?
( )1
( )2
( )5
( ) 99
( ) Unlimited
( ) Import, Export
( ) Upload, Download
2. How many companies can you create in a Microsoft Dynamics NAV database?
( )1
( )2
( )5
( ) 99
(√) Unlimited
Module Overview
In the RoleTailored client for Windows, users can personalize their role center to
meet their individual work requirements. They can save their personalization
settings directly in the role center or create their own views or share other's views.
The following are some examples of user personalization options:
• Re-sizing columns.
• Changing what appears in drop-down menus.
• Personalizing the navigation pane.
• Adding or removing FactBoxes.
• Showing/hiding/promoting fields on FastTabs.
• Organizing items in the ribbon.
• Saving queries or filters.
• Selecting columns in a list location.
Objectives
RoleTailored Design
Design Principle
When you start the RoleTailored client for Windows, Microsoft Dynamics® NAV
2013 opens on the Role Center page:
The RoleTailored client for Windows is a customizable user interface that supports
the job functions of different work roles in your organization. The RoleTailored
client is built around a navigation structure based on a user-centric design. The
RoleTailored client is made up of several pages which contain different
information and tasks. The pages are combined in the RoleTailored client and
appear in a series of windows.
In the RoleTailored client, a user starts from a single navigational window called
the role center that displays information pertinent to his or her role in the
company. From the role center, the user can browse to additional information and
open separate windows to perform tasks and view data. For each role that you
support, you can create a role center that displays key information and tasks that
are required by that role.
The RoleTailored client uses several windows to display information. Two of the
key window types are the navigation window and task page window. The
navigation window is the main window in which users find the information that
they need to work with. The navigation window is used for the role center, List
Places, and Departments, as described in this topic.
A task page window opens separately from the navigation window when the user
selects an action from the navigation window or from other task page windows. It
is common for a user to have more than one task page window open at a time.
Navigation Window
The Content Area illustration shows the parts of the navigation window:
The navigation pane displays a menu that links different pages of the RoleTailored
client. Menu items are arranged in a hierarchical structure that lets the user drill
down through the different levels of menu items.
You use the navigation pane to link to the different List Places of the RoleTailored
client. To create menu items in the navigation pane, you add actions to the Role
Center page by using the Action Designer. You can include menu items under
Activity buttons (such as the Home button). You can also add more buttons, such
as Posted Documents, and include the menu items there. The Departments
button and its menu items are generated automatically based on the Microsoft
Dynamics NAV menu suite.
Address Box
The address box displays the location of the current page within the navigation
hierarchy of the application. The address box updates when the user moves to a
different page.
Status Bar
The status bar displays information about the current state of the RoleTailored
client session. This includes the name of the company, the date, and the user's
name or ID.
For users who work with more than one company, the status bar provides access
to all the companies that they work with. By clicking the company name, the user
can open a drop-down list which shows the companies available to them. Users
can switch between companies.
Content Area
The content area displays the content of a Role Center, List, or Department
pages. These pages are discussed later in this module.
You can enable the system indicator when you are working with different
instances of Microsoft Dynamics NAV 2013. For example, you can differentiate
between a production environment and a test environment or see when you are
in configuration mode. If you are working in configuration mode, then the system
indicator is automatically displayed, and you cannot turn it off. If you are working
in any other mode, then you must first set up the system indicator in the
Company Information window. It is then shown according to your preferences
on every page.
Company Information
Shows text that you enter in the
Name field.
4. In the System Indicator Style field, select from the Standard and
Accent1 through Accent9 options to add a certain style to the
system indicator.
5. In the System Indicator Text field, type your custom text. To show
the text, you must select the Custom Text option in the System
Indicator field.
6. Click OK, and then exit and open the RoleTailored client for Windows
to see the changes.
A task page window opens separately from the navigation window when a user
clicks an action or command. A task page window typically shows a single object
or element such as a task, list, or report. Common uses of task page windows
include creating or editing sales orders, customer details, and items.
Task page windows are similar in concept to the pop-up windows in Microsoft
Office Outlook that show an email, contact, or a task. It is typical for users to have
multiple task pages open at the same time. Similar to the navigation window, a
task page window includes a command bar and ribbon. Unlike the navigation
window, it does not include the navigation pane or status bar. The user can work
with more than one task page window open at a time.
You create a task page window by creating a page and then linking the page to
actions on other pages. The most common page types for task windows are Card,
Document, and List.
Microsoft Dynamics NAV 2013 uses pages as the main way to display and
organize data in the RoleTailored client. You can create pages to offer users a
visual experience that is closely aligned to Microsoft Office and Windows. There
are different page types that you use for different situations. The page type that
you select depends on the application task that you want to support, the content
that you want to display, and how you want to display it. For example, the Role
Center page is the main page of the RoleTailored client and it displays when the
RoleTailored client opens. The Role Center page resembles a home page that
helps users focus on their most important daily activities. It gives an overview of
the information relevant to user tasks on one page. Other types of pages, such as
list pages, display lists of customers or sales orders, whereas other pages, such as
Document task pages, focus on user tasks.
• Role center
• Card
• Card Part
• ConfirmationDialog
• DocumentPage
• List
• List Part
• Navigate
• StandardDialog
• Worksheet
For more information about the page types, see “Touring the RoleTailored Client
Pages” in the online Help.
More information about how to create pages is covered in the course C/SIDE
Introduction in Microsoft Dynamics NAV 2013.
Role Center
The role center is the main entry point into Microsoft Dynamics NAV 2013. The
role center opens when the user starts the RoleTailored client. You design the role
center based on the user's business role, taking into consideration the information
and tasks relevant to the user during a typical work day.
You create a role center by using a Role Center page. The Role Center page
opens in the navigation window. Usually, only a single navigation window is open
at a time. From there, users can open any number of task windows.
List Places
A list place displays information from a table in a list format with rows and
columns. Typically, list places are used to display data like sales orders or
customers. Similar to the role center, List Places appears in the navigation window,
including the navigation pane. List Places only open from the menu items in the
navigation pane.
To create a List Place, you create a list type page and then include the list place in
the navigation pane by adding actions to the Role Center page using the Action
Designer to create the menu items in the navigation pane.
More information about how to create a List Place and how to add actions is
covered in the course C/SIDE Introduction in Microsoft Dynamics NAV 2013.
Departments
The Departments item in the navigation pane of the RoleTailored client provides
links to all the pages of the RoleTailored client. The links and pages under
Departments are generated automatically based on the menu suite of the
RoleTailored client user. To change Departments, you change the menu suite.
More information about how to change the menu suite is covered in the course
C/SIDE Introduction in Microsoft Dynamics NAV 2013.
A role center is a type of page on which you can place different parts. Each part is
a container in which you can host other pages or predefined system parts, such as
an Outlook part or parts for adding tasks, notifications, or notes.
Profiles are collections of Microsoft Dynamics NAV users who share the same role
center. There are 21 role centers available in Microsoft Dynamics NAV.
In Microsoft Dynamics NAV 2013, each profile is linked to a Role Center page.
You use the User Personalization window to link the user to a profile and
explicitly assign a role to the user. When you start the RoleTailored client,
Microsoft Dynamics NAV checks your user credentials, finds the profile assigned,
and displays the corresponding role center. Users who are not explicitly assigned a
profile in the User Personalization window are assigned the default profile. The
default profile is the profile with the Default Role Center field set to Yes.
Configuration
In this lesson, you learn how you, as an administrator, can customize the
RoleTailored client for Windows user interface for a specific user profile to provide
a common identical user interface for a specific user role. The lesson also shows
how you can disable personalization for end-users, so they cannot change the
user interface. It also explains the different methods and startup parameters that
you can use when you start the RoleTailored client for Windows.
For example, the Order Processor role center is configured to reflect the tasks and
priorities of an order processor. In the RoleTailored client, the profile that is used
appears in the header of the role center’s main content area. An administrator can
then customize this role center to meet the needs of a specific role in a specific
company. The Order Processor role center can then be additionally personalized
on a single computer to meet the needs of a person who is performing the job as
an order processor. This person can personalize the role center by saving queries,
adding filters, and showing or hiding fields.
• Navigation pane
• FactBoxes
• Home parts
• Lists
• Views
• Task pages
• Ribbon items and groups
• Fields (show, hide, or promote)
• Report menus
Personalization
End-users perform all personalization tasks. Apart from what can be done as
configuration, users can also do the following:
• Resize columns.
• Change the contents of drop-down menus.
• Customize the navigation pane.
• Add or remove FactBoxes.
• Organize items in the Quick Access pane.
• Save queries or filters.
• Select columns in a List Place.
When you select a customization function, a customization dialog box for the
corresponding part appears. The customization dialog boxes are illustrated in the
next lessons.
Note: This process cannot be done if the RoleTailored client for Windows is
deployed using ClickOnce, because this does not support passing in command line
parameters.
1. Open the RoleTailored client, and then either search for or open the
Profiles page.
2. Double-click the profile that you want to change to open the
corresponding profile card.
3. Check whether the Owner ID field contains your user ID. If not, click
the AssistEdit ( ... ) button to open the Users window, select your
User ID, and then click OK to close the Users window.
4. Click OK to close the Profile Card window.
If you are the owner of the profile, you can open the RoleTailored client for
Windows in configuration mode for that profile. Changes that you make to a role
center in configuration mode apply to all users associated with the profile. You
can undo changes for any user interface element by using the Restore Defaults
button in any dialog box.
Replace profileid with the name of the profile that you want to configure.
For example, to configure the Accounting Manager profile, use this command to
open the RoleTailored client for Windows in configuration mode:
The ribbon in the RoleTailored client is a dynamic pane that changes according to
the page that is currently loaded. The ribbon for the Order Processor role center
reflects actions that are appropriate for a person in the order processor role. The
next demonstration shows how to promote an action to the Process group for the
Order Processor profile.
Demonstration Steps
FactBoxes are smaller windows that contain information related to the current
main window. They appear on the rightmost side of the page. The following steps
show how to add FactBoxes to the FactBox pane. The FactBoxes that are available
vary according to what is linked to the page.
Demonstration Steps
You can use personalization to customize the RoleTailored client for Windows by
hiding or displaying elements such as actions, fields, FactBoxes, and FastTabs. To
personalize the RoleTailored client for Windows, in the role center and on pages,
click Customize. On FastTabs and page parts, click Actions. By default,
personalization is enabled. You can disable personalization for RoleTailored client
users in the following ways:
In the previous paragraphs, you have seen how to start the RoleTailored client for
Windows from a command prompt to configure a role center and to disable
personalization. In addition to the configure and disable personalization
parameters, there are several other parameters that can be very useful for
administrators.
• Configure a profile.
• Disable Personalization.
• Start the RoleTailored client for Windows using a profile other than
the default profile.
• Start the RoleTailored client for Windows using a language other than
the default language.
• Start the RoleTailored client for Windows using client settings other
than the default client settings.
• Start the RoleTailored client for Windows and open the specified
page.
• Start the RoleTailored client for Windows and open the specified
report.
To start the RoleTailored client for Windows at a command prompt, follow these
steps:
Microsoft.Dynamics.Nav.Client.exe
Parameter Description
-? Displays this list of parameters.
Example:
This command starts the RoleTailored client for Windows in
configuration mode for editing the Accounting Manager
profile:
Microsoft.Dynamics.Nav.Client.exe -configure -
profile:"Accounting Manager"
-settings: file Starts the RoleTailored client for Windows with the specified
settings file.
Example:
This command starts the RoleTailored client for Windows with
a version of the ClientUserSettings.config file that is not at the
default location:
Microsoft.Dynamics.Nav.Client.exe -
settings:"C:\AuxClientSettings\ClientUserSettings.config"
-failurestacktrace Sends the stack trace for the RoleTailored client for Windows
to the Clipboard.
You can also start the RoleTailored client for Windows from the address bar in a
browser or from the Run window with the same options. To start the RoleTailored
client for Windows from a browser, type the following:
DynamicsNAV://<Server/ServerInstance>/<Company>/
Note: This process cannot be done when the RoleTailored client for Windows
is deployed using ClickOnce.
For example, to open the CRONUS International Ltd. company, you would enter
the following:
DynamicsNAV://localhost/DynamicsNAV/CRONUS%20International%20Ltd./
You can customize the navigation pane through the Customize Navigation Pane
dialog box. To open the dialog box, click the application menu, then click
Customize > Customize Navigation Pane. The Customize Navigation Pane
dialog box appears.
You can use the Customize Navigation Pane dialog box to do the following:
You cannot move, rename, or remove the Home or Departments buttons. Home
is always the first button and Departments is always last button. However, you
can move, rename, or remove other activity buttons in your navigation pane.
When you click Rename, a dialog box appears where you can change the name
and the icon of the menu button. The Rename “Posted Documents” Dialog Box
figure shows the Rename “Posted Documents” dialog box where you can change
the name of the Posted Documents button.
To change the name, enter the new name in the Name field. To change the icon,
select an icon from the list and then click OK to close the Rename dialog box.
After you created a new activity button, you must restart the RoleTailored client to
see the new activity button.
Note: If you do not add links to the activity button, the activity button is not
visible when you restart the RoleTailored client.
If you have permission to view a list, such as the Sales Order list, you can add a
link to an activity button.
If you want to move or copy a list from one activity button to another, follow
these steps:
Note: You cannot move links from the Departments menu to other activity
buttons. You can only copy items from the Departments menu.
Links from menus other than Home and Departments can be moved or copied to
any menu other than the Departments menu.
You can use the buttons in the Customize Navigation Pane dialog box to
change the order of the lists or to remove existing lists.
Your changes appear in the navigation pane when you restart Microsoft Dynamics
NAV.
Undo Customizations
If you want to cancel all the changes that you have made (and saved) to the
navigation pane, you can do this in the Customize Navigation Pane dialog box.
This restores the navigation pane that your administrator defined for you.
Customize Pages
Apart from the navigation pane, other elements of the RoleTailored client for
Windows user interface can also be customized. Customizing pages lets you
personalize various aspects of the user interface. The following are changes that
you can make:
All these customizations can be made by using the Customize This Page function
in the application menu. When you click Customize > Customize This Page in
the application menu, the Customize dialog box for the active page appears. The
content of the Customize dialog box can be different, depending on the page
type.
The Customizing a role center Page figure shows the customization dialog box for
a Role Center page:
You can use the Customize the Role Center dialog box to add available parts to
the page (or remove existing parts). Also, you can define the layout of the Role
Center page by moving parts up, down, left and right. Finally, you can customize
the individual parts of the role center by selecting a part and then clicking
Customize Part. For example, you can use the Customize Part function to do the
following:
The Display options pane lets you show or hide the Filter and FastBox panes. In
the Arrange by pane, you can define the sorting criteria for the list. On the
Choose columns pane, you can change the fields that will appear to the end-
user. The FactBoxes pane lets you define the FactBoxes to show on the page (and
to configure for example chart parts). Finally, on the Ribbon pane, you can define
the actions to show on the page.
The customization dialog box for card pages has more or less the same options as
that for list pages. On the FastTabs pane, you can select the FastTabs to show on
the card page and the order of the FastTabs. In addition, you can define the fields
to show on each FastTab and the importance of the fields. For more information,
see “Customize FastTabs” later in this module.
In Microsoft Dynamics NAV, you can select among different panes that provide
easy access to related information. Examples of these panes are the FactBox pane
(showing additional related information) and the Filter pane (letting you set or
remove filters).
In the list page with FactBox and Filter Pane figure, the Filter pane appears above
the list of customers, whereas the FactBox pane (containing three FactBoxes with
related information for the selected customer) appears at the right side of the
customer list.
Both panes can be shown or hidden directly from the Customize menu that
opens when you click Customize in the application menu. However, they can also
be shown or hidden by using the Customize dialog box.
Note: Panes on a role center can only be hidden by using the Customize
dialog box.
When you close the customization dialog box, the page is updated.
FIGURE 6.14: THE CUSTOMER LIST WITHOUT FACTBOX AND FILTER PANES
When you close the menu, the page or place updates with your changes.
The ribbon provides access to frequently used actions that relate to the selected
information. The ribbon can contain different tabs. The actions in the ribbon are
divided into groups, for example, New, Process, and Reports.
In Microsoft Dynamics NAV, you can add new commands, new groups and new
tabs to the ribbon (or you can remove and rearrange existing actions), so you can
gain fast and easy access to relevant actions.
To customize the ribbon, click Customize > Customize Ribbon in the application
menu. Or you can right-click the ribbon then click Customize Ribbon in the
shortcut menu.
The Customizing the Ribbon for the Customer List figure shows the Customize
Ribbon dialog box for the Customers List page.
Note: In a group, you can also create a menu. A menu is a group of related
actions. An example of a menu is the Dimensions menu, in the Customer group on
the Navigate tab of the Customer List page.
Note: Empty tabs, groups, and menus are not visible in the ribbon. To make a
tab visible, you must include at least one action in the group. You cannot add
actions directly to a tab.
1. Open the page for which you want to change the ribbon.
2. Open the Customize Ribbon dialog box.
3. Click Create Tab.
4. Type a name for the new tab.
1. Open the page for which you want to change the ribbon.
2. Open the Customize Ribbon dialog box.
3. In the Show actions in this order list, select the tab to remove.
4. Click Remove.
The whole tab including all underlying groups, menus, and actions, is removed.
1. Open the page for which you want to change the ribbon.
2. Open the Customize Ribbon dialog box.
3. Select the tab for which you want to create a group.
4. Click Create Group.
5. Type a name for the new group.
1. Open the page for which you want to change the ribbon.
2. Open the Customize Ribbon dialog box.
3. In the Show actions in this order list, select the group to remove.
4. Click Remove.
The whole group, including all underlying menus and actions, is removed.
1. Open the page for which you want to change the ribbon.
2. Open the Customize Ribbon dialog box.
3. In the Show actions in this order list, browse to the tab and select
the group to which you want to add an action.
4. In the Available actions list, select the action that you want to add.
5. Click Add.
1. Open the page for which you want to change the ribbon.
2. Open the Customize Ribbon dialog box.
3. In the Show actions in this order list, select the action to remove.
4. Click Remove.
Note: You can also add or remove whole tabs and groups from the Available
actions list.
Actions have a label and an icon. The icon for an action is defined during
development. However, you can change the size of the icon by using the Default
Icon Size button in the Customize Ribbon dialog box.
This button has the options of displaying an action icon as default size, small, or
large.
1. Open the page for which you want to change the ribbon.
2. Open the Customize Ribbon dialog box.
3. In the Show actions in this order list, select the action for which you
want to change the icon.
4. Click the sizing button to determine the appropriate icon size.
5. Click OK.
Note: When you customize the ribbon from the Customize Ribbon window,
some actions may not have the sizing button available.
Actions that are added to the Home tab by the developer in C/SIDE cannot have
their icons customized.
You can cancel all the changes that you have made (and saved) to the ribbon. This
restores the default setting that was defined by your administrator for this
particular page or list. To restore the default settings, click Restore Defaults and
then click OK.
By default, the ribbon is expanded and shows all groups in the selected tab.
However, you can collapse the ribbon so only the tabs are shown in the interface.
To collapse the ribbon, right-click the ribbon and then click Collapse Ribbon.
When collapsed, the ribbon can be expanded again by right-clicking the collapsed
ribbon and clicking Expand Ribbon.
The collapse state of the ribbon applies by page: you can collapse the ribbon in
the Customer Card page without having it collapsed in the Item Card page.
When the ribbon is collapsed, you can click the tab names to see the underlying
groups and actions.
A FactBox is an area that is located on the right side of a page and displays data
related to information about an item on the page. For example, on a list page that
shows sales orders, you can use a FactBox to show additional fields of a selected
sales order in the list.
The FactBox pane is a pane that is located at the right side of the content pane
and that is used to display the FactBoxes included in a page. In the section “Add
or Remove Filter and FactBox Panes” you have seen how you can enable or
disable the whole FactBox pane by using the Customize This Page action. This
section shows how you can add or remove FactBoxes in the FactBox pane.
The FactBoxes Customization Pane figure shows the FactBox customization pane
for the Customer List page.
In this pane you can select and customize the FactBoxes that appear.
Note: You can directly open the FactBoxes pane of the Customize dialog
box by clicking Customize > Choose FactBoxes in the application menu.
Customize a FactBox
To customize the information that is shown in a FactBox, click the Actions icon in
the FactBox title bar and then click Customize. The Customize dialog box for the
selected FactBox appears.
The Select the Fields to Show in a FactBox figure shows the customization dialog
box for the Sell-to Customer Sales History FactBox on the Customer List page.
To remove a field, select the field in the Fields shown list and then click Remove.
Customize FastTabs
You can arrange your FastTabs on a card page so that they support your typical
working flow in the best possible way. For example, you can change the order of
the FastTabs, show and hide fields, or make less important fields only appear
when they are required. You can also promote fields on a FastTab, so the fields
show on the FastTab when it is collapsed. This topic gives you a quick summary of
the information on the FastTab.
To customize the FastTabs on a card page, click Customize > Customize This
Page and then select the FastTabs pane.
The FastTabs Customization Dialog Box figure shows the FastTabs customization
dialog box for the Customer Card page:
You can add FastTabs by selecting a FastTab in the Available FastTabs list and
clicking Add. To remove a FastTab, select the FastTab In the Show FastTabs in
this order list and then click Remove.
To change the display order of the FastTabs, select the FastTab in the Show
FastTabs in this order list and then click Move Up or Move Down.
The FastTab Customization Dialog Box figure shows the FastTab customization
dialog box for the Foreign Trade FastTab of the Customer Card page.
To start, Tim configures the role center for the Sales Order Processor profile. He
removes the My Items List, and he adds the Connect Online and the My Job
Queue parts.
Tim configures the role center for the Sales Order Processor profile. He removes
the My Items List, and he adds the Connect Online and the My Job Queue parts.
Detailed Steps
1. Verify ownership of the profile.
a. Open the RoleTailored client for Windows, and then either search
for or open the Profiles page.
b. Double-click ORDER PROCESSOR to open the Sales Order
Processor profile card.
c. In the Owner ID field, click the AssistEdit button and then select
your CONTOSO\ADMINISTRATOR.
d. Click OK to close the window.
Detailed Steps
1. Start RoleTailored client for Windows in configuration mode.
a. Open a command prompt.
b. Change to the directory that contains the RoleTailored client for
Windows executable. For example, type the following command:
The RoleTailored client for Windows opens in configuration mode. You can check
this in the upper-right corner:
Detailed Steps
1. Close the RoleTailored client for Windows.
a. Click Exit in the application menu to close the RoleTailored client
for Windows and exit the configuration mode.
Module Review
Module Review and Takeaways
The navigation pane can be customized in many ways by using the Customize
Navigation Pane dialog box.
These navigation pane customizations allow the user to personalize the interface
as follows:
(√) Configuration applies to all users who have a specific profile, and
personalization applies to a single user.
2. Which command can you use to start the RoleTailored client for Windows in
Configuration mode for the IT Administrator profile?
Module Overview
Deploying software is essential to meet the changing application needs of
organizations. It provides these benefits:
Objectives
7-1
Installation and Configuration in Microsoft Dynamics® NAV 2013
Deployment Process
One of the challenges administrators in an organization typically face is
application life-cycle management. Imagine a scenario where an administrator has
to go to every single computer in a network to individually install any application
that is required by all the connected computers in the domain. Imagine an even
more complex network setup where the whole domain is scattered around the
globe.
Group Policy
The Group Policy Infrastructure figure shows the entities that are available and can
be managed in the Group Policy infrastructure.
The Scripts extension can apply one or more scripts to a computer or users. Scripts
that apply to computers run during startup and shutdown. Scripts that apply to
users run during logon and logoff.
7-2
Module 7: Deployment
The Registry extension is a way to use Group Policy to centrally manage client
registry keys. This client-side extension is used to apply registry-based policy
settings (Administrative Templates) by creating and configuring the client registry
keys.
The Software Installation extension of Group Policy enables you to provide on-
demand software installation and automatic repair of applications. Group Policy
offers a convenient method for distributing software, especially if you already use
Group Policy for other purposes such as securing the client and server computers.
Note: You must be logged on to the computer with an account that has
administrative credentials to use Group Policy Management Editor.
7-3
Installation and Configuration in Microsoft Dynamics® NAV 2013
The Group Policy Management Editor figure shows the Group Policy Management
Editor console.
• Computer Configuration
• User Configuration
7-4
Module 7: Deployment
Group Policy Software Installation helps you specify how applications are installed
and maintained within your organization. With Group Policy Software Installation,
you can manage an application in a Group Policy Object. This is in turn associated
with a particular Active Directory container – a site, a domain, or an organizational
unit. This makes sure of the following:
• Assign Software
You can assign a program distribution to users or computers. If you
assign the program to a user, it is installed when the user logs on to
the computer. When the user first runs the program, the installation is
completed.
• Publish Software
You can publish a program distribution to users. When the user logs
on to the computer, the published program is displayed in the
Add/Remove Programs dialog box (in the Windows Control Panel),
and it can be installed from there.
7-5
Installation and Configuration in Microsoft Dynamics® NAV 2013
Administrators: Full Control
Group Policy Software Installation (GPSI) uses the Windows Installer service to
maintain and manage the state of software installation. This service runs in the
background and enables the operating system to manage software installation,
based on information that is stored in the Windows Installer package.
Every time that you use the software installation extension of Group Policy to
deploy an application, update, or upgrade package, you must first prepare the
application for Windows Installer. If the application does not include a natively
authored Windows Installer package (.msi), you must obtain one or create a .zap
file.
7-6
Module 7: Deployment
• .zap files (*.zap): Non-Windows Installer-based applications must use
a .zap file to describe their existing Setup program. A .zap file is a text
file (similar to .ini files) that provides information about how to install
a program, the application properties, and the entry points that the
application should install.
For more information about tools and procedures for authoring Windows Installer
packages or repackaging existing applications for use with Windows Installer, see
Step-by-Step Guide to Software Installation and Maintenance
(http://go.microsoft.com/fwlink/?LinkId=267427).
The steps in the software deployment process vary, depending on whether the
application is published or assigned.
Published Applications
Assigned Applications
7-7
Installation and Configuration in Microsoft Dynamics® NAV 2013
4. The Windows Installer service retrieves the Windows Installer package.
5. A request for the software is sent to the Software Distribution Point.
6. The Windows Installer service is started, it installs the requested
Windows Installer package, and it opens the application.
This lesson discusses the steps of deploying Microsoft Dynamics NAV 2013 client
software with Group Policy. The tasks to deploy software with Group Policy are as
follows:
Before you can start to deploy software with Group Policy, you must plan the
deployment. When planning for software deployment, you should do the
following:
7-8
Module 7: Deployment
This table describes strategies and considerations for deploying software. Some of
these strategies might seem contradictory, but select the strategies that meet your
business goals.
Strategy Considerations
Create OUs based on software Lets you target applications to the
management needs. appropriate set of users. Group
Policy security settings are not
required to target the appropriate
set of users.
Deploy software close to the root Makes it easy to provide all users in
in the Active Directory tree. an organization with access to an
application. This reduces
administration because you can
deploy a single GPO instead of re-
creating that object in multiple
containers in the Active Directory
tree.
It is also your responsibility to verify that you are working within the software
guidelines provided by each independent software vendor.
7-9
Installation and Configuration in Microsoft Dynamics® NAV 2013
Software Preparation
Before you start the deployment, you must obtain the Windows Installer packages
(.msi files) for the software. Perform any necessary modifications to the packages,
and collect the transform (.mst) or patch (.msp) files. If you want to deploy
multiple applications, you should determine the correct installation order.
After you have finished planning and preparing for the software deployment,
copy the software to a Software Distribution Points (SDP). A Software Distribution
Point is a network location from which users can retrieve the software that they
need.
1. Create the folder for the software on the server that will be the SDP.
2. Share the folder on the network.
3. Set the appropriate permissions on the folder. Administrators must be
able to change the files (Full Control), and users must only view
(Read) the files from the shared SDP folder.
4. Copy the necessary software (Windows Installer packages,
transformations, patches and other components) to the SDP.
Now you can use Group Policy to manage the software within the appropriate
Group Policy object.
The Microsoft Distributed File System (DFS) gives users convenient access to
shared folders that are distributed throughout a network. With DFS, you can make
files distributed across multiple servers appear to users as if they are located in
one place on the network. For a software deployment with Group Policy, you can
set up DFS to automatically direct users to the nearest software distribution point.
7 - 10
Module 7: Deployment
• DFS Replication is an efficient, multiple-master replication engine
that you can use to keep folders synchronized between servers across
limited bandwidth network connections. It replaces the File
Replication Service (FRS) as the replication engine for DFS
Namespaces, and for replicating the AD DS SYSVOL folder in domains
that use the Windows Server 2008 domain functional level.
For more information about how to install and set up Distributed File Services, see
DFS Step-by-Step Guide for Windows Server 2008
(http://go.microsoft.com/fwlink/?LinkId=267428).
As soon as you have set up your distribution point and copied the software to it,
you can create a Group Policy Object to manage software installation. We
recommend that you use a separate Group Policy Object (GPO) for software
deployment. However, we do not recommend that you create a separate GPO for
each application that you want to distribute.
You can either create a new Group Policy Object or change an existing Group
Policy Object. When you create a new object, you can link it directly to a domain,
site, or organizational unit in the Active Directory.
To create a new GPO and link it to a domain or OU, follow these steps:
By default, the new GPO is linked to the site, domain, or OU where it was created.
As soon as you have created your new GPO, you can edit the GPO by using the
Group Policy Management Console (GPMC). The GPMC is a scriptable Microsoft
Management Console (MMC) snap-in. It provides a single administrative tool for
managing Group Policy across the enterprise. GPMC is the standard tool for
managing Group Policy.
7 - 11
Installation and Configuration in Microsoft Dynamics® NAV 2013
The Group Policy Management Console integrates the Group Policy functionality
that is provided by the following tools into a single console:
Administrators can perform core Group Policy tasks by using the GPMC instead of
these other tools. The GPMC provides a comprehensive set of COM interfaces that
can be used to programmatically access many of the operations supported by the
console.
The GPMC does not replace the Active Directory Users and Computers snap-in
and the Active Directory Sites and Services snap-in. The GPMC is intended for
Group Policy administration, whereas the Active Directory snap-ins are intended
for directory administration tasks such as creating user, computer, and group
objects.
7 - 12
Module 7: Deployment
The Default Domain Policy GPO and Default Domain Controllers Policy GPO are
important to the health of any domain. As a best practice, you should not edit the
Default Domain Controllers Policy GPO or the Default Domain Policy GPO, except
in the following cases:
• Press the Windows logo key + R to open the Run dialog box. Type
"gpmc.msc" in the text box, and then click OK.
• Click Start > All Programs > Accessories > Run. Type "gpmc.msc"
in the text box, and then click OK.
• Click Start > All Programs > Accessories > System Tools >
Control Panel > System and Security > Administrative Tools >
Group Policy Management.
• On the Windows Taskbar, click Start. In the Search programs and
files box, type "Group Policy Management", press Enter, and then
click the Group Policy Management link in the list.
To edit a Group Policy Object, right-click the Group Policy that you want to edit in
the GPMC and select Edit.
Instead of using the GPMC to edit a Group Policy Object, you can also create a
separate MMC for one or more specific Group Policy Objects.
7 - 13
Installation and Configuration in Microsoft Dynamics® NAV 2013
10. Click Finish to close the Select Group Policy Object dialog box.
11. Click OK to close the Add or Remove Snap-ins dialog box.
12. In the MMC, click File > Save As.
13. Select a path for the console.
14. In the File Name box, type a name.
15. Click Save.
You can now use the MMC to directly access and edit the GPO.
After you create your GPO for software installation, you can start to define your
software deployment. First, enter several default settings for the software to install.
You can configure default settings for software installation on a per-GPO basis. To
specify software installation defaults for the selected GPO, use the Software
Installation Properties dialog box, shown in the Software Installation Properties
Window figure.
7 - 14
Module 7: Deployment
To open this window, follow these steps:
The Software Installation Properties window has four tabs: General, Advanced,
File Extensions, and Categories.
In the General and Advanced tabs, specify how you want all Windows Installer
packages in the GPO to be deployed and managed.
In the File Extensions tab, specify which application is installed when users open
a file that has an unknown file name extension. If multiple applications are
associated with a specific file name extension, you can also set an installation
priority for the applications. (The application that has the highest priority is
installed first.) File name extensions are managed on a per-GPO basis, so
changing the priority in a GPO affects only the users who have that GPO applied.
In the Categories tab, designate categories for organizing assigned and published
applications to make it easier for users to locate the appropriate applications
under Programs (or Add/Remove Programs) in Control Panel. You can, for
example, make separate categories for productivity applications and development
applications.
In the General tab of the Software Installation Properties dialog box, you must
enter the default location for software packages in the selected GPO. To do this,
type the Uniform Naming Convention (UNC) path
(\\<servername>\<sharename>) to the software distribution point for the
Windows Installer packages (.msi files) in the GPO in the Default Package
Location box.
Note: You must browse for the software distribution point that you created in
the previous section in relation to the network share location, instead of the local
drive on the server. This makes sure that you are managing software from the
network share location that users can access. Users typically cannot access the
package from the local drive of the server.
7 - 15
Installation and Configuration in Microsoft Dynamics® NAV 2013
Setting Options for New Packages and User Interface
To control what happens when you add a new package to the selected GPO, you
use the General tab in the Software Installation Properties dialog box, and set
options in the New packages frame. The default behavior is that the Deploy
Software dialog box appears every time, and the administrator can select one of
the choices from that dialog box.
The following table lists the options for New packages frame:
Option Description
Display the Deploy Software Select this option to specify that
dialog box when you add new packages to the
GPO, the Deploy Software dialog
box appears. This lets you decide
whether to assign, publish, or
configure package properties. This is
the default setting.
7 - 16
Module 7: Deployment
Option Description
Publish Select this option to specify that
when you add new packages to the
GPO, they are published by default
with standard package properties.
Note: You cannot add or change transforms (.mst files) after the software is
deployed.
7 - 17
Installation and Configuration in Microsoft Dynamics® NAV 2013
Similarly, the options in the Installation user interface options frame let the
administrator set how much of the user interface (UI) the Windows Installer
presents to a user during installation. The Basic UI (the default option) only
presents progress bars and messages. No user choices are presented other than
Cancel. The Maximum UI option shows the UI (including all messages and
windows) that the author of the Windows Installer package defined.
You can use the options on the Advanced tab of the Software Installation
Properties window to automatically remove the application when it is no longer
managed, to publish OLE information to the Active Directory, and to make 32-bit
applications available on 64-bit platforms.
7 - 18
Module 7: Deployment
Select any of these options, to be applied to all packages in the GPO:
You can use the File Extensions tab to select the file name extension for which
you want to specify an automatic software installation. This means that when a
specific application is not already installed, selecting this option causes the
application to be automatically installed when the user opens a file that has this
file association, for example, by double-clicking the file.
Note: If a user opens a file that has an unknown file name extension and
there is no software application associated to this file name extension in the
Software Installation Properties window, the user sees the Open With dialog box
and is asked to select the best alternative from the software already present on his
or her computer.
You can associate multiple applications to the same file name extension. In
addition, you can define the precedence or priority with which Windows starts
applications when a user opens a document that has the selected extension. For
example, when you deploy both Microsoft Visual Studio 2010 and Microsoft
Office SharePoint Designer by using Group Policy, both applications can edit ASPX
files that have the .aspx extension. To configure the file name extension priority so
that users who are managed by this GPO always install Microsoft Office
SharePoint Designer, set Microsoft Office SharePoint Designer as the application
that has the highest priority for the .aspx extension. When a user who is managed
by this GPO has installed neither Microsoft Visual Studio 2010 nor Microsoft Office
SharePoint Designer, Software Installation installs Microsoft Office SharePoint
Designer and opens the file for editing when the user double-clicks an ASPX file.
7 - 19
Installation and Configuration in Microsoft Dynamics® NAV 2013
You can use the Application precedence list to change the priority of an
application. Move the application that has the highest precedence to the top of
the list by using the Up and Down buttons. The application at the top of the list is
automatically installed if a document that has the selected file name extension is
invoked before the application is installed.
7 - 20
Module 7: Deployment
Setting Category Options
Best Practice: Because Categories are established per domain instead of per
GPO, an organization should standardize the Categories and create them in a
centralized manner.
7 - 21
Installation and Configuration in Microsoft Dynamics® NAV 2013
To create a new category, click Add, enter the name of the application category,
and then click OK. To modify the name of an existing category, select the
category, click Modify, modify the name, and then click OK. To remove a
category, select the category and then click Remove.
Now you are ready to add the software packages that you want to deploy to the
software installation GPO. When you add a software package to the GPO, you
must specify how it will be deployed (published or assigned).
Best Practice: Before you add any software package to the GPO, you must
decide whether you want to deploy the application per user or per computer, and
whether you want to publish or assign it.
To add a software package to the software installation GPO and select the
deployment method, follow these steps:
7 - 22
Module 7: Deployment
Deployment Method Description
Assigned Select this option to assign the Windows
Installer package to users or computers
without applying modifications to the
package.
7. Click OK.
FIGURE 7.9: SOFTWARE INSTALLATION GPO CONTAINING THE CLIENT FOR WINDOWS
AS A PUBLISHED APPLICATION
In this step, you can fine-tune the deployment of each application by setting
Windows Installer package properties in the Properties dialog box for the
package.
7 - 23
Installation and Configuration in Microsoft Dynamics® NAV 2013
The Setting Software Package Properties figure shows the Properties dialog box
for a published application.
To open the Properties dialog box, right-click the software package in the details
pane of the GPO and select Properties. The Properties dialog box for the
Windows Installer package contains the following tabs: General, Deployment,
Upgrades, Categories, Modifications, and Security.
Note: When you add a software package to the GPO and select Advanced in
the Deploy Software dialog box, the Properties dialog box appears immediately.
On the General tab, you can change the default name of the package and
designate a support URL. Users can select the support URL from the Programs
and Features (or Add Or Remove Programs) window to be directed to a
support webpage. A support URL can contain helpful information such as
frequently asked questions and can help reduce calls to a help desk or support
team.
7 - 24
Module 7: Deployment
In the Deployment tab, you can change the way the application is deployed and
the user interface options. In the Deployment Type section, you can select the
deployment option:
In the Deployment Options section of the Deployment tab, you can select the
following options:
7 - 25
Installation and Configuration in Microsoft Dynamics® NAV 2013
Deployment Option Description
Uninstall this application Select this option to remove the
when it falls out of the scope application when the associated
of management GPO is no longer applicable for the
user or computer.
This typically happens when users log
on or computers start if there is
relocation to a site, domain, or OU
for which the application is not
deployed.
Do not display this package Select this option to specify that the
in the Add/Remove Programs application is not displayed in the
control panel Programs and Features (or
Add/Remove Programs) item in
Control Panel.
In the Installation user interface options area, select one of the following:
You can click Advanced to open the Advanced Deployment Options dialog box
and set any of the following options:
Option Description
Ignore language when Select this option to specify whether
deploying this package to deploy the package even if it is in
a different language.
7 - 26
Module 7: Deployment
Option Description
Make this 32-bit X86 Select this option to specify whether
application available to the 32-bit program is assigned or
Win64 computers published to 64-bit computers.
Include OLE class and product Select this option to specify whether
information to deploy information about COM
components with the package.
In the Upgrades tab, you can select the software package(s) the current package
will upgrade. The Upgrades tab does not appear for packages created from
application files (.zap files).
On the Categories tab, you can select the categories under which the application
is listed in the Get Programs (or Add/Remove Programs) item in Control Panel.
This makes it easier for users to find the application. To link a category to the
application, select the category in the Available categories list and then click
Select. To remove an application from a category, select the category in the
Selected categories list and then click Remove.
Note: Do not click OK in the Modifications tab until you have finished
configuring the modifications. When you click OK, the package is assigned or
published immediately. If the modifications are not configured correctly, you have
to uninstall or upgrade the package with a correctly configured version.
Finally, in the Security tab, you can indicate permissions for the software
installation. Permissions set for software installation pertain only to the package
installation. Administrators who manage the application installation should have
the Full Control permission set to Allow. Users who use the software assigned or
published by the application should have the Read permission set to Allow.
When you are finished setting the properties, click OK to apply the new settings.
7 - 27
Installation and Configuration in Microsoft Dynamics® NAV 2013
Best Practices
Here are several best practices for administrators who want to deploy software
through Group Policy:
We recommend that you do not install these applications manually, because this
makes it more complex to redeploy the application through Group Policy.
7 - 28
Module 7: Deployment
Removal Method Description
Immediately uninstall the This option immediately removes the
software from users and software when the computer is
computers restarted or the next time the user
logs on to the computer.
Let users continue to use the This option prevents new instances of
software, but prevent new the application from being installed.
installations But it still permits users who have
already installed the application to
continue using it.
7 - 29
Installation and Configuration in Microsoft Dynamics® NAV 2013
Tim is preparing to deploy Microsoft Dynamics NAV 2013 RoleTailored client and
Web client in the company domain. Instead of installing the clients on all
computers either manually or with Remote Desktop, Tim wants to use a Group
Policy to install the applications automatically. Tim plans to have the Web client
installed on all computers in the domain. The RoleTailored client is then made
available for installation. Tim wants to create a software distribution point and a
new Group Policy Object (known as Software Installation GPO). He then wants to
copy both clients to the software distribution point and add the clients to the
GPO. Tim has verified that the .NET Framework 4.0 is installed on every computer
in the domain.
Objectives
Tim wants to create a new software distribution point and copy the client software
to it. Next he plans to add a new GPO and add the clients to it.
Detailed Steps
1. Logon to the server as Administrator.
a. On the Desktop, press Ctrl+Alt+Del.
b. In the Password field, type the password for the Administrator
user:
"Passw0rd".
c. Press Enter.
7 - 30
Module 7: Deployment
Task 2: Create a New SDP
Detailed Steps
1. Open a Command Prompt.
d. On the Windows Taskbar, click Start > Run.
e. In the Run dialog box, type "cmd" and then click OK.
7 - 31
Installation and Configuration in Microsoft Dynamics® NAV 2013
Task 3: Copy the Software to the SDP
Detailed Steps
1. Insert the Microsoft Dynamics NAV 2013 DVD in the DVD drive.
a. Open the DVD drive by pressing the Eject button on the physical
drive.
b. Put the DVD on the tray.
c. Press the Close button to close the DVD drive.
7 - 32
Module 7: Deployment
Task 4: Create a New GPO
Detailed Steps
1. Open Group Policy Management console.
a. On the Windows Taskbar, click Start.
b. In the Search programs and files box, type "Group Policy
Management".
c. Click the corresponding link in the list.
Detailed Steps
1. Select the newly created GPO.
a. In the Group Policy Management console, select the Group
Policy Objects node.
b. Right-click the Software Installation GPO, and select Edit.
7 - 33
Installation and Configuration in Microsoft Dynamics® NAV 2013
d. In the Open dialog box, in the File Name field, type "\\NAV-DC-
SQL-SP\SDP\NAV2013\RoleTailored Client\Microsoft Dynamics
NAV RoleTailored Client.msi".
e. Click Open.
f. In the Deploy Software dialog box, select Published.
g. Click OK.
7 - 34
Module 7: Deployment
Exercise 2: Create a GPO Console for the Software
Installation GPO
Exercise Scenario
Tim wants to create an MMC so he can directly edit the newly created Software
Installation GPO.
Detailed Steps
1. Open Microsoft Management Console.
a. On the Windows Taskbar, click Start > Run.
b. In the Run box, type "mmc" and press Enter.
2. Add a snap-in.
a. In Microsoft Management Console window, click File >
Add/Remove Snap-ins.
b. In the Add or Remove Snap-ins dialog box, in the Available
snap-ins list, select Group Policy Management Editor.
c. Click Add.
d. In the Select Group Policy Object dialog box, click Browse.
e. In the Browse for a Group Policy Object dialog box, click the
All tab.
f. In the All Group Policy Objects stored in this domain list,
select the Software Installation GPO.
g. Click OK.
h. In the Select Group Policy Object dialog box, click Finish.
i. In the Add or Remove Snap-ins dialog box, click OK.
7 - 35
Installation and Configuration in Microsoft Dynamics® NAV 2013
3. Save the console.
a. In Microsoft Management Console window, click File > Save
As.
b. In the Save As dialog box, in the Save in drop-down list, select
Desktop.
c. In the File Name field, type the name for the console window:
"Software Installation GPO".
d. Click Save.
7 - 36
Module 7: Deployment
Module Review
Module Review
• The tasks for deploying software with Group Policy are as follows:
plan and prepare the software deployment, set up a Software
Distribution Point (SDP), create a GPO, specify the software
installation properties for the GPO, add Windows Installer packages
to the GPO, and set Windows Installer package properties.
• For a software deployment with Group Policy, you can set up
Distributed File System (DFS) to automatically direct users to the
nearest SDP.
• You can define software deployment properties that affect all
Windows installer packages in a GPO.
• You can also define software deployment properties that affect
individual Windows Installer packages in a GPO.
1. Which tool can you use to edit domain-wide Group Policy Objects?
7 - 37
Installation and Configuration in Microsoft Dynamics® NAV 2013
3. What is true about published and assigned applications?
( ) *.exe files
( ) *.bat files
( ) *.msi files
( ) *.cmd files
( ) *.pif files
7 - 38
Module 7: Deployment
1. Which tool can you use to edit domain-wide Group Policy Objects?
7 - 39
Installation and Configuration in Microsoft Dynamics® NAV 2013
4. Which files can be deployed using the Software Installation extension?
( ) *.exe files
( ) *.bat files
( ) *.cmd files
( ) *.pif files
7 - 40
MODULE 8: MICROSOFT DYNAMICS NAV
POWERSHELL
Module Overview
Microsoft Dynamics NAV 2013 includes two new tools for administering and
configuring Microsoft Dynamics NAV Server and Microsoft Dynamics NAV sites:
This module describes how to use the Windows PowerShell API to configure
Microsoft Dynamics NAV Server based on practical examples. It is not meant as a
complete reference guide for the PowerShell commands.
Objectives
• Explain how to start the Microsoft Dynamics NAV Administration
Shell.
• Explain the general commands and parameters that can be used
when administering Microsoft Dynamics NAV Server.
• Illustrate how to use the PowerShell commands to administer
Microsoft Dynamics NAV Server.
Lesson Objectives
• Explain how to start the Microsoft Dynamics NAV Administration
Shell.
• Explain the general commands and parameters that can be used
when administering Microsoft Dynamics NAV Server.
Introduction
Microsoft Dynamics NAV 2013 includes two new tools for administering and
configuring Microsoft Dynamics NAV Server and Microsoft Dynamics NAV sites:
To install the tools, run Microsoft Dynamics NAV Setup and select the Server
Administration Tool component.
You can use the tools to configure Microsoft Dynamics NAV Server. Please be
aware that both tools do not provide the same functions for administration.
Depending on the setting that you want to modify or the task that you want to
perform, you select a different server administration tool.
For example, the Server Administration Tool lets you create and manage server
instances. But you cannot use it to add users and permission sets or to assign
permission sets to users. On the other hand, you can use the Server Administration
Tool to administer server instances on remote servers, where the PowerShell API
can be used only to administer server instances on the local server.
For more information about how to use the Server Administration Tool, see the
Microsoft Dynamics NAV Server module of this course.
To start a Windows PowerShell session, click Start > All Programs > Microsoft
Dynamics NAV 2013 Administration Shell.
When you start the session, the Administration Shell command prompt will
appear:
FIGURE 8.1: THE MICROSOFT DYNAMICS NAV 2013 ADMINISTRATION SHELL COMMAND
PROMPT
Available Commands
To see the commands that are available for administering Microsoft Dynamics
NAV, type the following command at the Windows PowerShell prompt:
Get-Command *NAVServer*
Commandlet Help
Each command has specific parameters that you can use. Some of these
parameters are mandatory, some are optional. To get Help about the syntax and
options for a specific command, type the following command:
where <command name> is replaced by the name of the command for which you
want help.
The Help information describes the meaning, the parameters and the use of the
command. It describes what you can use the command for, what parameters you
can use and whether the parameters are mandatory or not.
Get-Help Options
By default, the Get-Help command shows basic Help information for the specified
command. However, you can add some options to receive additional Help
information including examples.
If you want to see examples for a specific command, you can use the –examples
option.
To see detailed information for a command, you can add the –detailed option.
This command shows you more detailed Help information for the command.
Apart from the basic information, it provides a more detailed description of each
parameter (and its data type). In addition, the detailed Help information includes
the examples.
Finally, you can add the –full option to receive technical information for the
command, as shown in the following example:
In the following example, the two instructions have the same result:
Positional parameters are parameters that have a fixed position in the syntax.
Positional parameters can be entered as a “Name – Value” pair, but you can omit
the parameter name. Positional parameters must be entered in a fixed order. In
many of the commands that are available in the Microsoft Dynamics NAV
PowerShell session, the –ServerInstance parameter is a positional parameter. This
means the following:
Because the ServerInstance parameter has a fixed position, the following two
commands have the same result:
Export-NAVServerLicenseInformation ‘DynamicsNAV70’
Common Parameters
The common parameters are a set of parameters that you can use with any
commandlet. They are implemented by Windows PowerShell, not by the
commandlet developer, and they are automatically available to any commandlet.
You can use the common parameters with any commandlet, but they might not
affect all commandlets. For example, if a commandlet does not generate any
verbose output, the Verbose common parameter has no effect.
During execution, a PowerShell command generally does not display any detailed
information about the operation that is performed by the command. This
information resembles the information in a trace or in a transaction log. However,
if you add the –verbose parameter to a Microsoft Dynamics NAV PowerShell
command, detailed information about the executed operation is displayed in the
console.
For more information about this parameter (and other), enter the following
instruction in a PowerShell window:
Get-Help about_commonparameters
This parameter can be added to format the commandlet output as an XML node
or an XML document.
In addition to the common parameters, many commandlets offer the WhatIf and
Confirm risk mitigation parameters. Commandlets that involve risk to the system
or to user data usually offer these parameters.
For more information about the common parameters, you can enter the following
instruction at the PowerShell command prompt:
Get-Help about_commonparameters
PowerShell Commands
This lesson describes the PowerShell commands that are available to administer
Microsoft Dynamics NAV Server.
Lesson Objectives
Export-NAVServerLicenseInformation
You can use this command to export license information for the Microsoft
Dynamics NAV license used by the current server instance from the database and
display the license information in the console window.
The following example displays license information for the DynamicsNAV70 server
instance in the console window:
Please be aware that the service account running the server instance may not
have access to the database where the global license is stored. If there is an error,
check the event log on the server, to see what permissions are needed.
Import-NAVServerLicense
You can use the Import-NAVServerLicense cmdlet to import a license file to the
database used by the specified server instance.
The Database parameter specifies the database to which you want to import the
license file. You can use the following values:
The following command uploads the license file NewLicense.flf (located in the
C:\Temp folder) to the DynamicsNAV70 server instance and stores the license file
in the master database.
The following command uploads the license file NewLicense.flf (located in the
C:\Temp folder) to the DynamicsNAV70 server instance and saves the license file
in the NAV database.
Note: Importing a license file to a server instance requires the server instance
to be restarted in order to activate the new license. To do this, you can use the Set-
NAVServerInstance command.
Get-NAVServerSession
You can use this command to list all active (RoleTailored client for Windows and
NAV Portal Framework for SharePoint) sessions that belong to a specific server
instance. The commandlet uses the Active Sessions table to build the list.
Each session in the list has a unique id that maps to the Session ID field in the
Active Sessions table.
By default, the command returns an XML document. To change the default output
and display the results in the PowerShell command prompt, you can add ‘|FC’ as
shown in the examples below.
Get-NAVServerInstance
You can use the Get-NAVServerInstance cmdlet to obtain the service details of a
specified server instance.
If you do not specify a server instance name, the commandlet obtains details of all
registered NAV server instances on the computer that is running the server. The
list contains the service name, the display name, the current state, the service
account and the build number of the server instance.
The following example shows the service details for the DynamicsNAV70 server
instance in the PowerShell console window.
The following example shows the service details for all registered Dynamics NAV
server instances (on the local computer) in the PowerShell console window.
Get-NAVServerPermission
You can use this command to a get list of permission sets for a specific server
instance. The list can be filtered by permission set, object type or object ID. The list
will show all Permission Sets that include permissions for a specific NAV object
(type and number) and the effective permissions for each permission set.
Integer Value for Object Type Text Value for Object Type
0 TableData
1 Table
2 Form
3 Report
4 Dataport
5 Codeunit
6 XMLPort
7 MenuSuite
8 Page
9 Query
10 System
11 FieldNumber
The following instruction shows a list of all permission sets that contain
permissions for the Post Code table (table 225).
The following instruction shows a list of all permission sets that contain
permissions for the Navigation Pane Designer function.
The following instruction shows a list of all permission sets that contain
permissions for codeunit 5311.
Note: Remember to use the correct case for the parameters, and especially for
the Select-xml option.
Get-NAVServerPermissionSet
You can use this command to obtain a list of all Microsoft Dynamics NAV
Permission Sets for a specific server instance.
You can use the following command in order to display all records.
Note: Remember to use the correct case for the parameters, and especially for
the Select-xml option.
You can use this command to retrieve a list of NAV users for the specified server
instance.
The following instruction lists all NAV users for the DynamicsNAV70 server
instance to the console window.
Get-NAVServerUserPermissionSet
This commandlet shows an overview of all permission sets per user and per
company for a specific server instance. The list can be filtered by permission set,
by Company Name and by Windows Account.
The following instruction lists all permission sets that are defined on the
DynamicsNAV70 server instance.
The following instruction lists the permission sets that are assigned to the user
ELLEN for the company CRONUS International Ltd.
The following instruction lists the users who are assigned the SUPER permission
set.
You can use this command to return configuration settings for the specified
Microsoft Dynamics NAV server instance. The command returns an XML
document that contains the following configuration settings: NetworkType,
DatabaseServer, DatabaseInstance and DatabaseName.
The following instruction displays a list of all possible keys with their current
values for a server instance called ‘DynamicsNAV70’.
(Get-NAVServerConfiguration –ServerInstance
‘DynamicsNAV70’).Configuration.appSettings.add
New-NAVServerInstance
You can use the New-NAVServerInstance command to create a new NAV Server
Instance, based on default values. It sets up all permissions that are needed for the
server instance to start. All the configuration values for this new server instance
are based on default values. Therefore one should specify DatabaseServer and
DatabaseName before the server can accept client requests.
New-NAVServerPermission
You can use this commandlet to define new permissions for an existing permission
set.
You can use either the text value or the numeric value for the permission option.
For the ObjectType you can use either the integer value or the text value.
2 Form
3 Report
4 Dataport
5 Codeunit
6 XMLPort
7 MenuSuite
8 Page
9 Query
10 System
11 FieldNumber
The following instruction adds a new permission for table 5050 to the ‘ALL’
permission set on the DynamicsNAV70 server instance. The permission set
contains direct read permission, direct insert permission, indirect modify
permission, no delete permission and direct execute permission for table 5050.
This command creates a new Microsoft Dynamics NAV permission set on the
specified server instance.
Note: We recommend that you do not use the common Microsoft Dynamics
NAV filter characters (such as & and | and ..) in the name of a new permission set.
The following instruction creates a new permission set called ‘INSTCONF’ on the
DynamicsNAV70 server instance. The description of the permission set is
‘Installation & Configuration’.
New-NAVServerUser
You can use this command to create a new Microsoft Dynamics NAV user on the
specified server instance. You can either use the Windows Account or the Security
Identifier (SID) to identify the user.
The Database cannot be configured to allow anonymous logons, meaning that the
following accounts or SIDs cannot be used:
The following instruction adds the Windows user KEN (from the CONTOSO
domain) as a user on the DynamicsNAV70 server instance.
The following instruction adds the Network Service account as a user to the
DynamicsNAV70 instance.
The following instruction adds the Network Service account as a user to the
DynamicsNAV70 instance. Here the –Sid parameter is used instead of the
WindowsAccount parameter.
New-NAVServerUserPermissionSet
You can use this command to assign a permission set to a user. If you do not
specify the –CompanyName parameter, the permission set is assigned for all
companies in the database. You can use the –CompanyName parameter to limit
the permission set assignment to a specific company only.
You can either use the –Sid or the –WindowsAccount parameter to identify the
user.
Please be aware that the company name is case-sensitive. Company names that
contain spaces must be included in single quotation marks.
Remove-NAVServerSession
You can use this command to terminate a Microsoft Dynamics NAV client session
with the specified ID on the specified server instance.
You can use the Get-NAVSeverSession command to obtain a list of all active client
sessions on a specific server instance. Each active client session has a Session Id.
When you terminate a Windows client session, the client session is terminated and
the following message is displayed on the client computer.
The following instruction terminates the client session with Session ID = 103 on
the DynamicsNAV70 server instance.
You can use this command to delete an existing Microsoft Dynamics NAV Server
instance. When you use this command to remove an existing server instance, the
server instance is uninstalled. This means the following:
Remove-NAVServerPermission
You can use this command to remove a specific permission from a permission set
on a specific server instance.
For the ObjectType you can use either the integer value or the text value.
Integer Value for Object Type Text Value for Object Type
0 TableData
1 Table
2 Form
3 Report
4 Dataport
5 Codeunit
6 XMLPort
7 MenuSuite
8 Page
10 System
11 FieldNumber
The following instruction removes permissions for Page 21 from the ‘BASIC’
permission set on the DynamicsNAV70 server instance.
Remove-NAVServerPermissionSet
You can use this command to remove a specific permission set from the specified
server instance.
The following instruction removes the INSTCONF permission set from the
DynamicsNAV70 server instance.
Remove-NAVServerUser
You can use this command to remove a Microsoft Dynamics NAV user on the
specified server instance.
To identify the user to remove, you can user either the user’s SID or the user’s
Windows Account name as a parameter. To retrieve a user’s SID, you can use the
Get-NAVServerUser command.
The following instruction removes the Network Service user from the
DynamicsNAV70 server instance. It uses the –Sid instead of the –WindowsAccount
parameter.
The following instruction removes the domain user KEN (from the CONTOSO
domain) from the DynamicsNAV70 server instance.
Remove-NAVServerUserPermissionSet
You can use this command to remove a permission set from a specific user.
To identify the user, you can user either the user’s SID or the user’s Windows
Account name as a parameter. To retrieve a user’s SID, you can use the Get-
NAVServerUser command.
The following instruction takes away the DOC-APP-USER permission set from the
domain user CONTOSO\KEN on the DynamicsNAV70 server instance.
The following instruction takes away the DOC-APP-USER permission set from the
domain user CONTOSO\KEN on the DynamicsNAV70 server instance. The
permission set is taken away for the CRONUS International Ltd. company only (not
for any other companies).
You can use this command to rename an existing permission set on the specified
server instance.
You can add the –PermissionSetName parameter if you want to change the
description of the permission set. If you omit the –PermissionSetName parameter,
the description of the permission set is not changed.
Set-NAVServerUser
You can use this command to rename an existing NAV user on the specified server
instance.
To identify the users, you can use either the user’s SID or the user’s Windows
account (or a combination of SID and account name).
Set-NAVServerInstance
You can use this command to change the service account of a specific server
instance. Also it can be used to change the state of a specific server instance. In
other words, you can use the command to (re)start and stop the server instance.
Note: Changing the service account for a specific server instance requires the
service to be restarted before the new settings take effect. You can use the Set-
NAVServerInstance with the –Restart parameter to restart the service.
The command is typically used after you import a new license using the Import-
NAVServerLicense command.
The following instruction sets the DynamicsNAV70 server instance to run under
the domain user account CONTOSO\NAV70Service account. (This example
assumes that the password for this account is ‘Pa$$w0rd’.)
The following instruction stops and restarts the DynamicsNAV70 server instance.
Set-NAVServerPermission
You can use this command to change the permissions for a specific Permission Set
on the specified server instance.
For the ObjectType you can use either the integer value or the text value.
Integer Value for Object Type Text Value for Object Type
0 TableData
1 Table
2 Form
3 Report
4 Dataport
5 Codeunit
6 XMLPort
7 MenuSuite
8 Page
9 Query
10 System
11 FieldNumber
The following instruction sets all permissions for the Company Information table
to Indirect for the ALL permission set.
Set-NAVServerConfiguration
You can use this command to manage the configuration settings for a specific
NAV server Instance. This command is used to change configuration values for a
named server instance. These values are written directly to the appSettings section
in the configuration file. The changes are not applied before the server instance is
restarted.
The following instruction changes the value of the “DatabaseServer” key to ‘NYC-
DCSQL-2012’ for the DynamicsNAV70 server instance.
One day Julia, the Marketing Executive who manages the sales and marketing
strategy contacts Tim. Julia wants to investigate how she can use the Sales &
Marketing functionality in Microsoft Dynamics NAV in order to monitor marketing
effectiveness and industry success.
As a first step, Tim provides her access to the Test database, and assigns the
necessary permission sets so she can fully test the Relationship Management
functional area. Tim grants the permissions only for the CRONUS International Ltd.
company.
Before he grants Julia access to the Test database, Tim checks the server state of
the DynamicsNAVTest server instance. He also checks whether the correct license
is used.
Detailed Steps
1. Log on to the server as Administrator.
a. On the Desktop, press Ctrl+Alt+Del.
b. In the Password field, enter the password for the Administrator
user:
Passw0rd
c. Press Enter.
Detailed Steps
1. Start a Microsoft Dynamics NAV 2013 PowerShell Session.
a. In the Windows Taskbar, click Start > All Programs > Microsoft
Dynamics NAV 2013 Administration Shell.
Detailed Steps
1. Retrieve a list of all registered server instances.
a. In the PowerShell window, enter the following:
Get-NAVServerInstance |fc.
Detailed Steps
1. Check the license information for the DynamicsNAVTest server
instance.
a. In the PowerShell window, enter the following:
Export-NAVServerLicenseInformation –ServerInstance
‘DynamicsNAVTest’.
b. Check the company information in Licensed to.
Detailed Steps
1. Add a new user on the DynamicsNAVTest server instance.
a. In the PowerShell window, enter the following:
New-NAVServerUser –ServerInstance ‘DynamicsNAVTest’ –
WindowsAccount ‘CONTOSO\JULIA’.
Detailed Steps
1. Add BASIC permission set.
a. In the PowerShell window, enter the following:
New-NAVServerUserPermissionSet –ServerInstance
‘DynamicsNAVTest’ –PermissionSetId ‘BASIC’ –WindowsAccount
‘CONTOSO\JULIA’ –CompanyName ‘CRONUS International Ltd’.
Detailed Steps
1. Add RM-SETUP permission set.
a. In the PowerShell window, enter the following:
New-NAVServerUserPermissionSet –ServerInstance
‘DynamicsNAVTest’ –PermissionSetId ‘RM-SETUP’ –
WindowsAccount ‘CONTOSO\JULIA’ –CompanyName ‘CRONUS
International Ltd’.
Detailed Steps
1. Add RM-CAMPAIGN, EDIT permission set.
a. In the PowerShell window, enter the following:
New-NAVServerUserPermissionSet –ServerInstance
‘DynamicsNAVTest’ –PermissionSetId ‘RM-CAMPAIGN, EDIT’ –
WindowsAccount ‘CONTOSO\JULIA’ –CompanyName ‘CRONUS
International Ltd’.
Detailed Steps
1. Add RM-CONT, EDIT permission set.
a. In the PowerShell window, enter the following:
New-NAVServerUserPermissionSet –ServerInstance
‘DynamicsNAVTest’ –PermissionSetId ‘RM-CONT, EDIT’ –
WindowsAccount ‘CONTOSO\JULIA’ –CompanyName ‘CRONUS
International Ltd’.
Detailed Steps
1. Add RM-OPP, EDIT permission set.
a. In the PowerShell window, enter the following:
New-NAVServerUserPermissionSet –ServerInstance
‘DynamicsNAVTest’ –PermissionSetId ‘RM-OPP, EDIT’ –
WindowsAccount ‘CONTOSO\JULIA’ –CompanyName ‘CRONUS
International Ltd’.
Detailed Steps
1. Add OSYNCHADMIN permission set.
a. In the PowerShell window, enter the following:
New-NAVServerUserPermissionSet –ServerInstance
‘DynamicsNAVTest’ –PermissionSetId ‘OSYNCHADMIN’ –
WindowsAccount ‘CONTOSO\JULIA’ –CompanyName ‘CRONUS
International Ltd’.
Detailed Steps
1. Add RM-PERIODIC permission set.
a. In the PowerShell window, enter the following:
New-NAVServerUserPermissionSet –ServerInstance
‘DynamicsNAVTest’ –PermissionSetId ‘RM-PERIODIC’ –
WindowsAccount ‘CONTOSO\JULIA’ –CompanyName ‘CRONUS
International Ltd’.
Detailed Steps
1. Add the RM-TODO, EDIT permission set.
a. In the PowerShell window, enter the following:
New-NAVServerUserPermissionSet –ServerInstance
‘DynamicsNAVTest’ –PermissionSetId ‘RM-TODO, EDIT’ –
WindowsAccount ‘CONTOSO\JULIA’ –CompanyName ‘CRONUS
International Ltd’.
Module Review
This module describes how to use the PowerShell API to administer Microsoft
Dynamics NAV 2013 server instances. It explains the different PowerShell
commands and their parameters. Parameters can be either named or positional.
1. What parameter can you use to obtain additional logging information during
execution of a PowerShell command?
( ) -full
( ) -detailed
( ) -eventlog
( ) -showinfo
( ) -verbose
1. What parameter can you use to obtain additional logging information during
execution of a PowerShell command?
( ) -full
( ) -detailed
( ) -eventlog
( ) -showinfo
(√) -verbose