Quantcast
Channel: Microsoft Dynamics CRM Forum - Recent Threads
Viewing all articles
Browse latest Browse all 79901

Instantiate an account object using the SDK returns error missing prvCreateAccount privilege

$
0
0

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


Viewing all articles
Browse latest Browse all 79901

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>