


This method must have a first parameter as a SPUserCodeWorkflowContext object and it must return a Hashtable. Then you need to add a method which is the activity logic itself.

First make sure that the class is marked as public. It is this class that will contain the logic for the activity. In order to build a sandboxed activity you need to use Visual Studio 2010 and create a new Empty SharePoint project and choose to deploy it as a Sandboxed Solution. It is really powerful to add custom sandboxed activities and it is very easy as well! In this post I will show you how to really fast build a custom sandboxed activity that breaks the permission inheritance on the item which the workflow is executed on. These activates can then be used by the end-users building workflows with SharePoint Designer. One of the things that that can be deployed to the Sandbox is custom workflow activities. One of the really great features in SharePoint 2010 is the Sandbox, which allows the end-users to upload solutions using the web interface, instead of relying on administrators adding the solutions directly to the farm.
