Hi. I am attempting to authenticate with API from PowerShell. Has anyone done this yet and if so can you advise on the -headers that are necessary?
You can use the Microsoft.Xrm.Data.PowerShell. You can see the documentation in the GitHub repo.
https://github.com/seanmcne/Microsoft.Xrm.Data.PowerShell
You can find the code samples in the links below.
http://rest-examples.chilkat.io/dynamics_crm/powershell/default.cshtml
https://thatcrm.com/2019/05/27/dynamics-365-powershell-using-microsoft-xrm-data-powershell/
https://thatcrm.com/2019/06/04/dynamics-365-powershell-using-microsoft-xrm-data-powershell-part-2/
DAnny3211
359
Abhilash Warrier
137
Super User 2025 Season 2
Martin Dráb
77
Most Valuable Professional