O'Reilly logo

Beginning SharePoint 2013 Development by Donovan Follette, Chris Johnson, Steve Fox

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

WORKFLOW IN APPS FOR SHAREPOINT

For developers building Apps for SharePoint, whether SharePoint-hosted, Provider-hosted, or Autohosted, Visual Studio provides the tooling for including SharePoint workflows as a part of your solution. Therefore, you can augment your Apps for SharePoint with the workflow capabilities to encapsulate the business processes you want to deliver with your solutions.

In this Try It Out you learn to include a workflow in your app for SharePoint that shows a pattern for an expense approval workflow structure.

TRY IT OUT: App for SharePoint with a Workflow (C15WFAppForSP.zip)
This exercise uses Office 365 but you can use your test on-premises SharePoint setup as well.
1. Run Visual Studio 2012 as Administrator. Select New Project.
2. In the New Project dialog, expand the Templates ⇒ Visual C# ⇒ Office/SharePoint ⇒ Apps nodes. Select App for SharePoint 2013 and provide the name C15WFAppForSP. Click OK.
3. In the Specify the app for SharePoint dialog, set the SharePoint site URL to which you will deploy the app, and choose SharePoint-hosted as the host for your App for SharePoint. Click Finish.
4. In the Solution Explorer, right-click the project node, and select Add ⇒ New item. In the Add New Item dialog, select Site Column, name it Manager, and click Add.
5. In the Solution Explorer, right-click the project node, and select Add ⇒ New item. In the Add New Item dialog, select Site Column, name it Disposition, and click Add.
6. In the Solution Explorer, ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required