DUPLICATED WORKFLOWS IN DYNAMICS 365 ADVANCED FIND
In this quick post, I'm gonna share a finding about workflows where you will see Duplicated workflows in the Advanced Find result.
Open the Advanced Find and search for a specific process, you will get the result with multiple records with the same name; however,
if you go to the All Processes view, you will not find these duplicated records
Well, these records are not duplicated records of the workflows. So what are they and how they are created?
Well, these records are not duplicated records of the workflows. So what are they and how they are created?
- Each time you deactivate and than reactivate a workflow, a new record will be created with Status Draft, which indicates that a reactivation has been done for the workflow
- If the workflow is deactivated, the status of all the workflow instances returned in the Advanced Find will be Draft
- If the workflow is activated, only two workflow instances Status will be Activated and the status of the other instances will be Draft
- For the two Activated workflow instances, one is for the workflow record itself and is of type Definition, while, the other instances are of type Activation
- You cannot delete the workflow records of type Activation, you will get the following exception: Exception of type 'System.Web.HttpUnhandledException' was thrown. ---> Microsoft.Crm.CrmException: Cannot delete a workflow activation.
- If you delete the process record, the record of type Definition will be deleted, while, the other workflow instances with type Activation will remain in the system with status Draft
Hope This Helps!
Comments
Post a Comment