Quantcast
Channel: Microsoft Dynamics CRM Forum - Recent Threads
Viewing all articles
Browse latest Browse all 82002

Batching an entitycollection for ExecuteMultipleRequest

$
0
0

Hello,.

Has anyone any advice on how best to split up a large entitycollection (10,000+ records) so that I can use ExecuteMultipleRequest and not breach the Maxbatch 1000 limit.

So for 10000 records I want to split the master entitycollection into 10 smaller entitycollections?

I saw the MoreLinq BATCH() function and it looked perfect but if I try

foreach (var mybatch in p.newcontactcollection.Entities.Batch(1000))

I do not know how to cast mybatch to an EntityCollection.

Does anyone know if this is possible either using MoreLinq.Batch (preferably) or any other fairly simple implementation?

Many thanks as ever,


- Seamus

Viewing all articles
Browse latest Browse all 82002

Latest Images

Trending Articles



Latest Images