web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Custom Workflow Activity - Input Parameters

(0) ShareShare
ReportReport
Posted on by 185

Hello Everyone,

Question is adding or removing input parameters in Custom Workflow Activity is not effected until I unregistered the assembly and registered again. This re registering step forces me to remove all the assembly steps in workflow and if my Workflow has many calls to this assembly this rework reduces productivity.

Can anybody knows is there any way using which I can get rid of this rework and get my new input params without unregister the assembly?

Regards,

Zeshan Khan

SR. CRM Consultant

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Oguz Erdeve Profile Picture
    on at
    RE: Custom Workflow Activity - Input Parameters

    This is a crm bug and below is a good workaround.

    Increase the major or minor version of your assembly.

    Then register your plugin as NEW ASSEMBLY with plugin registration tool. (Dont update it).

    Your new parameters added or changed should be available on the new version of your assembly via crm ui.

    https://docs.microsoft.com/en-us/dynamics365/customer-engagement/developer/workflow/update-custom-workflow-activity-using-assembly-versioning

    I have tested this with plugin reg tool 8.2 and 9.0.0.9314 with crm online (9.2) all worked fine.

  • cfharp Profile Picture
    15 on at
    RE: Custom Workflow Activity - Input Parameters

    OÄŸuz Erdeve - I tried this with no luck.

  • Suggested answer
    Oguz Erdeve Profile Picture
    on at
    RE: Custom Workflow Activity - Input Parameters

    We had opened a ticket for this issue with Microsoft. This is accepted as a bug for plugin registrations tool.

    I have tried increasing the major and/or the minor version of the assembly. Still the newly added parameters didn't show up. (This is on CRM online version 9.0)

    You may install the new version of the plugin registration tool(Plugin Registration Tool Version 9.0.0.9314) and try to update your plugin assembly. Let us know if the new version fixes the problem.

    https://docs.microsoft.com/en-us/dynamics365/customer-engagement/developer/download-tools-nuget  

    [View:https://docs.microsoft.com/en-us/dynamics365/customer-engagement/developer/download-tools-nuget:750:50]  

  • RaviKashyap Profile Picture
    55,410 Moderator on at
    RE: Custom Workflow Activity - Input Parameters

    Yes, that correct.

  • Zeshan Khan Profile Picture
    185 on at
    RE: Custom Workflow Activity - Input Parameters

    Thanks Ravi for explanations.

    You have already given answer that is "If you make changes to input/ output parameters, you should release an upgrade of your current assembly by incresing the major version of the assembly"

    You are saying right. So, conclusion is we cannot update existing custom workflow assembly with new parameters until I changed assembly version.

  • Suggested answer
    RaviKashyap Profile Picture
    55,410 Moderator on at
    RE: Custom Workflow Activity - Input Parameters

    Here are some screenshots-

    Workflow02.png

    Workflow02.png

    Hope this helps.

  • Suggested answer
    RaviKashyap Profile Picture
    55,410 Moderator on at
    RE: Custom Workflow Activity - Input Parameters

    Hi Zeshan,

    You don't need to update the existing assembly. You need to register the upgraedd (v 2.0) again keeping the existing as is.

    Once you upload the assembly again, you will get option in workflow editor to select the version.

    I will share the screenshot of my workflow shortly.

  • Zeshan Khan Profile Picture
    185 on at
    RE: Custom Workflow Activity - Input Parameters

    Thanks Ravi for responses.

    I tried yesterday. I upgraded the assembly information from 1.0.0.0 to 2.0.0.0. When I tried to update the existing assembly which is being used in multiple workflows, message appears you should remove existing references first.

  • Suggested answer
    RaviKashyap Profile Picture
    55,410 Moderator on at
    RE: Custom Workflow Activity - Input Parameters

    If you want to uodate the existing workflows tgen you need to use tge new version of tge assembly.

    So whem you register the upgraded assembly, you will start getting option within workflow editor to select if you want 1.0 or 2.0....from there you can select 2.0 whoch will have the new parameter.

    Please try this and let me know. This should work.

  • Zeshan Khan Profile Picture
    185 on at
    RE: Custom Workflow Activity - Input Parameters

    Yes Ravi. I understand what you are saying but you are not getting my point.

    Here is question in different way, I created workflow assembly. It has 4 input params. I used it in 10 workflows. If there is a requirement to include one more input param and it will be used in existing 10 workflows. When I go to edit workflow there I should see my new param. How it could be achieved?

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Andrés Arias – Community Spotlight

We are honored to recognize Andrés Arias as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
Aric Levin - MVP Profile Picture

Aric Levin - MVP 2 Moderator

#2
MA-04060624-0 Profile Picture

MA-04060624-0 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans