Monday, May 12, 2008 8:42 PMHi,
I was trying to walkthough Bulk Delete following "http://msdn.microsoft.com/en-us/library/cc151194.aspx"
Here are the problems I got:
1st, I got error message like:
Error 1 The type or namespace name 'CrmSdk' could not be found (are you missing a using directive or an assembly reference?)
Error 2 The type or namespace name 'Utility' does not exist in the namespace 'Microsoft.Crm.Sdk' (are you missing an assembly reference?)
I added a web refence from http://<serverort>/mscrmservices/2007/CrmServiceWsdl.aspx ann named it as CrmSdk.
For Microsoft.Crm.Sdk.Utility, some one told me to add the code from http://msdn.microsoft.com/en-us/library/cc308186.aspx
I did, after I build the solution, it showed no error. But the records supposed to be deleted are still there.
The artical said "Build and run the sample. The sample code will create a bulk delete operation to remove the exported records". Am I missing some steps? Did anyone try this code?
Need help to make it works!
Tuesday, May 13, 2008 8:18 AMModerator
Have you added webreferences of CRM Service, for more see MS CRM SDK.
Tuesday, May 13, 2008 1:56 PMYes, I did.
but I need to change to refenrence name
from "using CrmSdk" to "using <cs-filename>.CrmSdk"
For Microsoft.Crm.Sdk.Utility, I don't know where it is. I copied the utility sample code from http://msdn.microsoft.com/en-us/library/cc308186.aspx.
I don't if that works or not. I build the solution of my code. No error. Nut nothing happened in CRM. The code supposed to delete the records of closed opportunities and activities.
I don't know where I did wrong.