C# api - Products GetRecord loop Timeout?
Hi Guyz,
I am trying to get products' details of a product list. I get the Deals list, then looping through the deals ang get deal related product record. But my loop freezes on 6th request and gives a Request Timeout Exception after awhile. But its weird It freezes on 6th request every time I tried.
Below is my code;
ZCRMModule moduleIns = ZCRMModule.GetInstance("Deals");
BulkAPIResponse<ZCRMRecord> response = moduleIns.GetRecords(CustomViewId)
List<ZCRMRecord> DealRecords = response.BulkData;
ZCRMModule moduleInstance = ZCRMModule.GetInstance("Products");
foreach (ZCRMRecord record in DealRecords)
{
APIResponse response = moduleIns.GetRecord(record EntityId); I can get product record 5 times and then it freezes here and waiting for response, for a long time and then says "Request timeout".
ZCRMRecord record = (ZCRMRecord)response.Data;
// rest is reading record values
// string Product_Name = record.Data["Product_Name"].ToString();
}