Sandbox Execution Timeout

Wednesday, January 10, 2018

While reviewing existing Microsoft Dynamics 365 Online implementations, I have noticed a repeating assumption by which Custom Workflow Activity, executing within an a-synchronous process, is not subjected to the sandbox 2 minutes execution timeout limitation. This false assumption led to wrong architectural designs in which long running processes are assigned to be handled by CWA components.  As this article states, Custom Workflow Activity code registered to work in sandbox mode is subjected to the 2 min. execution timeout limit, just like Plug-in code. If you want to test this declaration yourself, just put a Sleep statement in your...

Plug-in Configuration Manager Utility

Friday, July 15, 2016

Plug-in components often require external configuration settings. Maybe the Plug-in code consumes a web service which end point alternates between test and production environments or maybe you use the Plug-in configuration to turn logging on and off. Basically, any code setting which depend upon external resources is worth exporting to external configuration as it may prevent code re-compilation, additional testing etc. There are some common approaches to implement configuration settings for Plug-in components: Configuration file: each Plug-in instance consumes a configuration file Configuration record: each Plug-in instance executes a query to retrieve a designated Microsoft Dynamics CRM...
no comments

Why Should You Always Debug with the Plugin Registration Tool

Wednesday, October 21, 2015

I have written posts on how to debug with the Plugin Registration Tool (PRT) and the PRT features in the past. Working mainly with Online deployments lately, I gathered some insights I would like to share here. First, some facts: Debugging Online deployed Custom Workflow Activities (CWA) with the PRT is currently impossibleThis is sad, because there is no method to debug Online CWA with Visual Studio. The PRT is certainly purposed to help debugging CWA, but the functionality just doesn’t work. Additionally, current (v7.1.1) and former SDK versions do not describe CWA debugging procedure with the PRT,...
one comment

Debugging Server Side Components with ReAttach

Monday, April 13, 2015

Whether you are using the Plugin Registration Tool or Attach to server process technique to debug Plugin or Custom Workflow Activity components, you probably waste a LOT of time on the Attach To Process procedure in Visual Studio: 1. Click Debug menu 2. Click Attach To Process… menu option 3. Find the target process in the processes list 4. Click Attach Preform this procedure over and over again for every debug iteration…not only this procedure is time consuming, it also takes your mental focus off the debugging process.   I recently discovered the ReAttach extension for Visual Studio,...

Debugging Workflow Custom Activities with Plugin Registration Tool

Friday, March 8, 2013

I have been using the Plugin Registration Tool to debug Plugins for sometime now and it has turned out to be a real time saver as it let’s you run and debug your code without having to trigger application events. This shortens debug cycles and allows Plugins debugging by multiple developers simultaneously without halting the W3WP process. I have just found out the Plugin Registration Tool can also help debug Custom Workflow Activities as well. Since this feature is currently not documented in the SDK or any other official literature, this post will guide you through. ...