Currently, develop some code in c# for insert record into res.partner(Contacts) using Odoo API one by one using loop in c#. But i want to insert all record by single time Odoo API call, is it possible ?
Please have a look my existing code
foreach (var loCustomer in loCustomeresList)
{
if (!string.IsNullOrEmpty(loCustomer.lsName))
{
loRecordPairCompany = new XmlRpcStruct();
loRecordPairCompany.Add("name", loCustomer.lsCustomerID);
loRecordPairCompany.Add("Phone_Number", loCustomer.lsPhoneNumber);
loRecordPairCompany.Add("email", loCustomer.lsEmail);
loRecordPairCompany.Add("website", loCustomer.lsWebsite);
loRecordPairCompany.Add("property_payment_term_id", loCustomer.liCustomerPaymentTerm);
loRecordPairCompany.Add("is_company", true);
int liCompanyID = loRpcRecord.create(Common.lsDbName, liUserid, Common.lsDbPassword, "res.partner", "create", loRecordPairCompany);
}
}