"get-crmrecords -entitylogicalname team" shows the administratorid as the team admin. I need to alter these via script, but when I do:
set-crmrecord -entitylogicalname team -id <team guid> -fields @{administratorid = "Name"}
I get the following error:
System.InvalidCastException: Microsoft Dynamics CRM has experienced an error. Reference number for administrators or support: #7537B7EB At C:\Windows\system32\WindowsPowerShell\v1.0\Modules\Microsoft.Xrm.Data.PowerShell\Microsoft.Xrm.Data.Powershell.psm1:758 char:9 + throw $conn.LastCrmException + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : OperationStopped: (:) [], FaultException`1 + FullyQualifiedErrorId : System.InvalidCastException: Microsoft Dynamics CRM has experienced an error. Reference number for administrators or support: #7537B7EB
I'm sure I'm missing something here, but what is the preferred methodology of setting the team admin here? I'd prefer not to do this manually, as we have 40 teams across multiple orgs (5 dev, 5 test, 5 QA, 1 trn, 1 prd) to deal with.
*This post is locked for comments