How many times you had to created a workflow on some date like Due date which keeps changing as per client's request. While this may sound simple in business, on CRM you have a workflow that may be waiting till this date and send a reminder exactly a week before. So you need to keep calling this workflow every time the date is updated, to make the matters more complicated, all the previous jobs that had initiated due to past modification will keep running and chasing that date which is never going to occur. What you do now, manually cancel those to save system resources and stop the never ending system jobs. There is a way to do it through SDK, in my case I call this function as a custom workflow activity in the first step of the workflow which Cancels any previous jobs of this workflow. #region Cancel My WFs QueryExpression qe = new QueryExpression(); qe.EntityName = EntityName.asyncoperation.ToString(); ColumnSet cs = new
This blog is about a software product called Dynamics CRM by Microsoft, where as CRM stands for Customer Relationship Management.