Creating a custom activity for a sandboxed solution

Even with the limited capabilities of sandboxed solutions, you can still develop custom activities that can be used in SharePoint designer without making changes to web.config or adding the .ACTIONS file to the root folder.

In this recipe, we will create a custom activity that can be deployed in a sandboxed environment. This activity will create an event in the calendar for a given date.

Getting ready

The concepts of custom activities need to be understood before following this recipe. Hence you should have completed the previous recipe successfully.

How to do it...

  1. Create an empty SharePoint project called SandboxedActivity and make sure to select deploy as a sandboxed solution.
  2. Add a class file and ...

Get Microsoft SharePoint 2010 Development with Visual Studio 2010: Expert Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.