PluginRegistration icon indicating copy to clipboard operation
PluginRegistration copied to clipboard

Updating Workflow asembly does not add additional In/Out arguments

Open LeszekSzejka opened this issue 8 years ago • 7 comments

After registering custom workflow activity with eg. 1 input argument any next assembly update via tool does not ADD new arguments, eg. new input and/or output.

Same operation via SDK version does that.

LeszekSzejka avatar Nov 22 '16 08:11 LeszekSzejka

Thanks, that's interesting case, actually...

Can you give me version of your CRM organization? Is it Online or OnPrem?

I have seen similar behavior before, though it was more about caching old assemblies by async workers, so it took some addition time to update in CRM...

shytikov avatar Nov 22 '16 10:11 shytikov

I have also seen this on occasion, and I think updating build number makes CRM pick upp new arguments.

rappen avatar Nov 22 '16 10:11 rappen

It is 2016 IFD.

On Tue, Nov 22, 2016 at 11:34 AM, Alexey Shytikov [email protected] wrote:

Thanks, that's interesting case, actually...

Can you give me version of your CRM organization? Is it Online or OnPrem?

I have seen similar behavior before, though it was more about caching old assemblies by async workers, so it took some addition time to update in CRM...

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/Innofactor/PluginRegistration/issues/16#issuecomment-262205248, or mute the thread https://github.com/notifications/unsubscribe-auth/AM3EuyM9-ZtmlsOMQInWFPgBdI1d8tySks5rAsUdgaJpZM4K5IGN .

LeszekSzejka avatar Nov 22 '16 11:11 LeszekSzejka

SDK PluginRegistration tool does not require incrementing dll version, even the build number. It looks like after initial registering the workflow activity is not being updated - the summary window after updating assembly is showing only that assembly has been updated, not the required workflow activity.

On Tue, Nov 22, 2016 at 11:43 AM, Jonas Rapp [email protected] wrote:

I have also seen this on occasion, and I think updating build number makes CRM pick upp new arguments.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/Innofactor/PluginRegistration/issues/16#issuecomment-262207310, or mute the thread https://github.com/notifications/unsubscribe-auth/AM3EuxgjREFdiRtSb6i5AolLv09x8ixgks5rAsdZgaJpZM4K5IGN .

LeszekSzejka avatar Nov 22 '16 11:11 LeszekSzejka

This issue has been described in detail in a Microsoft article. I summarised it in my blog post below and added an automation feature for it in my Visual Studio extension as well. https://blog.yagasoft.com/2021/12/missing-custom-step-parameters-oracle-series

I would like to add the following to this plugin (already implemented in the extension above), would that be of interest?

  • Select a Plugin Assembly (or Type_s_) as the source and another assembly/type as the target
    • All Plugin Steps will be migrated to their respective type if found
    • All WFs that use a Custom Step in the target assembly will be upgraded to use the new assembly
  • Source: Plugin Steps (across different assemblies/types as well), Target: Plugin Type
    • Move steps to the target type
  • Source: Plugin Steps (across different assemblies/types as well), Target: Plugin Assembly
    • Move steps to their respective type in the target

Please let me know if you would like to add/improve/replace any of those features.

yagasoft avatar Dec 21 '21 16:12 yagasoft

Thanks, we have a plugin available for similar functionality called StepManipulationTool https://www.xrmtoolbox.com/plugins/Innofactor.XTB.StepManipulationTool/

imranakram avatar Dec 22 '21 09:12 imranakram

That's interesting indeed. I checked it out and it does fit some of the requirements.

I have a couple of questions, please:

  1. Does it handle WF Custom Steps?
  2. Can it automatically match the source Plugin Type, or does the user have to migrate each type individually?

For a plugin assembly upgrade, I feel that the Plugin Registration's UI is a bit more user friendly for such an operation. What do you think?

yagasoft avatar Dec 22 '21 12:12 yagasoft