Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Dynamics 365 general forum

Deploy Update for a Custom Workflow Activity

(0) ShareShare
ReportReport
Posted on by 105

Hi Experts,

I have a assembly(.dll) which contains 3 custom workflow activity steps under it. I have changed the code for one of the programs for one of the custom workflows, but when I compile the .dll created, contains the code for the changed module + the other modules as well.

I've registered this assembly using the registration tool in Dev, and during that, i had checked update all the steps for updating the other workflow activities, even though they weren't changed.

So now when i need to move this change to test and prod, via a solution, do I only need to include only the Plugin-assemblies  component, or do I need to also include the SDK message Processing Steps too ? (these already exist in test & prod). As, my change was an update to the code and I haven't introduced a new module in the assembly.

  • Toly Rogers Profile Picture
    105 on at
    RE: Deploy Update for a Custom Workflow Activity

    Hi Andreas,

    Thank you for your response to my post.

    The change I've made is in the logic for a bug fix. I haven't changed the input/output parameters of the custom workflow activity.

    So it seems to me, that the below section of the first link you shared is relevant in my case:

    Update a custom workflow activity

    You might want to update your existing workflow activities to fix some bugs or to make changes in some of the private code implementation. When updating a custom workflow activity, make sure that you do not make significant changes in the public classes or method signatures in the underlying code, such as changing the input parameters, because this might break existing workflow instances that use the custom workflow activity.

    Make necessary changes in the underlying code of the custom workflow activity.

    Change the values for <build_number> and <revision> only in the assembly information of the custom workflow activity, and compile it. For example, change the value of your assembly from “1.0.0.0” to “1.0.10.5”.

    Update your registered custom workflow activity in Dynamics 365 with the new assembly.

    After updating the custom workflow activity in Dynamics 365, all existing running process (workflows and dialogs) instances that are using the custom workflow activity will automatically start using the updated activity without requiring you to update the process definitions.

    I've created a new solution with version 1.0.0.0 and added the existing assembly in it. Do I need to change the build and revision number for the assembly before I move it to Test and Prod, and if so, how can I go about doing that?

    Thanks.

  • Verified answer
    Toly Rogers Profile Picture
    105 on at
    RE: Deploy Update for a Custom Workflow Activity

    Thank you Mahender for your response. I have now only included the .dll file now in my Solution.

  • Suggested answer
    Andreas Cieslik Profile Picture
    9,267 on at
    RE: Deploy Update for a Custom Workflow Activity

    Mahender is right, but also consider what happens if you apply assembly versioning:

    docs.microsoft.com/.../update-custom-workflow-activity-using-assembly-versioning

    journeyintocrm.com/.../1092

  • Verified answer
    Mahendar Pal Profile Picture
    45,095 on at
    RE: Deploy Update for a Custom Workflow Activity

    Hi,

    You just need to move whatever you changes, so if you changed only assembly code and there is no changes on the registration steps, you don't need to redeploy steps, just include your assembly in your solution for deployment.

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.

Helpful resources

Quick Links

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

Forum Structure Changes Coming on 11/8!

In our never-ending quest to help the Dynamics 365 Community members get answers faster …

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

Leaderboard > Dynamics 365 general forum

Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans
Liquid error: Exception has been thrown by the target of an invocation. Liquid error: Exception has been thrown by the target of an invocation. Liquid error: Exception has been thrown by the target of an invocation.