Hi,
I'm using this simple code based on a sample from SDK (CRM 2013):
OrganizationService srv;
Guid accountId;
using (srv = new OrganizationService(connection))
{
Account account = new Account { Name = "Seveth Tea" };
account.AccountCategoryCode = new OptionSetValue((int)AccountAccountCategoryCode.PreferredCustomer);
account.CustomerTypeCode = new OptionSetValue((int)AccountCustomerTypeCode.Investor);
// "Access denied" exception is thrown.
accountId = srv.Create(account);
Debug.WriteLine(account.LogicalName + " " + account.Name + " created");
}
When the account is being created, the app throws an "Access denied" exception. I'm able to create an account in the Internet Explorer so I don't understand what "access" is denied.
Could anyone clarify that for me?
Thanks,
Leszek
Wiki: wbswiki.com
Website: www.wisenheimerbrainstorm.com