UnInstall Deployable Package and Model in D365 Finance and Operations

Special Note Before Uninstalling anything : I would recommend check with all other developer who is sharing the same dev machine before deleting this to make nothing will go wrong. Take a backup of your code.


  1. Login to server using admin credentials
  2. Check your model directory it must be sore under below path/folder

C:\AOSService\PackagesLocalDirectory/<your model>

There can be two scenarios here,

Model belongs to its own package

  • If your model belongs to its own package (For example: An extension package with no other models in the package):
  • Stop the following services: The AOS web service and the Batch Management Service
  • Delete the package folder C:\AOSService\PackagesLocalDirectory\<your model>
  • Restart the services from step 1
  • If Visual Studio is running, refresh your models (Visual Studio > Dynamics 365 > Model management > Refresh models)
  • In Visual Studio, perform a full database synchronization (Visual Studio > Dynamics 365 > Synchronize database…)

Model belongs to standard (existing) package.

  • If your model belongs to a package with multiple models (For example, <your model> overlays Application Suite):
  • Stop the following services: The AOS web service and the Batch Management Service
  • Delete the model folder C:\AOSService\PackagesLocalDirectory<PackageName>\<your model> (In this example PackageName=ApplicationSuite)
  • Restart the services from step 1
  • In Visual Studio, refresh your models (Visual Studio > Dynamics 365 > Model management > Refresh models)
  • In Visual Studio, build the package that the deleted models belonged to (Visual Studio > Dynamics 365 > Build models…)
  • In Visual Studio, perform a full database synchronization (Visual Studio > Dynamics 365 > Synchronize database…)
Leave a comment

Posted by on March 12, 2018 in D365, Uncategorized


Deep links available in every form

Thomas Widmer's AX Blog

Ievgen Miroshnikov gave me the idea and Microsoft also has some information here.

The following extends the standard button available in every Dynamics 365 for Finance and Operations form to provide the deep link to the currently select record of the primary form data source.

Copy the link and share it. The recipient will jump directly to the currently selected record.

(I wonder why Microsoft doesn’t provide this in standard D365FO – this is actually what you would expect from the button.)


View original post

Leave a comment

Posted by on November 4, 2017 in Uncategorized


Dynamics 365 for Operations – Determine table/field/datasource name on form and query of data

If you see a field in Dynamics 365 for Operations and need to navigate out to it, you can do the process in Figure 1 below. You right click on the field of interest, hover over ‘Form information’ option, and then click the ‘Form Name: ….’ option.

You’ll see the ‘Form name’ window appear which contains a wealth of information. It shoudl be fairly similar but you will notice a few additions. In Figure 2 below, you’ll see:

  • Control Information
    • Datasource = the name of the datasource (not the table name but generally is. The table name ‘should’ be fairly similar. You’ll want to look for the query statement to confirm)
    • Data field = the name of the datasource field (generally table field name)
  • Form Information
    • Form name = the form that the menu item is tied to
    • Menu item name = the name of the menu item as it is in the AOT
    • Menu item display = the type of the menu item (display/output/action)
  • Query Statement
    • The query for the datasource. This is nice to see on the front end. No need to dig for it in the back end with the QueryBuildDataSource in code.

Hope this helps!

Figure 1 – Navigation to the form information


Figure 2 – The information on the form information

Controlling Personalization options for specific users in Dynamics AX

Syed Rafay Ali

Personalization tool is a very useful option for users to personalize various screens based on what they would like the screens to look like.

This functionality allow every users to be able to personalize screens, it is sometimes required to disable this option or even give some users explicit personalization options for certain users, based on what type of users of the system they are.

For example, let us say you are configuring a vendor(External) user in your Dynamics AX environment, to provide them access to the Vendor portal, but you obviously do not want to them to be able to personalize screens to add any data fields which you do not want them to see.

The vendor user is setup as shown below, with Vendor (External) security role.


In the new Dynamics AX, you can control user specific personalization options under System Administration > Setup > Personalization. All you…

View original post 58 more words

Leave a comment

Posted by on May 5, 2017 in Uncategorized


Where is Source code located in Dynamics 365 for operations!

 With Dynamics 365 for Operations (D365Ops), there is so much change from its immediately previous version. And one such major change is done in How the Source code is saved?

If you have every worked in AX2009, you know that the source code is saved in files in a specific file location in the AOS server. Now with D365Ops, Microsoft has fallen back to the concept of storing the files in filesystem instead of a database (model database in AX2012 used to hold all the code base).

And the developers working with D365Ops, the primary question is where & how the source code is kept & handled.

