Notifications
Announcements
No record found.
Hello,
I have completed bulk delete jobs in MS CRM. I need to delete them. Is there any way to delete these in MS CRM?
Any help would be much appreciated !!!
Regards,
Sachin
*This post is locked for comments
create another bulk delete job by choosing entity as system jobs with condition system job type equals bulk delete. Once this bulk delete job completes it will clear all bulk delete entries except the current one.
Hi Sachin,
I agreed with the chitra approach but the condition should we like system job name instead
of system job type because type will delete all the rules for bulk deletion.
Please let me know if the above suggestions worked?
Or else there is a script we can run against the Org DB to delete it from CRM.
Thanks!
You can delete user created bulk records using below code
QueryExpression bulkExpression = new QueryExpression()
{
//System Job logical Name ="asyncoperation"
EntityName = "asyncoperation",
ColumnSet = new ColumnSet(new string[] { "asyncoperationid", "name" }),
Criteria ={
Conditions=
//For Bulk delete operation type is 13
new ConditionExpression("operationtype", ConditionOperator.Equal, 13),
//only get records where systemuser is not "SYSTEM"
new ConditionExpression("ownerid", ConditionOperator.NotEqual, "SYSTEM user Guid"),
//you can also add more custom condition here
}
};
var GetUserCreatedBulkRecords=_service.RetrieveMultiple(bulkExpression);
foreach(var record in GetUserCreatedBulkRecords.Entities)
//Delete bulk records
_service.Delete("asyncoperationid", new Guid(record["asyncoperationid"].ToString()));
Hope it'll help you.
Thanks
Aman Kothari
Blog LinkedIn
If it is on-Premise deployment you can try SQL query to delete the system job.
Refer here - support.microsoft.com/.../performance-is-slow-if-the-asyncoperationbase-table-becomes-too-large
Using the SQL will be the unsupported by Microsoft way
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.
As AI tools become more common, we’re introducing a Responsible AI Use…
We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
SA-08121319-0 4
Calum MacFarlane 4
Alex Fun Wei Jie 2