Search code examples
dynamics-crmworkflowdynamics-crm-365

Custom Workflow Activity not updating input parameters


I am facing an issue with my custom workflow activity when I try to update it. Once I do a change on the logic the update is done normally, but when I add new input parameters the changes are not reflected.

Changing the assembly version I am no longer able to update the assembly on CRM.


Solution

  • I've run into the same issue. If I don't want multiple assemblies (as @Henrik describes) I follow these steps:

    1. Settings > Customizations > Customize the System
    2. Plugin Assemblies
    3. Select my custom assembly
    4. Select my custom workflow step affected by the upgrade
    5. Show all Dependencies
    6. Deactivate all dependent workflows
    7. Remove the custom workflow step from every dependent workflow (take lots of screenshots)
    8. Use Plugin Registration Tool to unregister the custom workflow step
    9. Use Plugin Registration Tool to update workflow assembly
    10. Update all workflows to use the new custom workflow step, referring to your screenshots! :)
    11. Activate all workflows

    This forces all processes (workflows) to use the latest version of the assembly. The same sequence of steps is required if you're removing custom workflow input arguments or adding output arguments

    Hopefully you don't have too many affected workflows.