Where to find the Source code:
The application code for Dynamics 365 for operations is stored in File system, usually in a directory named PackageDirectory. You can find the details on the configuration related to AOS in a web.config file.

Steps to follow:

  1. Open IIS and go to the Sites\AOSService (in case you missed, AOS is a web service with D365Ops).
  2. Right click > Explore
  3. You should be directed to a folder (to J:\AosService\WebRoot if you are using MS demo environments)
  4. Now search for the web.config file and open it.
  5. Search for a keyword – “Aos.PackageDirectory” and you should be able to find the value for the Package directory.
  6. It should be J:\AosService\PackagesLocalDirectory (if you are using MS demo environments)

How is the Source code updated in the File system:
Now if we try to look into how the code is stored in the File system. In the above identified PackageDirectory, you will find that there are individual folders to consist the code changes for each Model.

The simplest way to understand the structure is to create your own model and verify the below:

  1. Look for the folder relevant to your newly created model (in my case, APM)
  2. Under path //PackageLocalDirectory/APM/APM– you will observe that there are #78 new folders created for each element type in the AOT. All with a subfolder Delta which is going to store the changes made.
  3. And under path //PackageLocalDirectory/APM/Descriptor – you will find a config file storing the information about your model.
  4. And under path //PackageLocalDirectory/APM/XPPMetadata – the metadata information about the AOT objects is stored.

I will write more about few AOT elements and the extensions introduced with D365Ops and we will look more into the structure and changes in the XMLs placed under Delta folder.



Dynamics 365 – How to install the Microsoft Dynamics 365 Developer Toolkit

Hosk's Dynamic CRM Blog


I blogged about uninstalling the Microsoft Dynamics 365 Developer Toolkit and released I hadn’t explained how to install the Microsoft Dynamics 365 Developer Toolkit

If you want to learn what the developer toolkit is and why it’s useful, read this page

You can find manually download the toolkit here

Microsoft Dynamics 365 Developer Toolkit marketplace

The quickest way to install the Microsoft Dynamics 365 Developer Toolkit is straight from Visual Studio.

Go to Tools –> Extensions and updates

search for Microsoft Dynamics 365 Developer toolkit




You will then be able to create Dynamics 365 projects and connect to Dynamics 365 projects.

I would recommend getting the latest version of the Dynamics 365 SDK and regularly update the Developer toolkit because it has a few bugs but they are fixing them regularly

View original post

Leave a comment

Posted by on May 1, 2017 in Uncategorized


Vendor Prepayment Functionality

I like your post and reblogging it on my personal blog.

Microsoft Dynamics AX

The primary objectives to have an ERP (Enterprise Resource Planning) application in the company is to manage and control its resources in organization. Vendor’s prepayments are common or a normal practice in daily business where some vendors request a prepayment (amount/percentage) before shipping the goods or services. MS Dynamics AX 2012 covers this business needs by offering Vendor Prepayment Function, you can track prepayments by defining the prepayment on a purchase order. Vendors can also create a prepayment invoice that is associated with a purchase order, this function was not covered in the previous versions of MS Dynamics AX.

Following are the steps involved with configuring and processing a prepayment for a purchase order, which include the following:

  1. Prepayment Configuration.
  2. Create the purchase order.
  3. Set up the prepayment.
  4. Post the prepayment.
  5. Make a payment.
  6. Settle the payment against the final invoice.

Prepayment Configuration

Vendor Posting Profile

Creates the vendor…

View original post 1,155 more words

Leave a comment

Posted by on March 27, 2017 in Uncategorized

All About Dynamics 365

Dynamics 365, D365, Implementor

Syed Rafay Ali

This blog contains information about Functional techniques and guidelines in Microsoft Dynamics AX, including tips, tricks, tutorials, tools and upcoming news enhancement in Microsoft Dynamics Ax

Philippsen's Blog

Everyday findings in my world of .net and related stuff

Microsoft Dynamics AX

A great site


All things Blockchain, ERP and IoT

Dynamics Ax

Technical Knowledge


A blog about implementing Microsoft Dynamics AX and Dynamics 365 for Operations

Microsoft Dynamics 365 Blog

Strat your organization's digital translation with Dynamics 365, A Blog by Sandeep Chaudhury

DEVSerra - Dynamics AX development blog

Your official Microsoft Dynamics AX blog.


Discovering Dynamics


A blog by Hai Nguyen

Learn Dynamics Ax with Johnkrish

Live as if you were to die tomorrow. Learn as if you were to live forever - Mahatma Gandhi ****** The more I learn, the less I know - Albert Einstein

Twisted Untwirled

Just another site


Just another site

guyterry's Dynamics AX blog

Just another Dynamics AX blog