Customer Engagement & Dynamics CRM Forum

Expand all | Collapse all

D365 CE v9 onPrem: Plugin Registration Tool - Custom Workflow Activity

  • 1.  D365 CE v9 onPrem: Plugin Registration Tool - Custom Workflow Activity

    SILVER CONTRIBUTOR
    Posted 29 days ago
    We are in the middle of upgrading from 2016 onPrem to v9.0.23.7 onPrem. We have plugins and custom workflow activities that were built for 2016. I realized that the older versions of the Plugin Registration Tool would not work well with v9; it would not display the steps for the workflows.  I have upgraded the PRT to v9.0.0.9525 and was able to see the steps. I also upgraded my plugin/workflow activities by upgrading the core assemblies and .Net Framework to 4.6.2. I registered the custom workflow activity but when I try to profile it the step is greyed out, I am not able to select it. Any idea as to why it's not selectable?

    Thanks in advance,
    Chrys 


    ------------------------------
    Chrys Wilkinson
    CRM Analyst
    VA
    ------------------------------


  • 2.  RE: D365 CE v9 onPrem: Plugin Registration Tool - Custom Workflow Activity

    TOP CONTRIBUTOR
    Posted 28 days ago
    I'm not sure if this is your issue, but there is a different process for profiling workflow activity code than plugin steps. Rather than selecting the registered workflow activity code, you need to scroll to the bottom of your assembly list and look for "Plugin-in Profiler". Then click "Profile Workflow" in the toolbar. It should bring up a dialog box where it lists workflows you are the owner of. After you select a workflow and start profiling it, you can then trigger the workflow and from that point it should be the same process as profiling and debugging a plugin step (i.e. get the errordetails, attach Visual Studio to the plugin registration tool instance, choose the dll, etc.)

    https://docs.microsoft.com/en-us/powerapps/developer/data-platform/workflow/debug-workflow-activites

    "The opinions expressed are strictly my own and not necessarily those of my employer, Minitab LLC"



    ------------------------------
    Andy Arndt
    Minitab, Inc.
    State College PA
    ------------------------------



  • 3.  RE: D365 CE v9 onPrem: Plugin Registration Tool - Custom Workflow Activity

    SILVER CONTRIBUTOR
    Posted 28 days ago
    Edited by Chrys Wilkinson 28 days ago
    Thank you for the reply Andy. What you suggested is exactly what I do. I ended up rebuilding the custom workflow activity (more or less just copying the code into a new .Net Framework 4.6.2 project) and the steps are now showing. Apparently, I am missing something when I updated the original file. But I learned that the PRT is broken and unable to profile custom workflow activities and is suggested to either use traces or a custom activity. The 2 links below explain the same error that I am now receiving when trying to profile the workflow. If I uncover what I am missing from the upgrade of the original file, I will update the post in order to hopefully help someone else.

    https://community.dynamics.com/crm/f/microsoft-dynamics-crm-forum/410542/cannot-debug-custom-workflow-in-plugin-registration-tool---unable-to-load-assembly-error

     

    https://community.dynamics.com/crm/f/microsoft-dynamics-crm-forum/378762/profile-workflow-unable-to-load-plug-in-assembly-error-dynamics-365-on-premise



    Thank you again for your help,
    Chrys 



    ------------------------------
    Chrys Wilkinson
    CRM Analyst
    VA
    ------------------------------



If you've found this thread useful, dive deeper into User Group community content by role