Friday, February 24, 2017

How to add endpoints on Azure VM for NAV

Virtual-machine

Endpoints allow services running on Windows Azure VM to be accessed remotely. If you create a Azure VM for NAV using one of the templates available on the Azure then all the following endpoints are added by default, which will allow you to access NAV remotely.

  • HTTP 80
  • HTTPS 443
  • Client 7046
  • Soap 7047
  • Odata 7048
  • Help 49000

When you deploy a VM in azure there are two deployment models Classic and ARM (Azure Resource Manager). I will not be discussing the difference between those two in this blog but what I want to discuss how to setup the endpoints in these two models.


In Classic model when you click on the VM,  as shown in the below fig 1, it has the option of Endpoints and when you click on it, on the right hand side it will show all the endpoints and an option to add any new end points.


image

  • Fig 1: Azure Classic

In ARM model to add the endpoint you need to follow the below steps, Click on the VM and then overview and then on the Resource Group as shown in the (Fig 2), it will open an overview for that resource group and in that window select NetSecurity (Network Security Group) (Fig 3), which will open the settings and one of the option is Inbound Security Rules (Fig 4), Click on the Inbound Security Rules which will show all the endpoints added and where you have the option to add additional endpoints. (Fig 5)

SNAGHTML70aa39

Fig 2: Step 1

SNAGHTML76db9c

Fig 3: Step 2

image

Fig 4: Step 3

image

Fig 5: (Step 4)

Do you have any other tips or suggestions? Please let me know in the comments below.

Share:

Wednesday, February 22, 2017

Keyboard Shortcuts for the New NAV Development Environment

keys-97875_1280

The following table provides an overview of some of the shortcut key combinations that you can use when you're working with Dynamics NAV in Visual Studio Code. For a complete overview, see Key Bindings for Visual Studio Code

Editing

Keyboard Shortcut

Action

Ctrl+Space

Look up suggestions for the current object

Ctrl+X

Cut

Ctrl+C

Copy

Ctrl+V

Paste

Ctrl+F2

Select all occurrences

F12

Go to definition

Alt+F12

Peek definition

Shift+F12

Show References

Ctrl+Shift+Space

Look up parameter hints

Ctrl+K Ctrl+C

Add line comment

Ctrl+K Ctrl+U

Remove line comment

Ctrl+Shift+P

Show All Commands

Errors

Keyboard Shortcut

Action

F8

Move to the next error or warning

Shift+F8

Move to the previous error or warning

Compile

Keyboard Shortcut

Action

Ctrl+Shift+B

Compile and build the solution

F5

Build and deploy


