How To – Using PowerShell to export and import Microsoft Dynamics 365 CE or CRM Solution from one instance to another

banner

With Microsoft.Xrm.Data.PowerShell extensions we can easily export Microsoft Dynamics CRM Development Solutions from one instance and import to another instance without opening up the Dynamics 365 Web Application. This can be automated and scheduled as part of DevOps consulting.

Crm Developer

Pre-requisite

  • Dynamics 365 Instance
  • System Customizer or System Administrator or similar roles in the Dynamics 365 Instance
  • PowerShell x64 version 4.0 or above

You can download the latest version from the below location

https://github.com/seanmcne/Microsoft.Xrm.Data.PowerShell/releases/

identify customers

Extract the content after downloading the zip file at the following location. Make sure to Unblock the zip before extracting.

microsoft xrm data powershell

%WINDIR%\System32\WindowsPowerShell\v1.0\Modules

Launch the PowerShell console to import the module as shown below

powerShell console
Are you looking for automating the process of exporting and importing Microsoft dynamics 365 CE?

We specialize in completing this task using PowerShell extensions.

Next run the below command to connect to your CRM Instance

poweshall command

After successful login, you will get the details of the organization connected

powershell successful login

Now run the following command to export the solution

Replace “Test” with the name of the solution to be exported.

powershell command

After successful run of the command, you can see the result as shown below

command run
commandrun

Different parameters that can be used with the Export - Crm Solution command

crmsolution command

Now to import the solution first connect to the instance to which you would like to import the solution

crm solution commands

Followed by Import- Crm Solution command as shown below

import crmsolution command

Different parameters of the Import – Crm Solution command

parameters of the import crmsolution

Conclusion

In this article, Microsoft Dynamics CRM Developers guide to how we can combine both the Export - Crm Solution and Import – Crm Solution command to easily export and import the solution from one environment to another thus enabling the continues integration (CI) Devops automation.

Empower your Business with Team Aegis, CONNECT NOW!
captcha

Scale your Business with our Software Services Now!
Related article

The provision for creating and sending Dynamics 365 CE (CRM) Emails from a Power-Automate (MS Flow) has always been appreciated due to its simplicity.

Microsoft has launched 2020 release wave 1 on 1st of April which includes new applications and as well as around 400 new features across both Dynamics 365 and Power Platform.

Today, the healthcare business is putting out significant effort to address concerns such as technological implications and improved consumer satisfaction. It had already begun for the healthcare provider to deploy the numerous technology applications in their field of expertise. In addition, they are focused on improving the customer interaction among the provider and its (patients), which will eventually result in increased customer satisfaction and loyalty. People like to believe that they are receiving customized attention. They don’t need to be served as a number.

DMCA Logo do not copy