Skip to main content

Notifications

Microsoft Dynamics CRM (Archived)

bulk disable accounts

Posted on by 1,558
Hell All,
I need to disable 200,000 accounts which is not in use can anyone suggest me how should i have to go?

*This post is locked for comments

  • Suggested answer
    Goutham A Profile Picture
    Goutham A on at
    RE: bulk disable accounts

    If you are using onprem and access to Database, they can be easily disabled  by running a query with your specific condition (caution required and carefully run by taking backup)

    delete from accountbase where <<>your condition>

    If online, you have to disable in above said methods or run a batch job.

    Batch job :Use CRM SDK  and write code to delete required accounts  in c# application. Run as windowss batch  in non peak application usage hours.

  • Verified answer
    PS Profile Picture
    PS 23,577 on at
    RE: bulk disable accounts

    Hi Tin,

    Check my comments in this thread: community.dynamics.com/.../216770

  • Suggested answer
    Rutul Chauhan Profile Picture
    Rutul Chauhan 2 on at
    RE: bulk disable accounts

    If your account is not in use , then workflow can not be started on each account unless it is on demand workflow and you run manually.

    Even in view, you can select maximum 250 accounts each time to run on demand workflow.

    Hence I suggest to query accounts which are require to be deactivated through advance find.

    Select all accounts and click on "Deactivate" button. In this process you do not need workflow and still you can query accounts based on filters you applied.

    Regards,

    Rutul

  • TheMarkChristie Profile Picture
    TheMarkChristie 10,328 on at
    RE: bulk disable accounts

    Hi Tin

    How are you defining the accounts?

  • Verified answer
    Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: bulk disable accounts

    Hello Tin,

    You can do this in two ways. Choose the one you find easy :)

    OPTION 1:

    Use a workflow for bulk deactivation. This is the simplest approach.

    8228.10.png

    • Click on "Add step" (choose "check condition" option) and give the condition for filtering your records (near the red arrow mark shown in the image) --> ( IF CONDITION )
    • Click on "Add step" again for specifying the action to be performed for above condition  (choose "change status" option)
      Edit it by setting "status" as inactive (as shown in the image)--> (ACTION TO BE PERFORMED)


    Save and "Activate" the workflow.

    Output : All the records with the specified condition gets deactivated automatically.

     

    OPTION 2:

    • Create an on-demand work flow (put the action as "status equals inactive"). Activate the workflow
      8228.10.png
    • Go to advance find . Give the condition for your query (based on which you will retrieve the records for disabling)
    • Click on Results. You will get all the records satisfying your condition.
    • Select all records and click on "Run Workflow" option at the top. Choose the on-demand workflow created.
      6557.10000.png

      OUTPUT: The records will be disabled.

    Hope this helps :)
    Thanks

    Please do verify if you find it helpful:)

  • Suggested answer
    Nithya Gopinath Profile Picture
    Nithya Gopinath 17,074 on at
    RE: bulk disable accounts

    Hi Tin,

    You can write a workflow for the same and filter the records you need to disable (for example, for unused accounts, filter it by modified date earlier than).

    Refer the link below for more details.

    https://community.dynamics.com/crm/b/gonzaloruiz/archive/2012/07/03/bulk-activate-deactivate-records-in-crm-2011

    Hope this helps.

    Thanks

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,188 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans