Compartilhar via


Code Sample: BCS Full-Trust Workflow Activity Sample

Applies to: SharePoint Server 2010

The BCS Full-Trust Activity Workflow sample shows how to create a full-trust activity for a workflow that uses Microsoft Business Connectivity Services (BCS).

This sample addresses a basic expense approval scenario that uses a workflow to get the approver and safe limit values from the external system by using Business Connectivity Services. These values correspond to the given employee, specified by an employee ID, and expense type. This sample does not require an external list.

Prerequisites:

  • Microsoft .NET Framework 3.5 Service Pack 1

  • Microsoft SharePoint Server 2010

  • Microsoft Visual Studio 2010 installed on the same computer as SharePoint Server 2010

  • Microsoft SharePoint Designer 2010

Download and use the sample

  1. Download the Microsoft SharePoint 2010 Software Development Kit (SDK) from SharePoint 2010 Reference: Software Development Kit.

  2. Extract bcs sample kit.zip from the path %ProgramFiles%\Microsoft SDKs\SharePoint 2010\Samples\Business Connectivity Services to a local folder.

  3. In the folder where you extracted the files, locate the BCS Full-Trust Activity Workflow Sample folder and open the Readme.htm file.

  4. Follow the instructions in Readme.htm to use the sample.