Hello All,
I am trying to update a account record using alternate key by using the following method but i am getting error"The specified key attributes are not a defined key for the account entity"
1.Create a accountnumber as alternate key for Account Entity and status of the same is showing Active
2.Add the below code to update a account based on the account number "ACT-12345"
// Use alternate key (accountnumber) field to identify an account record Entity account = new Entity("account", "accountnumber", "ACT-12345"); // Set new credit limit; account["creditlimit"] = new Money(100000); // Entity reference using alternate key (emailaddress1) on contact entity account["primarycontactid"] = new EntityReference("contact", "emailaddress1", "joe@duo.com"); UpdateRequest request = new UpdateRequest() { Target = account }; UpdateResponse response = (UpdateResponse)service.Execute(request);*This post is locked for comments

Report
All responses (
Answers (