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

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Bulk Records Delete using a Plug-in

(0) ShareShare
ReportReport
Posted on by 225

Hello,

I have been doing Bulk Records Deletes through Data Management, while it works fine it just takes about four hours to delete my records. Can the records be deleted using a plug-in or some other method which will increase performance?

Can someone provide examples if this is possible.

*This post is locked for comments

I have the same question (0)
  • Verified answer
    gdas Profile Picture
    50,091 Moderator on at

    Hi Jerry ,

    Is there any specific event you need to fire your bulk delete plugin?If no then I would suggest create a console application where you write your bulk delete code .

    See how to create console application-

    [View:https://arunpotti.wordpress.com/2018/02/03/step-by-step-to-connect-dynamics-365-crm-online-v9-x-using-c-console-application/comment-page-1/]

    Here is sample code reference of bulk delete request-

    [View:https://docs.microsoft.com/en-us/previous-versions/dynamicscrm-2016/developers-guide/gg327493(v%3Dcrm.8)]

    [View:https://docs.microsoft.com/en-us/dynamics365/customer-engagement/developer/sample-bulk-delete-records-match-common-criteria]

  • Verified answer
    a33ik Profile Picture
    84,331 Most Valuable Professional on at

    Hello,

    Plugins and workflows work internally in CRM and have timeout limitations.

    My recommendation - try to use SSIS + Kingsway Soft Intergration Toolkit. I use it for this kind of tasks.

  • Verified answer
    Mahadeo Matre Profile Picture
    17,021 on at

    Hi..

    You can write your own console application to delete records.. but basically it will also do the same bulk delete request to delete records.

    another option is to use integration tools like SSIS packages with cozyrock or kingswaysoft  to delete records.

    Also to increase performance on delete.. check is there any workflows or plugins executing on record deletion or auditing is enabled.. which will cause some slow performance.

    Hope this will help..

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…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans