Dynamics 365 Education and Knowledge

Dynamics 365 Education and Knowledge

https://charlesabikhirs.blogspot.com

DUPLICATED WORKFLOWS IN DYNAMICS 365 ADVANCED FIND

Published

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
Duplicated workflows

Well, these records are not duplicated records of the workflows. So what are they and how they are created?
  1. 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
  2. If the workflow is deactivated, the status of all the workflow instances returned in the Advanced Find will be Draft
  3. If the workflow is activated, only two workflow instances Status will be Activated and the status of the other instances will be Draft
  4. 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
  5. 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.
  6. 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!

Continue to website...

More from Dynamics 365 Education and Knowledge