hi welcome to this how do i video in the
extension series in which we will show
you how to build a basic microsoft
dynamics nav extension
at the end of this video I'll have
created an extension similar to the
extension that was built in the video
how do I get introduced with building
microsoft dynamics nav extensions on the
azure demo but now we will only use the
command lets that come with the product
this means we will create an extension
in the most basic way possible will do
this in three easy steps first we'll go
over some prerequisites what we need to
complete this video next we will create
an MX file from the customizations that
we have done and finally we will test
this extension in our test environment
this video is based on a previous how do
I video in the extension series namely
the how do I build my own development
environment for starting to develop
microsoft dynamics nav extensions if you
didn't see this video yet and follow the
instructions there please do so now this
means we have an isolated environment to
start with with an original dev and test
instances let's have a look at the
customizations I have done on the dev
environment basically we have added a
field item classification on the item
table which is calculated by an action
on the item list and by code in the code
unit calc item classification method
what the extension exactly does is not
important for the content of this video
what is important though is how to turn
this into an extension so let's dive
into that first thing we need to do is
export the original objects but before
we do that we need to load the modules
that we will need and create a working
folder where we will export objects and
save the resulting nav X file now let's
export the original text files we
obviously need to do this once as long
as the original is not changing the
exported txt file is fine to use for
creating Delta's next we need to export
our developed objects it
always advise to export all objects so
this is what we will do now as you can
see two files were created it's now time
to compare them and create the deltas
for our extension the next thing we need
is the manifest the manifest basically
describes the extension like who is the
odor a small description prerequisites
things like that so let's create a
manifest for this extension the script
is going to take into account that if
the manifest file already exists that is
going to take that manifest it is
important to keep the app ID generated
by the new nav app manifest command let
you should never change the app ID
during the life cycle of your extension
because that would disturb things like
data archive and such now we have all
the bits we minimally need to create the
extension the manifest and the deltas so
let's use the new nav app package to
create the nav X file and point to the
resources that we just created there you
go the nav X file is created this is our
extension let's no test our extension in
our test environment to make an
extension available on certain system
you need to publish it when it's
available you can install it to a
certain tenant on a single tenant
environment like our test environment
you can install it to the tenant default
so first thing we do is execute the
publish nav app command late' now the
app is being tested the deltas are being
applied and the corresponding meta data
tables are being filled so that the nst
knows what to do when the extension is
being installed in a certain tenant
let's do that next let's execute the
install nav app command late' to make it
available in our default tenant we can
now open the windows client of our test
environment to test our extension let's
open the
Tim list and yes or field item
classification is there as is our new
action which basically means that the
extension has been made available
successfully
in this video you have seen the basic
steps you need to take to create and
test a microsoft dynamics nav extension
you can find more info on extensions in
the dynamics learning portal with the
link that i provided here thanks for
watching and see you soon in another how
do I video from the Microsoft Dynamics
NAV extension series