(Source: https://msdn.microsoft.com/en-us/dynamics-nav/newdev-keyboard-shortcuts)


Do you have any other shortcuts or suggestions? Please let me know in the comments below.

Share:

Friday, February 17, 2017

How to skip unlicensed objects when exporting as text in NAV

calculation-1889005_1920

One of the tools I often use to review the objects or for debugging is Prism (https://www.stati-cal.com/). It is a great productivity tool for NAV Developers and Architects which helps quickly and effortlessly to get an overview of C/AL code, modules and dependencies. There are a couple of options in the tool to import the objects, one of the option is to have the objects in a .txt format which I normally use.  One issue I often encounter when I export all the objects in .txt format is, our license does not have permission to export all the objects into text format this is because of some restrictions placed by the vendors on their add-on objects.

In this blog, I will discuss different ways to export the objects into text format and by skipping the objects which the license does not have permission.

Option 1:

Use Powershell command Export-NAVApplicationObject with an ExportTxtSkipUnlicensed option. My colleague William Warnke explained this cmdlet and other in his blog. Please read it.

The CmdLet uses the license is which is uploaded into the database, but if you change the license temporarily with change function it will not work, so the license should be uploaded to use this option.

Option 2:

Use the Edit –> Toggle Mark function on all the objects and then unmark the objects which you don’t have permission, but for this you need to know which objects you don’t have permission to export; otherwise you have to try to export all the objects and when you get an error for an object exclude that object in the next iteration and repeat this process, this is very time consuming and not efficient.

I think this is the only option for the older databases before NAV 2009.

Option 3:

This option works only for newer versions 2009 and above. Select all the objects and use the Lock Function to Lock all the objects, it will lock only those objects which you have permission to export into text format. Once you lock the objects filter the objects which are locked and export them into .txt.

(Thanks again to William Warnke for the tip)

Do you have any other tips or suggestions? Please let me know in the comments below.








Share:

Thursday, February 16, 2017

What's new in Power BI Desktop for January

We have an exciting release of Power BI Desktop this month. It includes several formatting features that have been top asks and new Quick Calcs for your measures. We also have several updates to data connectors and two new query editing options.

Desktop Download button

Here’s the complete list of February updates:

Report view

Analytics

Data connectivity

Query editing improvements

Other

For a summary of the major updates, you can watch the following video:

Report view

Word wrap on matrix row headers

Last month, we added word wrap for table headers, and this month we are extending that support to matrix row headers. You’ll see a word wrap toggle under the Row headers card. Once you turn word wrap on, the row headers will word wrap to fill the space they have.

Headers will start to truncate once the available space runs out. This means the lowest level of your row headers will not wrap. We will be improving this experience and adding word wrap to values and column headers in future updates.

Find more details about matrix row header word wrapping in the following video:

X- and Y-axis font size control

One of the most asked for formatting features we hear is the ability to change the font size for the X- and Y-axis, and with this release, you’ll now find the text size slider under the X-Axis and Y-Axis cards in the formatting pane. By default, the axis labels and title will change size together, but you can use the text size slider under the Title section of the axis card to override this and give the title a different size.

Find more details about the X- and Y-axis font size control in the following video:

Cartesian chart minimum category width

Depending on your data label settings and chart size, you may not see all the data labels on your chart. If you want to guarantee that your data labels show, you can now set the minimum width of categories in Cartesian charts. This is also a good feature to use if you are increasing the font size of the axis on your charts. You can increase your category width in conjunction with the font size to give the larger fonts more room on the axis. You'll find the setting under the X-axis card for column, line, and waterfall charts, and under the Y-axis for bar charts.

If you use this feature, we will always show the categories at least that wide. We will still use our auto-sizing logic to make the categories bigger than the minimum if wider categories will fit. This means you can set a minimum size that will guarantee your data labels will show, but if you start filtering data out, the chart will still auto-size the categories wider to look better.

Find more details about the Cartesian chart category width control in the following video:

Line chart line thickness and join type controls

With this release, we have a new formatting feature for line charts. Under the Shapes card in the formatting pane, you can use the stroke width feature to make your lines thicker. You can also control the join type. These features are great for both stylistic changes and readability.

clip_image012

Find more details about the Line thickness control in the following video:

Analytics

2 new Quick Calcs: Percent of row total & percent of column total

This month, we have two new Quick Calcs for values in the matrix visual. Now when you open the Quick Calc dialog for Value fields in the matrix visual, you’ll see need two new options.

clip_image014

Under Show value as, you’ll see Percent of column total and Percent of row total in addition to the Percent of grand total we released a while ago.

clip_image015

If you convert a matrix visual to another visual with one of these new Quick Calcs, the calculation will convert these totals into a percent of grand total.

More details about the new Quick Calcs can be found in the following video:

Data connectivity

ODBC and OLE DB connectors: support for selecting related tables

We have enabled the Select Related Tables button in the Navigator dialog when using the ODBC and OLE DB connectors. This option, which is available for other relational data sources already, allows you to easily select tables that are directly related to the set of already selected tables in the Navigator.

clip_image017

Find more details about this ODBC and OLE DB connectors update in the following video:

Enhanced Folder connector: support for combining binaries from the Preview dialog

In the November release, we shipped a set of enhancements to the Combine Binaries experience. You can learn more about those enhancements in this article.

This month, we’re making it easier for you to reach the Combine Binaries feature. You can choose to combine multiple files from the folder preview dialog within the Get Data flow, bypassing the Query Editor.

Note that we’re exposing multiple options (Combine, Combine & Load) to allow you to further refine your data before loading it into the data model.

Find more details about the folder connector improvement in the following video:

Unified text & CSV connectors

With this month’s release, we’re unifying the entry points for importing Text and CSV files into a single Text/CSV entry point. This new entry point can be found in the Get Data dialog, under the Files category.

clip_image019

Upon selecting this option, the Open File dialog allows you to select files with TXT, CSV, or PRN file extensions by default, or any other file extension by switching to the All Files (*.*) filter option.

Find more details about the unified text and CSV connectors in the following video:

PowerApps Common Data Service connector

We are very excited to announce the PowerApps Common Data Service connector. You can now pull your Common Data Service data into Power BI and build reports to share with others.

Some of the great features that come with this connector include:

  • Near-real time data
  • Security roles defined in the Common Data Service
  • Auto-generated semantic models, which present data by subject area
  • Semantic models automatically updated when entities are extended in the Common Data Service

This connector can be found under the Online Services tab of the Get Data dialog box.

Once you select Connect, you'll be asked to sign in with your organizational account.

clip_image023

Once you sign in and select Connect, you'll be asked to choose the environment to connect to.

clip_image025

Next, select the perspective that contains the data you want.

clip_image027

We will now connect to the data and you can start building your reports to share.

clip_image029

The Common Data Service connector is currently in preview and only available to a segment of users in the United States. If you want to be part of the preview and aren't currently, you can request access by emailing: CDSPowerBIPreview(at)Service.Microsoft.com. In addition to being part of the preview group, to use this connector, you'll need to:

  • enable the Power BI integration in the PowerApps admin portal
  • have maker permissions in PowerApps
  • sign in to PowerApps at least once

If you want to learn more about the Common Data Service and the connector, check out the PowerApps blog or check out the Common Data Service and PowerApps documentation. As you try out this new connector, be sure to let us know if you have any questions or feedback!

Query editing improvements

Specify the desired column type and locale in column headers type menus

In the Query Editor, it's possible to see and modify column types by using the Type menus in the preview area. However, before this release, you couldn't change type by locale via these dropdown menus. This option allows you to specify the desired column type and locale to use for the conversion, which affects how text values are recognized as other data types (such as dates, numbers, etc.).

With this release, we’re adding Using Locale to the column header type menus for easier access to this capability, which has been a popular idea in our Power BI Feature Suggestions forum.

clip_image031

Find more details about the update to the column headers type menu in the following video:

Easily insert steps in existing queries

We’ve added a new context menu option to easily insert new steps in existing queries. Insert a new custom step after the currently selected step (which can be the final step or any previous step within the query).

clip_image033

Find more details about the update to the new steps pane option in the following video:

Other

Solution Templates and Partner Showcase quick access

We've added quick access on the ribbon to two great resources: Solution Templates and the Partner Showcase. Solution templates let you use a wizard to very quickly and easily create a working end-to-end enterprise-ready Power BI solution. The Partner Showcase lets you browse our certified partners, see their work, and reach out if you are interested in working with them. If you're looking for resources to work with when creating your Power BI solutions, be sure to check these out!

clip_image035

Find more details about the new resources in the following video:

That’s all for this month! We hope that you enjoy this new update and continue sending us valuable feedback about our product. Please don’t forget to vote for other features that you would like to see in the Power BI Desktop in the future.

Share:

NAV Development Tool Update–February

Welcome to the February update for the Developer Preview. As in the last two updates, we’ve fixed bugs reported by you on our GitHub issues list (https://github.com/Microsoft/AL/issues) and made other improvements.

You can see a list of what’s new below.

– Finishing your design work in the client now offers two options on saving, allowing you to save the changes to the tenant for all users, or to save the changes to a file that you can work on later in VS Code. Performance of the designer has improved and is snappier.

inclient_2

– To guide users towards a better page design, we’ve been adding a few rules in the in-client designer. For example, you can only drop media fields onto card part pages. Also, you cannot drop a field under a repeater control, because this is not the design that list pages were intended for.

– Getting started in VS Code has been streamlined. Once you’ve installed the visx file, just enter AL: Go! in the command palette (Ctrl+Shift+P) and you’ll be offered a new folder to build a solution in. The preset values are configured for your Azure Gallery instance and if you’re missing the symbols for the project, VS Code will offer to download them for you. Note, we’ve introduced a shortcut for this too – Alt+A, Alt+L. Enjoy!

algo

– We’ve made improvements in IntelliSense with contextual support for keywords in all objects – and we’ve added autocompletion and IntelliSense for setting values for the CalcFormula and TableRelation properties.

– You can now reference Query objects from the base application. This gives you the ability to declare variables of the type Query and call AL functions on them.

– References by symbols have been implemented meaning that you can find all references in an inline editor. Pressing Shift+F12 on top of a symbol will open a view that lets you jump to all instances of that symbol. Furthermore, selecting a symbol and pressing F2 allows you to rename all instances of that symbol. Note, that symbolic rename is cleverer than text matching and will only change the current symbol. For example, it will replace all instances of variable Foo, but not rename function Foo.

– Two AL variables have been introduced mapping to the HTTP Client and JSON types. Using HttpClient, HttpResponseMessage, JsonObject, JsonToken, and JsonValue will allow you to access Azure functions and other Web services.

– Miscellaneous bugs reported from GitHub have been fixed.

Just like in the last update, we’ve already updated the Azure Gallery so new images will include the update. Again, we’ve designed for compatibility with your existing files so any .al projects you have already will work with the AL Language extension for VS Code. Having said that, changes may need to be introduced at some time so save your work independently as you go.

We have big ambitions for the next month so stay with us. Thanks again for the bugs – keep them coming and we’ll fix them as fast as we can.

Share:

Cumulative Update 47 for Microsoft Dynamics NAV 2013 (Build 47880)

Cumulative Update 47 includes all application and platform hotfixes and regulatory features that have been released for Microsoft Dynamics NAV 2013.

The cumulative update is intended mainly for solutions that are experiencing the problems described in the Knowledge Base article linked to below. However, you are advised to always keep your solution updated with the latest cumulative update. If you are in doubt about whether this cumulative update addresses your specific problem, or if you want to confirm whether any special compatibility, installation, or download issues are associated with this cumulative update, support professionals in Customer Support Services are ready to help you. For more information, see http://support.microsoft.com/contactus/.

The cumulative update includes hotfixes that apply to all countries and hotfixes specific to the following local versions:

Where to find Cumulative Update 47

You can download the cumulative update from KB 4011765  – Cumulative Update 47 for Microsoft Dynamics NAV 2013.

Or you can download the cumulative update from the Microsoft Download Center.

Warning

Before you install a cumulative update in a production environment, take the following precautions:

  1. Test the cumulative update in a non-production environment.
  2. Make a backup of the system or computer where the cumulative update is to be installed.
  3. Note: Implementing this cumulative update can require a database upgrade.
  4. Note: We are currently transitioning to a new Knowledge Base system to provide you a better experience. During the transition period, access to Knowledge Base articles from within CustomerSource and PartnerSource will be unavailable. During this transition period, Knowledge Base articles can be found by utilizing the search functionality located on the Microsoft Support Website.

Additional Information

For a list of all cumulative updates for this version, see Released Cumulative Updates for Microsoft Dynamics NAV 2013.

Share:

Cumulative Update 40 for Microsoft Dynamics NAV 2013 R2 (Build 47881)

Cumulative Update 40 includes all application and platform hotfixes and regulatory features that have been released for Microsoft Dynamics NAV 2013 R2.

The cumulative update is intended mainly for solutions that are experiencing the problems described in the Knowledge Base article linked to below. However, you are advised to always keep your solution updated with the latest cumulative update. If you are in doubt about whether this cumulative update addresses your specific problem, or if you want to confirm whether any special compatibility, installation, or download issues are associated with this cumulative update, support professionals in Customer Support Services are ready to help you. For more information, see http://support.microsoft.com/contactus/.

The cumulative update includes hotfixes that apply to all countries and hotfixes specific to the following local versions:

Where to find Cumulative Update 40

You can download the cumulative update from KB 4011766  – Cumulative Update 40 for Microsoft Dynamics NAV 2013 R2.

Or you can find the cumulative update at the Microsoft Download Center. Before you install a cumulative update in a production environment, take the following precautions:

  1. Test the cumulative update in a non-production environment.
  2. Make a backup of the system or computer where the cumulative update is to be installed.

Warning

  • Note: Implementing this cumulative update can require a database upgrade.
  • Note: We are currently transitioning to a new Knowledge Base system to provide you a better experience. During the transition period, access to Knowledge Base articles from within CustomerSource and PartnerSource will be unavailable. During this transition period, Knowledge Base articles can be found by utilizing the search functionality located on the Microsoft Support Website.
  • Note: This download does unfortunately not include content for the additional folders extracted from the DVD. You will have to get the content from the DVD. This issue will be corrected for next month.

Additional Information

For a list of all cumulative updates for this version, see Released Cumulative Updates for Microsoft Dynamics NAV 2013 R2.

Share:

Cumulative Update 28 for Microsoft Dynamics NAV 2015 (Build 47871)

Cumulative Update 28 includes all application and platform hotfixes and regulatory features that have been released for Microsoft Dynamics NAV 2015.

The cumulative update is intended mainly for solutions that are experiencing the problems described in the Knowledge Base article linked to below. However, you are advised to always keep your solution updated with the latest cumulative update. If you are in doubt about whether this cumulative update addresses your specific problem, or if you want to confirm whether any special compatibility, installation, or download issues are associated with this cumulative update, support professionals in Customer Support Services are ready to help you. For more information, see http://support.microsoft.com/contactus/.

The cumulative update includes hotfixes that apply to all countries and hotfixes specific to the following local versions:

Note: You must convert the database if you are upgrading to this cumulative update from a cumulative update earlier than Cumulative Update 9 (build 41779). For more information, see Converting a Database in Help for Microsoft Dynamics NAV.

Where to find Cumulative Update 28

You can download the cumulative update from KB 4011764  – Cumulative Update 28 for Microsoft Dynamics NAV 2015 (Build 47871).

Or you can download the cumulative update from the Microsoft Download Center.

Warning

Before you install a cumulative update in a production environment, take the following precautions:

  1. Test the cumulative update in a non-production environment.
  2. Make a backup of the system or computer where the cumulative update is to be installed.
  3. Note: We are currently transitioning to a new Knowledge Base system to provide you a better experience. During the transition period, access to Knowledge Base articles from within CustomerSource and PartnerSource will be unavailable. During this transition period, Knowledge Base articles can be found by utilizing the search functionality located on the Microsoft Support Website.

Additional Information

For information about how to install the cumulative update, see How to Install a Microsoft Dynamics NAV 2015 Cumulative Update.

For information about how to work around a recent process change, see How to Get Back the ‘Hotfix Directories’ from NAV 2015 Cumulative Update 1.

For a list of all cumulative updates for this version, see Released Cumulative Updates for Microsoft Dynamics NAV 2015.

Share:

Cumulative Update 16 for Microsoft Dynamics NAV 2016 (Build 47864).

Cumulative Update 16 includes all application and platform hotfixes and regulatory features that have been released for Microsoft Dynamics NAV 2016.

The cumulative update is intended mainly for solutions that are experiencing the problems described in the Knowledge Base article linked to below. However, you are advised to always keep your solution updated with the latest cumulative update. If you are in doubt about whether this cumulative update addresses your specific problem, or if you want to confirm whether any special compatibility, installation, or download issues are associated with this cumulative update, support professionals in Customer Support Services are ready to help you. For more information, see http://support.microsoft.com/contactus/.

The cumulative update includes hotfixes that apply to all countries and hotfixes specific to the following local versions:

Where to find Cumulative Update 16

You can see changes included in this cumulative update from KB 4011762 – Cumulative Update 16 for Microsoft Dynamics NAV 2016 (Build 47864).

You can press one of the countries in list above for a direct download or you can download the cumulative update from the Microsoft Download Center.

To learn more about other Cumulative Updates already released for Microsoft Dynamics NAV 2016 please see KB  3108728.

Warning

Before you install a cumulative update in a production environment, take the following precautions:

  1. Test the cumulative update in a non-production environment.
  2. Make a backup of the system or computer where the cumulative update is to be installed.
  3. Note: We are currently transitioning to a new Knowledge Base system to provide you a better experience. During the transition period, access to Knowledge Base articles from within CustomerSource and PartnerSource will be unavailable. During this transition period, Knowledge Base articles can be found by utilizing the search functionality located on the Microsoft Support Website.

Additional Information

For information about how to install the cumulative update, see How to Install a Microsoft Dynamics NAV 2016 Cumulative Update. Note that if you upgrade to this cumulative update from a version older than Microsoft Dynamics NAV 2016 Cumulative Update 6, you must run the development environment with elevated rights (run as administrator).

Share:

Cumulative Update 03 for Microsoft Dynamics NAV 2017 (Build 15140)

Cumulative Update 03 includes all application and platform hotfixes and regulatory features that have been released for Microsoft Dynamics NAV 2017.

The cumulative update is intended mainly for solutions that are experiencing the problems described in the Knowledge Base article linked to below. However, you are advised to always keep your solution updated with the latest cumulative update. If you are in doubt about whether this cumulative update addresses your specific problem, or if you want to confirm whether any special compatibility, installation, or download issues are associated with this cumulative update, support professionals in Customer Support Services are ready to help you. For more information, see http://support.microsoft.com/contactus/.

The cumulative update includes hotfixes that apply to all countries and hotfixes specific to the following local versions:

Where to find Cumulative Update 03

You can download the cumulative update from KB 4011763  – Cumulative Update 3 for Microsoft Dynamics NAV 2017 (Build 15140).

You can press one of the countries in list above for a direct download or you can download the cumulative update from the Microsoft Download Center.

To learn more about other Cumulative Updates already released for Microsoft Dynamics NAV 2017 please see KB  3210255.

Warning

Before you install a cumulative update in a production environment, take the following precautions:

  1. Test the cumulative update in a non-production environment.
  2. Make a backup of the system or computer where the cumulative update is to be installed.

Additional Information

For information about how to install the cumulative update, see How to Install a Microsoft Dynamics NAV 2017 Cumulative Update.

Share: