I'm trying to create a new account object (customer) using the exemple which is providing in the SDK.
Dim account_Renamed As Account = New Account With {.Name = "Fourth Coffee"}
account_Renamed.AccountCategoryCode = New OptionSetValue(CInt(AccountAccountCategoryCode.PreferredCustomer))
account_Renamed.CustomerTypeCode = New OptionSetValue(CInt(AccountCustomerTypeCode.Investor))
' Create an account record named Fourth Coffee.
_accountId = _serviceProxy.Create(account_Renamed)
Write(account_Renamed.LogicalName & " " & account_Renamed.Name & " created")
I'm getting the following error :
System.ServiceModel.FaultException`1[Microsoft.Xrm.Sdk.OrganizationServiceFault] : Principal user (Id=78a8306f-4cc8-e211-81d2-00155d0acb14, type=8) is missing prvCreateAccount privilege (Id=d26fe964-230b-42dd-ad93-5cc879de411e) (error detail Microsoft.Xrm.Sdk.OrganizationServiceFault).
I do have the System Administrator role, I even tried to build a copy of this role (Custom System Administrator and to add the requiered privilege to the role)
Any idea ?
Thanks