web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

CRM Organization Service for Multi Threading or Parallel Processing

(0) ShareShare
ReportReport
Posted on by 390

Hi,

What is the best approach to multi threading or parallel processing in MS Dynamics CRM.

I have to create new records in Dynamics CRM take for example 1 million records. I will use 5 threads to create those records parallel so that it completes in time. What is the best way to create organization service so that the each thread creates the record in parallel without affecting another thread. 

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Roberto Ilidio Profile Picture
    on at
    RE: CRM Organization Service for Multi Threading or Parallel Processing
    Microsoft sample code:
    ​

  • Jayakumar Profile Picture
    390 on at
    RE: CRM Organization Service for Multi Threading or Parallel Processing

    Thanks Pedro and Kenneth. I will try this method.

  • Jayakumar Profile Picture
    390 on at
    RE: CRM Organization Service for Multi Threading or Parallel Processing

    Hi Wayne,

    How to use this in SSIS or .NET Console application?

  • Kenneth Leong Profile Picture
    360 on at
    RE: CRM Organization Service for Multi Threading or Parallel Processing

    actually scott wrote a whole series of 3 parts documenting this and i've found great success sending requests successfully. The last one is of particular importance. It documents the rarely used CachedOrganizationService and how it affects the loading of metadata on authentication and how to squeeze every last millisecond out of your connection to crm.

    www.develop1.net/.../Microsoft-Xrm-Client-Part-3a

  • Kenneth Leong Profile Picture
    360 on at
    RE: CRM Organization Service for Multi Threading or Parallel Processing

    Trust this guy:

    community.dynamics.com/.../simplified-connection-management-amp-thread-safety-revisited

  • Community Member Profile Picture
    on at
    RE: CRM Organization Service for Multi Threading or Parallel Processing

    Hello Jayakumar,

    I believe the post from Scott Durow might be very helpful for you. :)

    Cheers!

    ---

    I missed the link. Kenneth Leong posted it.

  • Verified answer
    Wayne Walton Profile Picture
    13,728 on at
    RE: CRM Organization Service for Multi Threading or Parallel Processing

    Why not just use the batch functionality in the API? community.dynamics.com/.../web-api-bulk-operations

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Andrés Arias – Community Spotlight

We are honored to recognize Andrés Arias as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
Community Member Profile Picture

Community Member 2

#2
Christoph Pock Profile Picture

Christoph Pock 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans