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

Batch operation with Dynamics CRM Organization Service in C#

$
0
0

Hello,

I am using Microsoft Dynamics CRM 2016 on premise and integrating it with SharePoint 2016 on premise.

I have developed a custom plugin which will be called on post create event of record creation and will create a SharePoint document location for the respective record, which is working absolutely fine. So I have registered the custom plugin with 8 different entities including CRM OOTB entity, which is working as expected.

The above plugin will create the SharePoint document location for the new record, that will be created by user, but we also need to create the SharePoint document location for existing entity records. So for that I have developed a console application which will retrieve all the given entity records, whose document location has not been created and then does the below in order to create a SharePoint document location.

1. Create a folder on SharePoint document library

2. Create a record in SharePointDocumentLocation entity 

The above console application works fine as well, but it takes around 10 seconds to create a SharePoint document location for a single entity record and I have around 300,000 records for 3 different entities which will take many days to do that, so is there any other I can do the above steps in batch operation?

Thanks in advance.

Thanks


Viewing all articles
Browse latest Browse all 46379

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>