Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Help Deleting all Accounts from CRM 4

Status
Not open for further replies.

neemi

Programmer
May 14, 2002
519
GB
We have just installed CRM 4.0 and are having a play with trying to import data into it from anoher aplication. However about 7000 accounts were loaded to CRM using the Tools > import data option on the menu, but I have since started having a play with CRM Data Migration Manager to try and load data more easily.

But before I load any data I want to delete all of the 7000 accounts already on CRM. Does anyone know of the best way to do this?

As if I select the tickbox on the accounts screen to select the accounts and then press delete it only deletes 50 at a time as that is all that appears to be selected. To do it this way wud take me forever.

I noticed that there is a bulk deletion facility but from What I can see this can only be used to delete details imported via DMM? unless I am wrong.

I am new to CRM and wud appreciate some direction and help with this please.

Help appreciated.

Neemi
 
Something could be written to delete the leads programatticaly:

QueryExpression qe=new QueryExpression();
qe.EntityName=EntityName.account.ToString();
qe.ColumnSet=new AllColumns();

BusinessEntity [] entities=crmService.RetrieveMultiple(qe).BusinessEntities;
foreach(account a in entities) {
crmService.Delete(a.accountid.Value);
}

CRMBrad
 
remember - I am a programmer - and this is probably not how MS would have anyone to it

if what you just did a sql delete?

Code:
delete AccountBase

this will get rid of just those records - problem of course is that it will leave all of the other records (like anything in the extensionbase, or contacts - orphaned - you could do same there.

seems that my friends who work for Inetium had a script to clear everything (except users and similar) for 3.0 when we installed - I will ask.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top