NAV2016 | (Im) Possibilities with Extensions

Great Post !

Mark Brummel Blog | Microsoft Dynamics NAV

In my previous posts about Extensions in NAV2016 I tried to explain the concept, reasoning and get you started with your own Extension in 5 easy steps.

  1. Getting Started with NAV2016 Extensions
  2. Create your own Extension in 5 easy steps
  3. Real world examples for Extensions

I got a lot of feedback and emails based on these posts. Some about PowerShell and using DotNet interop, some about XMLPort and Reports.

In this post I will talk more about the current possibilities and limitations and if, how and when these will be lifted.

In essence this blog is relatively simple. Microsoft already did a great job in documenting these on MSDN.

  1. Extending Microsoft Dynamics NAV Using Extension Packages
  2. How to: Create an Extension Package
  3. How to: Develop an Extension
  4. How to: Publish and Install an Extension
  5. Extension Packages Capability Support Matrix

The last one is of essence for this blog. The support…

View original post 858 altre parole


Publish, Raise and Subscribe

Publish, Raise and Subscribe

Something about NAV Events (Integration & Business Events)….  Some Definitions of: “Publishers & Subscribers”

“A publisher” exposes hook-points in code or processes that other partners or sub-systems can leverage. ISVs and Microsoft are the typical providers of published events, but not necessarily the only providers. Events are raised through explicit function calls, or raised implicitly by the Microsoft Dynamics NAV Runtime.

“A subscriber” subscribes to and handles events. When an event is raised, the subscription code is automatically called by the runtime. This enables partners to hook into core Microsoft Dynamics NAV functionality without having to do ‘classic’ code modification. Any Microsoft Dynamics NAV solution provider, including Microsoft, can use event subscriptions.

Example new codeunit “80000 My Publisher”

“Publisher” Event

> Codeunit 80000 Function [Integration Event] OnItemCodeRenamed(parItem:Code20)


“Subscribe” Event

> Codeunit 80000 Functions ErrorItemRenaming(“No.”)

  • EventPublishedObject “Codeunit My Publishers”


“Publisher & Subscriber”

  • Void Containers only “to map Events” in events list
  • Publisher Integration Event > ex. OnItemCodeRenamed(“No.”)
  • Subscriber EventSubscriber > ex. ErrorItemRemaining(“No.”)


“Raise Event”

On Table 27 Item –> No. OnValidate()

  • cdyMyPublisher.OnItemCodeRenamed(“No.”); // Raise Event > Call codeunit function on No. Onvalidate Trigger



 -> “NEW EVENT IS NOW PUBLISHED AND AVAILABLE”; Now “new EVENT” is mapped and available to use on EVENT FUNCTIONS LIST


“Event Function”

  • Example OnItemCodeRenamed(parItemNo:Code20) mapped on EventFunction



  • OnEvaluateField(“No.”) > raising EventFunction “OnBeforeValidateEvent(“No.”)



  • My Custom Codeunit (raiser) with exposed function is available on subscriptions event list
  • In this case is: “Business Event” published from table 27 by OnBeforeValidateEvent Function



  • Example of raising ERROR(“No.”) function when ErrorItemRemaing() function is running


… you can find a lot of information about NAV Events on NAV team blog and MSDN Online

-Integration Events in Microsoft Dynamics NAV 2016

Integration Events in Microsoft Dynamics NAV 2016

Introducing Events  ->

Get Starting With Eventing ->

TryFunction – .NET Exception Handling in C/AL


“When there is a need to use .NET classes within C/AL, one of the main challenges is to handle the exceptions the methods of these .NET classes may throw. Eventually, if not handled, they will basically bubble up as runtime errors, halting the current operation a user is doing without having a chance to properly display errors in a user-friendly format”


by Mostafa Balat, Microsoft Development Center Copenhagen

“Save money replacing reports with cues or filtered lists Dynamics NAV” … nice post by Peik !

… nice post by Peik ! … it’s also my core philosophy during training sessions“use CUE and Filteres Lists (and multiple NAV Views!)” instead of lot of reports!

…new Peik’s book is coming soon: “RoleTailoring Microsoft Dynamics NAV

book peik2

Source: Save money replacing reports with cues or filtered lists in Dynamics NAV – Aphorisms about Microsoft Dynamics NAV

Powershell Script to create a “Self-Signed Certificate” that works on Dynamics NAV Ipad APP

Roberto Stefanetti NAV Blog

Powershell Script to create a “Self-Signed Certificate” that works on Dynamics NAV Ipad APP



Automated scripts (with Powershell) to create a self-signed certificate usable for Dynamics NAV App on Ipad (if you haven’t a Real Commercial Verified Certificate)

This “Powershell automation Script” is based on manual procedure existing in this post How to get Microsoft Dynamics NAV for tablets to connect using a self-signed certificate” by NAV Team Blog and also based on some scripts by Duilio Tacconi of Microsoft Support Emea.

STEP 1:REQUIREMENTS FOR USE PRE-USE CERTIFICATE “SELF-SIGNED” – Best Practice Microsoft  suggest  to use a valid certificate (ex: Purchased from Verisign) – Suggested (but not mandatory) is to install at least the cumulative NAV Update 8 2015 (CU8), it needs to use better management of self-signed certificate (unofficial, not from Vendor).


View original post 339 altre parole

Azure “GoUp and Goto Sleep” Maintenance Scripts

Azure “GoUp and Goto Sleep” Maintenance Scripts
Below two simple scripts to Startup & Shutdown Azure Virtual Machines; you can use these samples scripts with “Azure Scheduler Agent” to reduce costs using “pay for use” Azure subscriptions.
workflow startup-vm
$Cred = Get-AutomationPSCredential -Name ‘My Scheduler’
Add-AzureAccount -Credential $CredInlineScript

    Select-AzureSubscription -SubscriptionName “My Subscription Name”

$VMS = Get-AzureVM

    foreach($VM in $VMS)
$VMName = $VM.Name
Start-AzureVM -ServiceName $VM.ServiceName -Name $VM.Name
Write-Output “Shutting down VM :  $VMName ”
workflow shutdown-vm
$Cred = Get-AutomationPSCredential -Name ‘My Scheduler’
Add-AzureAccount -Credential $CredInlineScript

    Select-AzureSubscription -SubscriptionName “My Subscription Name”

$VMS = Get-AzureVM

    foreach($VM in $VMS)
$VMName = $VM.Name
Stop-AzureVM -ServiceName $VM.ServiceName -Name $VM.Name -Force
Write-Output “Shutting down VM :  $VMName ”
you are welcome !

Office Online vs. Office 365: What’s free, what’s not, and what you really need | PCWorld

“Free Office Online is a great deal, but paying for an Office 365 subscription gives you some hard-to-beat perks. We’ll help you decide which way to go.”

Sorgente: Office Online vs. Office 365: What’s free, what’s not, and what you really need | PCWorld

Great Post by  !

First 10.000 Visits on my new blog. Thanks !

First 10.000 Visits on my new blog. Thanks !
Thanks TO ALL VISITORS! … a lot of visitors during DIRECTIONS EMEA, @NAV 2016 launching days.
below some stats about new blog  (4 months of livetime only… a lot of Countries & people)
 work map 2
About my old NAV Blog (NAV 3.60 to NAV 2013)    … that is actually active & Running!
… a nice blog about OLD NAV Technology with a lot of visitors !!
below full stats about my old NAV blog
440.296 Visits, 10.000-15.000 monthly rate visits.   GREAT !!
world map 2015

you can follow me also on my Microsoft Dynamics Community Blog

… you are welcome to my new posts !