Сообщение от
Inmate
try
{
Guid ID = new Guid("7AB935EF-A27A-DE11-A140-00155D007805");
customeraddress customeraddress = new customeraddress();
customeraddress.name = "name";
customeraddress.city = "city";
customeraddress.addresstypecode = new Picklist();
customeraddress.addresstypecode.Value = 1;
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);
}
catch (SoapException exc)
{
throw new Exception(exc.Detail.InnerText);
}