Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- CrmService service = connectToCrm();
- PropertyCollection Prop = new PropertyCollection();
- DynamicEntity Firma = new DynamicEntity();
- // set table
- Firma.Name = EntityName.account.ToString();
- StringProperty accountName = new StringProperty();
- accountName.Name = "name";
- accountName.Value = aDict["name"].ToString();
- Prop.Add(accountName);
- StringProperty vendorCode = new StringProperty();
- vendorCode.Name = "new_bayikodu";
- vendorCode.Value = aDict["new_bayikodu"].ToString();
- Prop.Add(vendorCode);
- StringProperty VD = new StringProperty();
- VD.Name = "new_taxoffice";
- VD.Value = aDict["new_taxoffice"].ToString();
- Prop.Add(VD);
- StringProperty VN = new StringProperty();
- VN.Name = "accountnumber";
- VN.Value = aDict["accountnumber"].ToString();
- Prop.Add(VN);
- StringProperty address = new StringProperty();
- address.Name = "address1_line1";
- address.Value = aDict["address1_line1"].ToString();
- Prop.Add(address);
- StringProperty tel = new StringProperty();
- tel.Name = "telephone1";
- tel.Value = aDict["telephone1"].ToString();
- Prop.Add(tel);
- StringProperty accountEmail = new StringProperty();
- accountEmail.Name = "emailaddress1";
- accountEmail.Value = aDict["emailaddress1"].ToString();
- Prop.Add(accountEmail);
- Firma.Properties = Prop;
- Guid CustomerGuid = service.Create(Firma);
- PicklistProperty city = new PicklistProperty();
- city.Name = "new_city";
- city.Value = 23; // City Picklist Value for 'istanbul';
- Prop.Add(city);
Add Comment
Please, Sign In to add comment