Looking for an Expert Development Team? Take two weeks Trial! Try Now or Call: +91.9824127020

How To – Deploying packages using Package Deployer tool in Microsoft Dynamics 365 CE

Package deployer tool is part of Dynamics 365 CE SDK tools that helps to automate the various steps of deployment like import of solutions, moving configuration or master data records, deploying any other associated applications, custom code to run etc. by combining them into a single package that can be run which would do all the required steps without manual intervention, thereby, reducing the risk of any error.

Follow the below link to download the Package Deployer using PowerShell

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

Let us see how we can create the Package using Visual Studio and use Package Deployer tool to run the package created.

First, we need to download the Package Deployer template for Visual Studio that is part of Microsoft Dynamics CRM SDK Templates

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

Run the CRMSDKTemplates.vsix to install the template.

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

microsoft-dynamics-365-ce-1

microsoft-dynamics-365-ce-2

In the project within the right click the PkgFolder and add all the components that we want to be part of Package.

Here we have added the following components

  • Sample Solution – Dynamics 365 CE file.
  • Leads – CSV file having lead records.
  • Configuration Data – zip file for the import created using Configuration Migration Utility.

microsoft-dynamics-365-ce-3

After adding the components part of the package, next, we need to update ImportConfig.xml to make the package aware of the content.

microsoft-dynamics-365-ce-4

After update.

microsoft-dynamics-365-ce-5

As we can see we have updated the file to reflect the content of our package.

Now right click the project and build it. This creates the assembly and the PkgFolder that we can use with PackageDeployer tool.

microsoft-dynamics-365-ce-6

We will copy them to package deployer tool’s folder

microsoft-dynamics-365-ce-7

Next, we will run our PackageDeployer.exe and connect to the organization where we want to deploy the package.

microsoft-dynamics-365-ce-8

Click on Next to start the process

microsoft-dynamics-365-ce-9

After successful completion, we’d see all our steps in green.

In case of any error, we can click on View log file link to get the details of the error and fix it.

microsoft-dynamics-365-ce-10

Also, we have an option of updating the HTML files that are part of packages i.e. Welcome page and the End page.

microsoft-dynamics-365-ce-11

Below we have updated the Default.htm of the Welcome Html. These pages will also be deployed as part of the package content to the package deployer folder.

microsoft-dynamics-365-ce-12

This is how the changes reflect inside the Package Deployer tool

microsoft-dynamics-365-ce-13

Thus we saw how using the Package Deployer tool we can automate all the important steps that are part of solution deployment and movement, without any single line of code. Businesses can also consult an Expert Dynamics Implementation Partner when they need guidance on managing more complex deployment requirements.

Aegis Infoways

Aegis Infoways is a leading software development company that provides a wide range of business solutions like software development, data warehouse, or web development for specific business needs.

Related Posts

Your Website Is Not the Problem. Your Workflo...

Your Website Is Not the Problem. Your Workflo...

Nobody plans for this. The business starts with a website maybe something knocked together quickly, fine for the time and then one day there's a request for a booking widget. Then a client login. Then a spreadsheet that one particular person updates every Thursday...

Top Microsoft Dynamics 365 Business Central I...

Top Microsoft Dynamics 365 Business Central I...

Beyond simple accounting and inventory programs, software programs are needed to process the finance, sales, and purchasing functions of a business and connect them to the inventory and customer data. Microsoft Dynamics 365 Business Central software addresses this...

Dynamics 365 Connectors: How to Connect D365 ...

Dynamics 365 Connectors: How to Connect D365 ...

A sales rep calls a customer about a renewal. The customer says they cancelled last week, and the billing system agrees. Dynamics 365 still shows the account as active, so the call is awkward and the forecast is wrong. Most Dynamics 365 rollouts run into this within a...