31.07.2009, 10:14 | #1 |
Участник
|
Програмное создание дополнительного адресса
Guid ID = new Guid("7AB935EF-A27A-DE11-A140-00155D007805");
customeraddress customeraddress = new customeraddress(); customeraddress.name = "name"; customeraddress.city = "city"; ColumnSet cols = new ColumnSet(); cols.Attributes = new string[] { "name", "accountid", "accountnumber", "address1_line3" }; account account = (account)service.Retrieve(EntityName.account.ToString(), ID, cols); customeraddress.line1 = "line1"; customeraddress.parentid = new Lookup(); customeraddress.parentid.type = EntityName.account.ToString(); customeraddress.parentid.Value = account.accountid.Value; Guid customeraddressguid = service.Create(customeraddress); Выдает исключение с текстом ошибки: "An unexpected error occurred". |
|