Entity recordToUpdate = service.Retrieve("contact", contactId, new ColumnSet(true)); recordToUpdate["parentcustomerid"] = new EntityReference("account", accountId); service.Update(recordToUpdate);