Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

Deleting of all Entity Records in One Shot

(0) ShareShare
ReportReport
Posted on by 225

I have a project transaction entity and occasionally the need to delete all the records and re-import comes up.  This entity is approaching 100K records and using the default delete command would be very efficient. For my on-premise development I can truncate the table and then re-import. Production is online. Is there a way to issue a truncate command or a bulk delete all records in one shot?

*This post is locked for comments

  • HarryZang Profile Picture
    HarryZang 240 on at
    RE: Deleting of all Entity Records in One Shot

    Online environment does not have direct access to the SQL database, so the bulk delete must through either using the oob "bulk delete" function in data management section, or you may able to write a console application to do that. Both are much slower than "truncate the table" operation (although direct DB operation is not a supported method)

  • Suggested answer
    gdas Profile Picture
    gdas 50,085 on at
    RE: Deleting of all Entity Records in One Shot

    Hi Jerry ,

    Use OOB bulk delete which is only the best options available in dynamics CRM ,  as you don't need worry about the deletion error or any issues  and advantages is that its async process.

    Take a look below video for more details -

    www.youtube.com/watch

    .

  • Suggested answer
    sandeepstw Profile Picture
    sandeepstw 4,601 on at
    RE: Deleting of all Entity Records in One Shot

    Hi,

    You can do using copy to sandbox instance and reset then again upload in production. You can take help from this blog.

    www.powerobjects.com/.../reset-production-instances-in-crm-online

  • Suggested answer
    a33ik Profile Picture
    a33ik 84,325 Most Valuable Professional on at
    RE: Deleting of all Entity Records in One Shot

    Hello,

    I believe "Bulk Delete" is what you're looking for - www.encorebusiness.com/.../bulk-delete-records-dynamics-crm

  • Verified answer
    Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Deleting of all Entity Records in One Shot

    Under Settings|Data Management you will see an option called Bulk Record Deletion.  Create a New bulk record delete job ... Just need to define a search criteria (the project transaction entity) and submit the job.

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

Congratulations 2024 Spotlight Honorees

Kudos to all of our 2024 community stars! 🎉

Meet the Top 10 leaders for December

Congratulations to our December super stars! 🥳

Start Your Super User Journey

Join the ranks of our community heros! 🦹

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,711 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,458 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans