October 28, 2018

How to get list of installed Packages/Model/Hotfix

Hi Folks,

Let's see how to get details on installed packages and their model and metadata hotfix detail on an environment (non-production in case of hotfix details). There are different way available to get these list. I will show you simpler one for the quick purpose, at the end of post I will share few links with some PowerShell stuff (really cool) to get more detail around the same.
1. Installed Packages and respective model with version number

Open your application and click on gear icon > About
image

Expand the node ‘Loaded package and their model’, you will get the list to see installed packages and further drilling will give to respective model and version details.

image
2.Installed metadata hotfix, (Click here to check how to install metadata hotfix)

To get this list go back to your DEV box VM and open Visual Studio as admin. Go to Dynamics 365 menu > Addins > Apply hotfix

This will open a new window, select ‘View Installed Hotfixes’ tab

image

Here module refers to Packages while Model is same as std Model in a Package. Smile

Here are few more helpful posts

1.. https://blogs.msdn.microsoft.com/axsupport/2016/09/07/find-which-hot-fixes-kbs-you-have-installed-in-microsoft-dynamics-ax/

2. http://yetanotherdynamicsaxblog.blogspot.com/2018/01/list-hotfixes-using-powershell-in.html

Cheers
Harry.

October 22, 2018

October 20, 2018

[SOLVED] Error while get latest on source control Dynamics365FO

Hi Folks,

One of our customers have few ISV and while do a get latest on source control, the system throws an error of permissions and post that nothing works.















The quick fix I found is
1. Stop all below services on dev box,
IIS Admin
MS Batch server
MS DIXF server
Management reporter
World wide web

2. Do a get latest
3. Build the entire application with DB synch. 
4. Turn on all these services back.

That's it. :)

-Harry Follow us on Facebook to keep in rhythm with us. @Facebook

October 15, 2018

Table Event handler methods in Dynamics 365 FO

Hi Guys,

In my last post Form Event hander methods in Dynamics 365 FO, we discussed different event handlers which available on Form.  Let’s continue this discussion with Table event handler method today.
Let’s see the different type of event handler in today’s post.
You need to add a new class to write the event handler methods. I would recommend adding one class to one table. To make it easy for another developer postfix the name by EH or eventHander or Hander so your teammate can identify if they need to add more business logic than create a new class from scratch.

1. Table onValidateField event handler



2. Table OnValidated event hander (same logic you can try for many other event hander)
[DataEventHandler(tableStr(InventLocation), DataEventType::ValidatedField)]
public static void InventLocation_onValidatedField(Common sender, DataEventArgs e)
{
InventLocation inventLocation = sender as InventLocation;
ValidateFieldEventArgs fieldArgs = e;
boolean ret;
InventLocation inventLocationLoc;
switch(fieldArgs.parmFieldId())
{
case fieldNum(InventLocation, field1):
if(inventLocation.MyWorkerAssociate != '')
{
<Your code/ business ogic/validation>
<ret = true or false>
fieldArgs.parmValidateResult(ret);
}
}
}

Let me know if it helps you or you got some more example.

Cheers,
Harry
Follow us on Facebook to keep in rhythm with us. @Facebook