How to use Package deployer tool to deploy packages for dynamics 365

If you are a developer then you must know what is use of package solutions into dynamics. A package solution contains entities, fields, plugins, your application logic code and etc elements. Sometimes we need more than one package to ship to our customers for their functional dependency. Package deployer tool helps to create a single package that can contain multiple packages, master data files, code, and able to contains almost most of the required elements to create a single package on which we can show custom Html to describe details about the package.

 

We can download the Package Deployer using PowerShell from below link

https://docs.microsoft.com/en-us/dynamics365/customer-engagement/developer/download-tools-nuget

For creating package using visual studio we need package deployer template you can download it from below site

https://marketplace.visualstudio.com/items?itemName=DynamicsCRMPG.MicrosoftDynamicsCRMSDKTemplates

Run the CRMSDKTemplates.vsix to install the template for your visual studio.

After successful installation, create a new project of type CRM Package

 

In solution we have PkgFolder, Inside it we have:

Content -folder in which we can configure wizard’s html page to show information regarding package and company.

ImportConfig.xml – Configuration file for mapping data files and solutions.

Here we need to place our configdata and record files as well.

Below is the screenshot:

To create the data file use configuration migration tool of CRM SDK.

Update ImportConfig.xml by mentioned your files. Place the solution which you like to ship.

Update Html according to your needs.

Now Create one folder and place all the code which you found inside PackageDeployment tool.

Build the solution and copy PkgFolder and dll of the project and paste into newly created folder which has PackageDeployement files

 

Run PackageDeployer, add your orgainization credentials and you will get the deployer wizard as below

Related Posts

Leave a comment