Home > OS >  Retrieve list of account entity names from Dynamics CRM (Online) using PowerShell
Retrieve list of account entity names from Dynamics CRM (Online) using PowerShell

Time:01-10

I wanted to know if it is possible to retrieve a list of all account names using PowerShell? Basically if you run the following URL in your browser https://OrgURL/api/data/v9.2/accounts?$select=name you will get the below result:

enter image description here

Is it possible to get a similar result in PowerShell with the Display names of the account records?

CodePudding user response:

Take a look into Invoke-WebRequest.

CodePudding user response:

In order to connect to a Dynamics 365/Dataverse instance using PowerShell, you have two options:

  1. Invoke-WebRequest as the other answer (but you need to provide at least the bearer token in order to authenticate the requests)
  2. this cmdlet: Microsoft.Xrm.Data.PowerShell https://github.com/seanmcne/Microsoft.Xrm.Data.PowerShell
  •  Tags:  
  • Related