Add records to Dynamics 365 from PowerShell

Dynamics 365 is a low code solution for a variety of different businesses offered by Microsoft. It is a fully hosted solution which means that you don’t really get access to the underlying database. That’s a good thing (less to manage) but also a bad thing (hard to work with for power users).

In this post we’ll look at how to manipulate records in the CRM using some powershell.

The first thing you’re going to need is to install the Microsoft.Xrm.Data.PowerShell module

Install-Module Microsoft.Xrm.Data.PowerShell

You’ll be prompted to allow installations from the PSGallery, you should probably allow it otherwise this blog post stops being useful.