Search code examples
c#sharepointworkflow-foundation-4

Code Activity not showing in Toolbox?


I've created a new SharePoint project in Visual Studio and added a workflow to it. Then, I added a "Code Activity".

enter image description here

This generates a class that extends from CodeActivity:

public sealed class GetDepartmentManager : CodeActivity

However, it does not generate any XML (or Actions4) file. Additionally, after building everything, it is not visible in the toolbar: enter image description here

Any ideas/tips/experience on what the problem may be?

Notes: I'm using Workflow Foundation with SharePoint 2013, Visual Studio 2012 and Workflow Manager 1.0.


Solution

  • I have found this technet blog that describes the steps that need to be taken to deploy a code activity in a Visual Studio 2012, SharePoint 2013 Workflow: http://blogs.technet.com/b/sharepointdevelopersupport/archive/2013/08/28/how-to-develop-a-workflow-code-activity-in-sharepoint-2013.aspx