• Microsoft Dynamics NAV Team Blog

    Understanding and Configuring Session Timeouts

    • 0 Comments

    When you start the Microsoft Dynamics NAV Windows client or the Microsoft Dynamics NAV Web client, a connection is established with the Microsoft Dynamics NAV Server instance, and a corresponding session is added on Microsoft Dynamics NAV Server. Microsoft Dynamics NAV Server includes several timeout settings that determine when a session closes because of inactivity, a lost connection, or the client closes.

    The Developer and IT Pro Help for Microsoft Dynamics NAV 2013 R2 includes a new topic that explains the session timeout behavior and configuration. For more information, see Understanding and Configuring Session Timeout in the MSDN Library.

  • Microsoft Dynamics NAV Team Blog

    Uploading large files from the Web client

    • 2 Comments

    If like me you’ve been tinkering with your Lumia 1020 smartphone and snapping some high-resolution photos over the holidays, you may be wondering whether Microsoft Dynamics NAV 2013 R2 can handle such large photo sizes on the Microsoft Dynamics NAV Web client.

    Let's say you want to capture photos of your product catalogue (using the Photo action on the Item card). When uploading large files such as high-resolution photos, Microsoft Dynamics NAV will show the following error:

    The file that you are trying to use is too large. Clearly. Whilst Microsoft Dynamics NAV defaults to 4MB uploads on the Web client, you will be pleased to hear it takes just a minor tweak to your IIS configuration to support larger file uploads: 

    1. Launch the IIS Configuration Manager (in this example I am using IIS 8 but similar steps apply to earlier versions).
    2. Select the Microsoft Dynamics NAV web site in the left pane and then double-click Request Filtering.
    3. Right-click and select Edit Feature Settings… in the context menu.
    4. Set field Maximum allowed content length to an appropriate value such as 100000000 (in bytes) and click OK.
    5. Now select the Microsoft Dynamics NAV web site in the left pane again and double-click the Configuration Editor.
    6. Make sure that the From field is set to "Microsoft Dynamics NAV 2013 R2 Web Client Web.config"
    7. Set field Section to system.web/httpRuntime
    8. A number of properties should appear. Set maxRequestLength to an appropriate value such as 100000 (this time it is in kilobytes) and click the Apply action on the right.

     

    The new settings should take effect immediately without the need for an IIS or site reset.

    Go ahead and try to upload a large file now and BANG! the upload succeeds.

    You can read more about the maxRequestLength property here:

    http://msdn.microsoft.com/en-us/library/system.web.configuration.httpruntimesection.maxrequestlength(v=vs.110).aspx

    Best regards,

    Lukasz Zoglowek and Mike Borg Cardona

  • Microsoft Dynamics NAV Team Blog

    Update Rollups and Project Considerations for Upgrade, Maintenance and New Implementations

    • 29 Comments

    More and more partners are beginning to work with the update rollups. They find a lot of value in applying the latest application and platform fixes up front, instead of waiting for a customer to report those. Update rollups also simplify the way fixes are discovered and surfaced.

    So with this blog post, we want to provide a more detailed picture of the update rollups, their purpose, and their usage scenarios so that you are aware of the rollup release process and components, and so that more of you start using them. We would also like to provide our look at how to adopt and use the update rollups within various stages of the implementation project lifecycle.

    What is an update rollup?

    Update rollups are released monthly for Microsoft Dynamics NAV 2013 and Microsoft Dynamics NAV 2013 R2: 

    Released update rollups for Microsoft Dynamics NAV 2013 R2

    Released update rollups for Microsoft Dynamics NAV 2013

    An update rollup is a set of files that includes all hotfixes (application and platform) and regulatory features that have been released for the versions of Microsoft Dynamics NAV that are listed above. 

    They are cumulative, meaning that they include hotfixes and regulatory features that were released in the earlier update rollups for the specific product version.

    Each rollup contains the following:

    • Accumulated application change log (TXT format) compared to the originally release of the specific product version (the RTM release).
    • Application change log (TXT format) compared to the previous rollup - the “delta”.
    • Only the application objects that changed since the RTM version are included in the FOB and TXT files provided with the rollup.
    • Each application object is marked with rollup version number (version number + build number) to make it possible to see which objects have been changed in which rollup.
    • The latest version of all (not only the changed ones) platform components (executables and .dll assemblies). These components are also stamped with a version number and a build number.

    Application changes:

    Platform components:

    Hotfixes that are included in the update rollups do not always include translation. In that case, the translation for such changes are provided with the next RTM version of  Microsoft Dynamics NAV (major releases or minor release). Regulatory features included in the rollup are almost always translated; however, in rare cases the translation is provided with the following monthly update rollup.   

    Update rollups are currently released for 10 countries: Australia, Germany, Denmark, France, Italy, North America (Canada, US, Mexico), Netherlands, New Zealand, Sweden, United Kingdom.

    Local hotfixes for the following countries are currently not included in update rollups: Austria, Belgium, Switzerland, Spain, Finland, India, Iceland, Norway.

    Scenarios

    Maintenance. Applying rollups for the countries/regions where they are available.

    If you have a version of the running application for which you would like to apply the update rollup, you can follow this high level flow:

    • Find the latest rollup available for your application version here:
    • See the KB article for the UR to find the full list of application and platform changes as well as regulatory updates included in it. The list is divided by country/region. For instance, here are the KB articles for the latest available rollups:
    • Based on the urgency and relevance of the application and platform changes, current project stage, customer situation and other surrounding factors decide whether you want to apply the UR now, or wait for the next one. We strongly recommend that you always apply the latest UR to gradually reduce the amount of regressions, merging, issues and to be compliant with the latest regulatory requirements. 
    • If you are on the RTM version merge your application objects with all objects included with the latest rollup.
    • If you are on the URn version – filter out the objects which were changed since URn till the latest available UR and merge your application objects with those objects. You can use the Version List field to see in which rollup (build) they were changed. 

    Maintenance. Applying hotfixes for the countries where update rollups are not available.

    For these cases the process of applying the hotfixes and regulatory updates is the same as it was before the UR concept was introduced, namely the changes relevant to all countries/regions (W1 changes) should be applied one by one.

    However, URs can aid this process as well as you can obtain all W1 changes by downloading the latest W1 UR and merge them into your country version. You can find W1 URs by clicking at “Show additional information” and looking at their Fix Name which you can see when you download the UR:

    Platform components are country independent, therefore the platform updates can also be obtained from W1 UR and deployed for any country/region-specific version of Microsoft Dynamics NAV.

    Major releases, minor releases, and update rollups

    URs are different from the major and minor releases. Every major and minor release contains new application and platform features and functionality as well as hotfixes, while the URs only contain hotfixes and regulatory updates. So when a major release or minor release has been released, we create a new branch for the next release and continue to maintain both branches.

    Let’s dissect the process based on the Microsoft Dynamics NAV 2013 version as an example (see the illustration below).

    When Microsoft Dynamics NAV 2013 version was released, we created a new branch for Microsoft Dynamics NAV 2013 R2 development. As we’ve been building Microsoft Dynamics NAV 2013 R2 functionality, we kept fixing Microsoft Dynamics NAV 2013 and kept releasing URs for it.

    Relevant fixes from the Microsoft Dynamics NAV 2013 version were merged into the Microsoft Dynamics NAV 2013 R2 version in the course of its development. In many cases they had to be redesigned to fit the new code and new functionality of Microsoft Dynamics NAV 2013 R2.

    Therefore, when Microsoft Dynamics NAV 2013 R2 was released, not all fixes included in the latest available Microsoft Dynamics NAV 2013 UR were included in it. The process of finding and merging relevant fixes into the latest branch is a continuous process, and there will be a certain lead time until the fixes from the releases are synchronized between branches. So, for instance, the majority of the fixes which were available in Microsoft Dynamics NAV 2013 UR7 were included into Microsoft Dynamics NAV 2013 R2 UR1, and the process of merging of relevant fixes will go on.

    When considering upgrade or a new implementation of the new major release or minor release, we recommend that you always upgrade to (or start from) the latest available UR for it. If there is a particular hotfix which is available in the previous version of Microsoft Dynamics NAV, but it not yet available in the latest release, you can always request it to be merged there using the normal support process “How to create a new support case”.  It is also always possible to only update the platform components with the updated ones coming from a corresponding UR (technical upgrade), although the best practice would be to keep the application objects updated to the latest UR as well.

    Microsoft Dynamics NAV 2013 R2 hotfixes are also periodically merged into Microsoft Dynamics NAV 2013 and will be eventually available in the upcoming URs. Similarly, if there is a particular hotfix which is available in the current version of Microsoft Dynamics NAV, but it not yet available in the previous release, you can also request it to be merged there using the same support process “How to create a new support case”. 

    We will continue to release URs for the Microsoft Dynamics NAV 2013 release and future releases periodically, synchronizing relevant fixes between them over time.

    Microsoft Dynamics NAV 2009 SP1 and Microsoft Dynamics NAV 2009 R2 are maintained following the old process - you can request hotfixes on case by case basis, no update rollups available for those product versions. 

    The following timeline illustrates the process.

     

    Conclusion

    It is highly recommended to implement the update rollups. We look forward to hearing your feedback and suggestions to how this process could be made more convenient for you to assess and absorb the changes.

     

    Kind regards,

    Microsoft Dynamics NAV Team

     

    Updated on January 16, 2014: We removed two sentences that were misleading around the upgrade rollups and the Upgrade Toolkit. We apologize for the confusion.

  • Microsoft Dynamics NAV Team Blog

    Delivering more choice with Zetadocs Express

    • 0 Comments

    Equisys has released a new version of Zetadocs Express for Microsoft Dynamics NAV that not only supports Microsoft Dynamics NAV 2013 R2, but also includes the ability for customers to archive documents to network folders on their file servers.

    Connects people to documents

    For those that don’t know, Zetadocs Express provides the ability to send Microsoft Dynamics NAV reports by email.  It also enables you to use ‘drag and drop’ to store any document, such as an invoice from a supplier, alongside its corresponding Microsoft Dynamics NAV record. These documents can be retrieved via the Document FactBox in Microsoft Dynamics NAV, or from the document archive by business users without Microsoft Dynamics NAV.

    The new release allows customers to store these documents in SharePoint Online, SharePoint Server or network folders on your file server. Customers not ready to deploy SharePoint can use network folders initially and then switch to SharePoint later for advanced search features and filtered views.

    Windows 8.1, Windows Server 2012 R2 and Microsoft Dynamics NAV 2013 R2

    There’s also more platform choice with support for Windows 8.1, Windows Server 2012 R2, and Microsoft Dynamics NAV 2013 R2 Windows client. A future update will add support for the Microsoft Dynamics NAV 2013 R2 Web client. You can see a brief preview video of this on YouTube

    Download Zetadocs Express

    Zetadocs Express is the foundation member of the Zetadocs for NAV document management family. It is available at no additional cost to Microsoft Dynamics NAV 2013 & Microsoft Dynamics NAV 2009 customers on a Business Ready Enhancement Plan.

    The new version of Zetadocs Express can be downloaded from CustomerSource, PartnerSource and the Zetadocs website.

  • Microsoft Dynamics NAV Team Blog

    Convergence 2014 Customer Excellence Awards Nominations – Last Call!

    • 0 Comments

    Evangelize successful Microsoft Dynamics NAV customers at Convergence 2014! Check out the details and submission process for Customer Excellence Awards here:

    http://www.microsoft.com/dynamics/convergence/atlanta14/Customer-Excellence.aspx.

    Customer Excellence Awards recognize, honor, and celebrate customer organizations that are achieving outstanding success with their Microsoft solutions. In each award category, finalists and, subsequently, award winners, will be chosen on their ability to provide amazing experiences for their customers through the use of their Microsoft Dynamics solution. Nominations will be closing January 13.

  • Microsoft Dynamics NAV Team Blog

    Now Available: New How Do I Videos for Microsoft Dynamics NAV 2013 R2 on MSDN

    • 2 Comments

    Check out the latest videos on the Microsoft Dynamics NAV Developer Center. We've added to the How Do I Series to support the latest release: http://msdn.microsoft.com/en-us/dynamics/nav/dn524022

    These videos target the developer audience for Microsoft Dynamics NAV. Here is a sampling of the more than 20 titles that have been released to help you get started with Microsoft Dynamics NAV 2013 R2:

    • How Do I: Do Full SQL Tracing for Microsoft Dynamics NAV 2013 R2
    • How Do I: Use the Debugger in Microsoft Dynamics NAV 2013 R2
    • How Do I: Get Started with Windows PowerShell for Microsoft Dynamics NAV 2013 R2
    • How Do I: Migrate from Multiple Companies to a Multi-tenant Architecture in Microsoft Dynamics NAV 2013 R2

    More videos are in the works and will target both the platform and the application, so check back often to see what’s been added. All videos are in English.

     

  • Microsoft Dynamics NAV Team Blog

    Update Rollup 2 for Microsoft Dynamics NAV 2013 R2 has been released

    • 3 Comments

    Update rollup 2 includes all application and platform hotfixes and regulatory features that have been released for Microsoft Dynamics NAV 2013 R2 and includes hotfixes that apply to all countries and hotfixes specific to the following local versions:

    • AU – Australia
    • DE - Germany
    • DK - Denmark
    • FR - France
    • IT - Italy
    • NA – North America
    • NL – Netherlands
    • NZ – New Zealand
    • SE - Sweden
    • UK - United Kingdom

    Also, update rollup 2 includes Cumulative Update 1 for Microsoft Dynamics NAV 2013 R2.

    Where to find update rollup 2

    You can download update rollup 2 from KB 2913982 - Update Rollup 2 for Microsoft Dynamics NAV 2013 R2 (Build 35800).

    The hotfixes that have been released since update rollup 1 are listed in KB 2913982. For a full list of all hotfixes included in the update rollup, see the following CustomerSource and PartnerSource pages:

    CustomerSource:

    PartnerSource

     

    More Information

    For more information about update rollups for Microsoft Dynamics NAV 2013 R2, see Announcement of update rollups for Microsoft Dynamics NAV 2013 R2.

  • Microsoft Dynamics NAV Team Blog

    Microsoft Visual Studio 2013 Now Supported for RDLC Report Design

    • 1 Comments

    We are happy to announce that we have added support for using Microsoft Visual Studio 2013 (Professional, Premium, and Ultimate editions) to create and modify RDLC reports. This lets you use the latest version of Microsoft Visual Studio when designing reports for Microsoft Dynamics NAV 2013 R2.

    To enable Microsoft Visual Studio 2013 support, you must install the hotfix from the Knowledge Base article 2907585. After the hotfix is installed, when you design reports from the Microsoft Dynamics NAV Development Environment, Microsoft Visual Studio 2013 is automatically used if it is available on the computer running the development environment; otherwise, Microsoft Visual Studio 2012 is used if it is available. There is no option to choose which version of Microsoft Visual Studio to use if both Microsoft Visual Studio 2013 and Microsoft Visual Studio 2012 are installed on the development environment computer. With regard to editing RDLC reports for Microsoft Dynamics 2013 R2, there is no functional difference between using Microsoft Visual Studio 2012 or Microsoft Visual Studio 2013, and RDLC reports that are edited with Microsoft Visual Studio 2013 can be edited later with Microsoft Visual Studio 2012 if needed.

     

    Best regards,

    the Microsoft Dynamics NAV team

  • Microsoft Dynamics NAV Team Blog

    How to: Set up your Microsoft Dynamics NAV installation for Single Sign-on with Office 365 using Windows PowerShell

    • 0 Comments

    // Copyright © Microsoft Corporation. All Rights Reserved.

    // This code released under the terms of the

    // Microsoft Public License (MS-PL, http://opensource.org/licenses/ms-pl.html.)

    In our blog post How to: Validate that Microsoft Dynamics NAV 2013 R2 is correctly configured to support Single Sign-on with Office 365, we presented the Microsoft Dynamics NAV Best Practices Analyzer, a tool that you can use in order to validate your single sign-on (SSO) configuration of Microsoft Dynamics NAV. Not only does it validate your Microsoft Dynamics NAV and Windows Azure Active Directory (WAAD) configuration, it has another big advantage of assisting you in setting up your environment for SSO by providing meaningful and suggestive error messages which help you build your way through this lengthy process. The entire list of steps needed for setting up SSO with Office 365 in Microsoft Dynamics NAV is completely described in this how-to video

    In the previous paragraph I have just mentioned that this is a “lengthy process” which many times can become a rather unpleasant troubleshooting experience. We have collected this feedback and addressed this problem by providing the system administrators willing to set this environment up with a powerful Windows PowerShell cmdlet.

    This cmdlet is called Set-NavSingleSignOnWithOffice365 and it can completely automate the process of configuring your Microsoft Dynamics NAV Web Client to support SSO with Office 365. For more information on the usage of this cmdlet and all the possible scenarios where its power can be leveraged, refer to the official Microsoft Dynamics NAV Help topic, which will be released with the next MSDN Library refresh: Walkthrough: Setting up your Microsoft Dynamics NAV installation for Single Sign-on with Office 365 using Windows PowerShell.

    Note: The cmdlet can fully automate the configuration process provided that the needed parameters are specified when executing it. Generating and importing the security certificates that secure the Client – Server communication channel is performed separately and is subject to another upcoming topic with the next MSDN Library refresh: How to: Create a Self-signed Security Certificate Using PowerShell Script.

    In the following section, you will find information about setting up your Microsoft Dynamics NAV installation for single sign-on with Office 365 using Windows PowerShell.

    Setting up your Microsoft Dynamics NAV Installation for Single Sign-on with Office 365 using Windows PowerShell

    Microsoft Dynamics NAV supports federated user authentication with Windows Azure Active Directory (Windows Azure AD). This is the Identity Provider service used by Office 365. As a matter of fact, every time a new Office 365 subscription is provisioned, the Windows Azure AD tenant for this subscription is also created. Thus, when Microsoft Dynamics NAV is configured for federated authentication with a WAAD tenant, a single sign-on (SSO) user experience is achieved between Microsoft Dynamics NAV and the Office 365 Web Applications and any other applications that leverage the single sign-on capability provided by the Windows Azure AD tenant. 

    The Set-NavSingleSignOnWithOffice365 cmdlet can help you perform this configuration task by automating all the steps of this process. To sum up, this cmdlet performs the following operations: 

    1. It first validates that both your Microsoft Dynamics NAV Server and Microsoft Dynamics NAV Web Server are ready for this change. 
    2. It validates that your Office 365 credentials are valid.
    3. Once the validation steps are performed, the cmdlet starts the configuration:
      1. It links your Microsoft Dynamics NAV User account to your Office 365 account by providing your Office 365 email address as the AuthenticationEmail for the Microsoft Dynamics NAV User account.
      2. It configures the Microsoft Dynamics NAV Server by changing the values of the following configuration settings: ClientServicesFederationMetadataLocation, ClientServicesCredentialType and ServicesCertificateThumbprint.
      3. It configures the Microsoft Dynamics NAV Web Server by changing the values for the following configuration settings: ClientServicesCredentialType, ACSUri and DnsIdentity.
      4. It configures the WAAD tenant by creating a Service Principal that represents the Microsoft Dynamics NAV Web Client.
    4. If any of the configuration sub-steps of step 3 fail, the cmdlet reverts all the changes made to your Microsoft Dynamics NAV Server and Web Server up until that point. 

    Prerequisites

    • Office 365 subscription
      If you already have your Office 365 subscription, you can ignore this step. Otherwise, sign up for a free trial Office 365 plan. We recommend that you use a plan such as Office 365 Enterprise E1 as your test site, or that you sign up for a trial developer plan. A trial plan includes an administrative account whose credentials you will need to provide for the WAAD configuration. For example, if your Office 365 site is Solutions.onmicrosoft.com, your administrative account can be admin@solutions.onmicrosoft.com. For more information, see Select an Office 365 plan for business.
    • Azure Active Directory Tenant Management Components
      The cmdlet relies on the presence of the following components on your system:

      Microsoft Online Services Sign-In Assistant for IT Professionals

      Windows Azure Active Directory Module for Windows PowerShell

      You can download and install these components from the links provided above. If you have to choose between 32-bit and 64-bit versions of components, then download the version that matches your Windows Operating System type. To determine the operating system type, open File Explorer, and then choose This PC in the navigation pane. On the ribbon, in the System group, choose System properties. The operating system type appears next to System type in the System section.
    • Microsoft Dynamics NAV user account
      You have to  have a valid NAV user account. For more information, see How to: Create Microsoft Dynamics NAV Users in the MSDN Library.
    • Microsoft Dynamics NAV environment
      Setting up SSO requires that you have both the Microsoft Dynamics NAV Server and Web Server installed. 
    • Security Certificate Used to Secure the Server – Web Server Communication Channel
      Setting up user authentication types other than Windows for the Microsoft Dynamics NAV environment requires securing the Server – Client (or Web Server in this case) communication. This can be done using a security certificate. The Set-NavSingleSignOnWithOffice365 cmdlet assumes that you have already imported the security certificate in your certificate store. You can either use a security certificate issued by a trusted certificate authority (see Walkthrough: Implementing Security Certificates in a Test Environment) or you can use a self-signed certificate (see How to: Configure User Authentication for the Microsoft Dynamics NAV Web Client). The latter approach is not recommended in a production environment; however, it is an alternative to consider when testing your environment.

    Importing the Automated Configuration Module 

    In order to run the Set-NavSingleSignOnWithOffice365 cmdlet, you first need to open Windows PowerShell as an administrator. This can be done by right-clicking on the Windows PowerShell program and choosing “Run as administrator”.

    Then navigate to your Microsoft Dynamics NAV DVD, then to the WindowsPowerShellScripts\ NAVOffice365Administration folder. 

    Next, run the following cmdlet in order to import the NAVOffice365Administration PowerShell module:

    Import-Module .\NAVOffice365Administration.psm1 

    Automating the Single Sign-on Configuration in a One-Computer Microsoft Dynamics NAV Environment

    Once the prerequisites are fulfilled and the Office 365 Administration module is imported, the sufficient condition for setting up SSO with Office 365 is satisfied by simply running the Set-NavSingleSignOnWithOffice365 cmdlet with the following parameter set on the computer that hosts the Microsoft Dynamics NAV components:

    Set-NavSingleSignOnWithOffice365-NavServerInstance “ServerInstanceName” -NavWebServerInstanceName “WebServerInstanceName” -NavUser “YourNavUser” -AuthenticationEmail “YourOffice365Email” -NavServerCertificateThumbprint “SecurityCertificateThumbprint”

    ServerInstanceName represents the name of your Microsoft Dynamics NAV Server instance. You can find the names for the Microsoft Dynamics NAV Server instances running on your computer by running the Get-NAVServerInstance cmdlet.

    WebServerInstanceName represents the name of your Microsoft Dynamics NAV Web Server instance. You can find the names for the Microsoft Dynamics NAV Web Server instances running in your IIS by running the Get-NAVWebServerInstance cmdlet. 

    YourNavUser represents the name of your NAV User account.

    YourOffice365Email represents the email address of your Office 365 User account. It is in the form username@o365tenant.onmicrosoft.com. This user should have administrative privileges.

    SecurityCertificateThumbprint represents the thumbprint for the security certificate used for securing the Client – Server communication channel. For more information, refer to the “Prerequisites” section of this article. You can get the list of thumbprints for your certificates by issuing this Windows PowerShell command:

     Get-ChildItem -Path "Cert:\LocalMachine\My"

    Note: You can avoid providing this parameter if you already have your Microsoft Dynamics NAV Server configured with a security certificate. This applies to Microsoft Dynamics NAV installations in the Windows Azure environment, and other environments where any credential type other than Windows is active and functional.

    Once the Set-NavSingleSignOnWithOffice365 cmdlet is run, a dialog box will open, requesting your Office 365 account user name and password. 

    Automating the Single Sign-on Configuration in a Multi-Computer Microsoft Dynamics NAV Environment

    This configuration type assumes that your Microsoft Dynamics NAV Server and Web Server are on different computers. This means that you need to run the Set-NavSingleSignOnWithOffice365 cmdlet on each of these computers separately with a different parameter set in order to correctly configure your Microsoft Dynamics NAV Web Client for SSO with Office 365.

    Running the cmdlet on the Microsoft Dynamics NAV Server computer 

    To configure your Microsoft Dynamics NAV Server for SSO, you need to run the cmdlet with the following parameter set:

    Set-NavSingleSignOnWithOffice365-NavServerInstance “ServerInstanceName” -NavUser “YourNavUser” -NavServerCertificateThumbprint “SecurityCertificateThumbprint” -SkipWebServerConfiguration

    Notice the SkipWebServerConfiguration switch, which specifies that the Microsoft Dynamics NAV Web Server components should not be configured at all.  

    Running the cmdlet on the Microsoft Dynamics NAV Web Server computer

    To configure your Microsoft Dynamics NAV Web Server for SSO, you need to run the cmdlet with the following parameter set:

    Set-NavSingleSignOnWithOffice365-NavWebServerInstanceName “WebServerInstanceName” -AuthenticationEmail “YourOffice365Email” -SkipNavServerConfiguration

    Notice the SkipNavServerConfiguration switch, which specifies that the Microsoft Dynamics NAV Server should not be configured at all.  

    Additional Remarks and Considerations 

    Running the cmdlet fails because the NAV Server fails to start / restart

    You can find more information about the Microsoft Dynamics NAV Server failure reason in the event log. This error most likely occurs because of the impossibility of the Microsoft Dynamics NAV Server to properly configure the ACL for the ports used by the server’s communication endpoints. In some situations, when there are URLACL entries for the same ports but reserved by other services (including other installed Microsoft Dynamics NAV Servers), the removal procedure fails because of insufficient privileges. The user account running the Microsoft Dynamics NAV Server needs to have administrative permissions for the modification of the URLACL to succeed. That is why, in order to overcome this issue, you can try one of the following:

    1. Remove the URL ACL entries manually (see Walkthrough: Configuring Web Services to Use SSL (SOAP and OData) for more information) or
    2. Set your Microsoft Dynamics NAV Service to run as on Administrator account on your computer.

    Running the cmdlet in a multitenant Microsoft Dynamics NAV environment 

    Only one tenant can be automatically configured at a time, so the Microsoft Dynamics NAV Tenant name needs to be provided as the NavTenant parameter to the Set-NavSingleSignOnWithOffice365 cmdlet.

    Avoiding the Office 365 Credentials dialog box

    You can fully automate the script, and thus avoid the Office 365 Credentials dialog box by providing the credentials as parameters:

    You use the AuthenticationEmail parameter to specify the Office 365 account email and the AuthenticationEmailPassword parameter to specify the Office 365 account password. Be aware that the latter parameter should be a SecureString.  

    Running the cmdlet for a Microsoft Dynamics NAV Web Server that is hosted in complex network topology

    Setting the trust relationship between the Microsoft Dynamics NAV Web Client and Windows Azure AD requires specifying a remote endpoint for the Microsoft Dynamics NAV Web Client in the Windows Azure AD Service Principal that is created for this web application.

    If the Microsoft Dynamics NAV Web Server runs behind a DNS or another network component that changes / rewrites the Web Client’s address, the Set-NavSingleSignOnWithOffice365 cmdlet is not able to compute this address, since it only runs on the local computer. 

    You can overcome this situation by providing the cmdlet the address as seen remotely for your Microsoft Dynamics NAV Web Client. The parameter you need to pass this address to is NavWebAddress.

     

    Best regards

    The Microsoft Dynamics NAV Office 365 team.

  • Microsoft Dynamics NAV Team Blog

    Validating Single Sign-on with Office 365 and Microsoft Dynamics NAV 2013 R2

    • 5 Comments

    // Copyright © Microsoft Corporation. All Rights Reserved.

    // This code released under the terms of the

    // Microsoft Public License (MS-PL, http://opensource.org/licenses/ms-pl.html.)

    How to: Validate that Microsoft Dynamics NAV 2013 R2 is correctly configured to support Single Sign-on with Office 365

    In Microsoft Dynamics NAV 2013 R2, we introduce the ability to set up single sign-on (SSO) between an Office 365 account and a Microsoft Dynamics NAV 2013 R2 account. More precisely, the Office 365 user account is linked to a Microsoft Dynamics NAV 2013 R2 user account.

    Implementing SSO requires that you correctly set up various elements, including a Windows Azure account for managing the Windows Azure Active Directory (Windows Azure AD) tenant, the Microsoft Dynamics NAV Server, and the Microsoft Dynamics NAV Web Server.

    As part of a hotfix for Microsoft Dynamics NAV 2013 R2, we have provided an extension to the Best Practices Analyzer (BPA) tool. The extension can be used to validate the setup for your single sign-on application. The approach is as follows: you provide a simple set of parameters, and then the tool validates the setup to see whether it is correct for single sign-on. 

    About this blog post

    This blog post describes the principles of single sign-on between Office 365 and Microsoft Dynamics NAV 2013 R2. It provides a short introduction to setting up SSO, information about how to use the BPA tool for validation, and a list of resources for additional information, including videos and Help documentation.

    The elements of the Single Sign-On functionality

    The authentication for SSO is handled by three parties. It is based on the first party being Office 365, the second being Microsoft Dynamics NAV 2013 R2 and the third party being the Windows Azure Active Directory (Windows Azure AD) service. Microsoft Dynamics NAV 2013 R2 trusts Windows Azure AD and Office 365 trusts Windows Azure AD, however, Microsoft Dynamics NAV 2013 R2 and Office 365 do not trust each other.

    The Windows Azure AD is the identity management service for Office 365. The credentials that you use to sign in to Office 365 are the same credentials that you use to sign in to the Windows Azure Management Portal (http://manage.windowsazure.com). By definition, Office 365 trusts Windows Azure AD and if Microsoft Dynamics NAV 2013 R2 trusts Windows Azure AD, we indirectly establish a trust between Microsoft Dynamics NAV 2013 R2 and Office 365 by letting Windows Azure AD provide its trust to Office 365 to Microsoft Dynamics NAV 2013 R2. This is done in the following way:

    To start with, we need to get the federation metadata from Windows Azure AD specifically for the given Office 365 subscription. An Office 365 subscription is an Office 365 account, which is sometimes referred to as an Office 365 tenant. We also need to let Windows Azure AD know about the Microsoft Dynamics NAV Web Server address. After providing the right information to Windows Azure AD, it knows enough about the Microsoft Dynamics NAV Web Server, but now Microsoft Dynamics NAV Web Server and Microsoft Dynamics NAV Server need to know about Office 365 and Windows Azure AD.

    Microsoft Dynamics 2013 R2 is based on a multi-tier architecture. This architecture consists of an SQL Server, Microsoft Dynamics NAV Server, and the Microsoft Dynamics NAV Web Server. For SSO, we do not have to configure anything special on the SQL Server but we do need to modify both the Microsoft Dynamics NAV Server instance and the Microsoft Dynamics NAV Web Server instance configuration. The Microsoft Dynamics NAV Server must be configured to run in the credential type AccessControlService, and it must also know the URL for Windows Azure AD for retrieving the federation metadata. The Microsoft Dynamics NAV Web Server, which is hosted by Internet Information Services (IIS), must be configured to run in the credential type AccessControlService, and it must also know the path to the Windows Azure AD authentication endpoint. The final configuration setting is that each Office 365 email account has to be mapped to each user in Microsoft Dynamics NAV that is expected to use SSO.

    For more details, see the references in the Appendix section. 

    The Best Practices Analyzer tool

    With Microsoft Dynamics NAV 2013, we introduced the Best Practices Analyzer (BPA) to analyze the configuration of Microsoft Dynamics NAV Server and SQL Server in order to determine whether these components are configured correctly or not. In Microsoft Dynamics NAV 2013 R2, we have extended the BPA to include an analysis of the SSO configuration.

    The BPA tool can be used by copying the BPA folder from the Microsoft Dynamics NAV 2013 R2 installation media (DVD) to your computer or by running the tool directly from the DVD. (Note: The DVD must be newer than November 25, 2013 – hotfix number 35727.) To run the BPA tool, we recommend that you copy the files to a local folder (if you do not need to use the Helper files you can run the tool from the DVD), enable Desktop Services, and then choose “Run As Administrator”.

    To proceed with the BPA tool, we assume the following:

    1. You have a Microsoft Dynamics NAV Web Client running.
      • You know the URL of the Microsoft Dynamics NAV Web Client.
      • You know the name of the Microsoft Dynamics NAV Server.
    2. You have an Office 365 account (SMB SKU or higher - see http://office.microsoft.com for information on options for business).
      • You have the administrator credentials for your Office 365 account.
      • You know the domain for your Office 365 account, such as mysolution.onmicrosoft.com, where your email can be admin@mysolution.onmicrosoft.com.
      • You are familiar with signing in and out of Office 365.

     The BPA tool includes several steps that perform the analysis of your configuration. The following figure shows the Start a new Best Practices scan screen. The new analysis for SSO is enabled by choosing Yes for the “Would you like to verify that the environment is configured for Single Sign-On with Office 365”? option.

    The parameters that you can set are described in the following table:

    Field

    Description

    Example

     Active Directory Server

    This is automatically determined and is optional.

      

     Server Instance Name

     This specifies the name of the Microsoft Dynamics NAV Server instance, which can be found under Services on the computer. In the example, the Server Instance Name is “DynamicsNAV71”

     

     

     It is also specified in the Microsoft Management Console:

     

     Web Server Instance Name

    This specifies the name of the web server instance for the Microsoft Dynamics NAV 2013 R2 Web Client, which can be found in Internet Information Service (IIS) Manager.

    In the example, the web server instance name is the name of the virtual folder under Microsoft Dynamics NAV 2013 R2 Web Client.

     

     Microsoft Dynamics NAV Tenant

    This is only needed in a multitenant environment – the value “default” is the name of the first and only tenant in a single tenant configuration

     

     Office 365 User Account Email 

    This is the user name for Office 365 (and Windows Azure AD). This looks similar to admin@myO365.onmicrosoft.com.

     

    When you have filled out the parameters, you choose Start scanning. Shortly after, you will get a request for the password for your Office 365 account so that the BPA tool can connect to your Windows Azure AD tenant in order to verify your configuration:

    Within half a minute or so, the Scanning Completed message appears.

    You then choose View a report of this Best Practices scan. (You can only see List reports if you have not enabled Desktop Services. Otherwise use Tree reports.)

    The tool shows a number of errors. If you choose the first error in the list, then more details and some guidance are shown.

    If you choose Tell me more about this issue and how to resolve it, then the documentation will open, where you can see even more guidance on what you need to do in order to fix the problems.

    You can also see this information in the Tree Reports.

    As you can see, this tool can be really helpful when you need to get through the configuration of SSO. You can keep the BPA tool open as you resolve problems, and once you are done, you can choose to scan again to see whether issues are resolved.

    As a final check, verify that the SSO actually works. If it is the first time that you sign in, the credentials are needed.

    Final remarks

    With this extension to the BPA, we hope that you will have an easier time validating that Microsoft Dynamics NAV is correctly set up for single sign-on with Office 365. To get a better understanding, take a look at the references provided in the appendix.

    Appendix

    References to videos 

    How Do I: Enable Single Sign-On with Office 365 in Microsoft Dynamics NAV 2013 R2 is available on MSDN and in the Microsoft Dynamics NAV Community.

    More information about Windows Azure Active Directory 

    Windows Azure Active Directory

    Manage Windows Azure AD using Windows PowerShell

    More information about Microsoft Dynamics NAV 2013 R2

    Authenticate Users with Windows Azure Active Directory

    Users and Credential Types

    Configuring Microsoft Dynamics NAV Web Client by Modifying the web.config File

    How to: Configure User Authentication for the Microsoft Dynamics NAV Web Client

    Configuring Microsoft Dynamics NAV Server

    How to: Configure the Microsoft Dynamics NAV Web Client for ACS

    More information about certificates

    Test environment

    Production environment

     

    Best regards

    Eric Beran, Mike Borg Cardona, Vlad Precup, Steffen Balslev, and John Swymer - Microsoft Dynamics NAV Office 365 team.

  • Microsoft Dynamics NAV Team Blog

    New NAV Design Patterns

    • 0 Comments

    The NAV Design Patterns Wiki site was announced in November, as a repository containing the first NAV design pattern descriptions, together with a call for contributions.

    We would like to say “welcome to the team”, to our new design patterns authors. Their patterns are linked below. If you want to learn from the experience of other Microsoft Dynamics NAV partners and from some of the designs they have implemented or used, then read on.

    Posting Routine - Select behaviour

    By waldo at ifacto

    Meet the Pattern

    Send information (parameters) to a processing framework/routine so that it knows what to do, how to behave, .. .

    Know the Pattern

    For a processing routine to behave correctly, it needs sometimes input of a user to know what it has to do, check or avoid doing.  To do this, usually a piece of UI is getting called (STRMENU) with the question what to do. These input needs to get to the routine.

    Continue reading on the NAV Patterns Wiki...

    Conditional Cascading Update

    by Jan Hoek at IDYN 

    Meet the Pattern

    The Conditional Cascading Update pattern is used to intelligently populate fields whose values depend on other field values. In this pattern description, the field triggering the update will be called “source field”, and the depending field will be called “target field”. 

    Know the Pattern

    The value of one table field sometimes depends on the value of another field, typically following an application-defined transformation (note that we're talking about transformations of field values here. This has nothing to do with e.g. form transformation), such as conversion to uppercase, removal of certain characters etc.

    If the target field is non-editable, ...

    Read more about Conditional Cascading Update on the Wiki...

    Setup Specificity Fallback

    by Jan Hoek at IDYN 

    Meet the Pattern

    The Setup Specificity Fallback pattern allows users to efficiently define a potentially complex setup in terms of rules and exceptions to these rules, exceptions to the exceptions, etc.

    Know the Pattern

    The pattern involves a setup table with a compound (i.e. consisting of more than one field) primary key, where each record in the table maps a combination of primary key values to a particular setup value. However, setting up and maintaining each and every combination could prove to be rather labour-intensive.

    Read more on the NAV Design Patterns Wiki...

     

    With best regards from the NAV Design Patterns team.

  • Microsoft Dynamics NAV Team Blog

    Update Rollup 9 for Microsoft Dynamics NAV 2013 has been released

    • 0 Comments

    Update rollup 9 for Microsoft Dynamics NAV 2013 (Build 35782) has been released.

    Update rollup 9 includes all application and platform hotfixes and regulatory features that have been released for Microsoft Dynamics NAV 2013 and includes hotfixes that apply to all countries and hotfixes specific to the following local versions:

    • AU - Australia
    • DE - Germany
    • DK - Denmark
    • FR - France
    • IT   - Italy
    • NA - North America
    • NL - Netherlands
    • NZ - New Zealand
    • SE - Sweden
    • UK - United Kingdom

    Where to find update rollup 9

    You can download update rollup 9 from KB 2913980 - Update Rollup 9 for Microsoft Dynamics NAV 2013 (Build 35782).

    The hotfixes that have been released since update rollup 8 are listed in KB 2913980. For a full list of all hotfixes included in the update rollup, see the following CustomerSource and PartnerSource pages:

    CustomerSource:

    PartnerSource:

    More Information

    For more information about update rollups for Microsoft Dynamics NAV 2013, see Announcement of new hotfix process for Microsoft Dynamics NAV 2013.

  • Microsoft Dynamics NAV Team Blog

    Announcement of update rollups for Microsoft Dynamics NAV 2013 R2

    • 6 Comments

    Update rollup 1 for Microsoft Dynamics NAV 2013 R2 has been released.

    What is an update rollup

    An update rollup is a cumulative set of files that includes all application and platform hotfixes and regulatory features that have been released for Microsoft Dynamics NAV 2013 R2, including hotfixes and regulatory features released in previous update rollups.

    Where to find update rollups

    You can download update rollup 1 from KB 2901573- Update Rollup 1 for Microsoft Dynamics NAV 2013 R2 (Build 35701). The hotfixes that are included in this update rollup are listed in the KB article.

    You can find a list of all update rollups released for Microsoft Dynamics NAV 2013 R2 in KB 2914930 - Released update rollups for Microsoft Dynamics NAV 2013 R2.

    You can find a list of all hotfixes included in update rollups for Microsoft Dynamics NAV 2013 R2 on the following CustomerSource and PartnerSource pages:

    CustomerSource

    PartnerSource

    Which countries are included in the update rollups

    Update rollups for Microsoft Dynamics NAV 2013 R2 includes hotfixes that apply to all countries (W1) and local hotfixes for the following countries:

    • AU - Australia
    • AT - Austria (first included in Update Rollup 5) 
    • BE - Belgium (first included in Update Rollup 5) 
    • CH - Switzerland (first included in Update Rollup 5) 
    • DE - Germany
    • DK - Denmark
    • ES - Spain (first included in Update Rollup 5) 
    • FI - Finland (first included in Update Rollup 5) 
    • FR - France
    • IS – Iceland (first included in Update Rollup 5) 
    • IT – Italy
    • NA – North America
    • NL – Netherlands
    • NO - Norway (first included in Update Rollup 5) 
    • NZ - New Zealand
    • SE - Sweden
    • UK – United Kingdom

    Weekly platform rollups

    To ensure early access to platform hotfixes, weekly platform rollups will be released between monthly update rollups.

    Access to update rollups

    Please note that a CustomerSource or PartnerSource login is required to access the update rollups and all links in this blog post.

  • Microsoft Dynamics NAV Team Blog

    Hotfix overview pages for Microsoft Dynamics NAV 2013 R2 now available

    • 0 Comments

    Overview pages of released platform hotfixes and application hotfixes for Microsoft Dynamics NAV 2013 R2 are now available on PartnerSource and CustomerSource at the following links:

    PartnerSource:

    CustomerSource:

    ==================================================================================== 

    Hotfix overview pages for Microsoft Dynamics NAV 2013 can be found here:

    PartnerSource:

    CustomerSource:

     ==================================================================================== 

     Hotfix overview pages for Microsoft Dynamics NAV 2009 SP1/R2 and Microsoft Dynamics NAV 5.0 SP1 can be found here:

    PartnerSource:

     CustomerSource:

     

    Please note that a CustomerSource or PartnerSource login is required to access the links in this blog post. 

  • Microsoft Dynamics NAV Team Blog

    Update Rollup 8 for Microsoft Dynamics NAV 2013 has been released

    • 0 Comments

    Update rollup 8 for Microsoft Dynamics NAV 2013 (Build 35670) has been released.

    Update rollup 8 includes all application and platform hotfixes and regulatory features that have been released for Microsoft Dynamics NAV 2013. Local hotfixes for Sweden have been added to update rollup 8 and the update rollups now include hotfixes that apply to all countries and hotfixes specific to the following local versions:

    • AU – Australia
    • DE - Germany
    • DK - Denmark
    • FR - France
    • IT - Italy
    • NA – North America
    • NL – Netherlands
    • NZ – New Zealand
    • SE – Sweden (NEW)
    • UK - United Kingdom

    Where to find update rollup 8

    You can download update rollup 8 from KB 2901572 - Update Rollup 8 for Microsoft Dynamics NAV 2013 (Build 35670).

    The hotfixes that have been released since update rollup 7 are listed in KB 2901572. For a full list of all hotfixes included in the update rollup, see the following CustomerSource and PartnerSource pages:

    CustomerSource:

    PartnerSource:

    More Information

    For more information about update rollups for Microsoft Dynamics NAV 2013, see Announcement of new hotfix process for Microsoft Dynamics NAV 2013.

     

Page 4 of 43 (639 items) «23456»