business connectivity services (bcs) for developers

15
Business Connectivity Services (BCS) for Developers Chakkaradeep Chandran SharePoint Server MVP Intergen

Upload: chakkaradeep-chandran

Post on 12-Jun-2015

1.203 views

Category:

Technology


0 download

DESCRIPTION

SharePoint Saturday New Zealand

TRANSCRIPT

Page 1: Business Connectivity Services (BCS) for Developers

Business Connectivity Services (BCS) for Developers

Chakkaradeep ChandranSharePoint Server MVPIntergen

Page 2: Business Connectivity Services (BCS) for Developers

Agenda• BCS Overview• BCS Solutions• Creating BDC Models

– Create, Update, Delete• More demos…

Page 3: Business Connectivity Services (BCS) for Developers

What is BCS?• A set of features that provide the capability to connect SharePoint

2010 and Office 2010 applications to any external system:– Line-of-Business system (Microsoft Dynamics, Oracle, or Siebel)– Web 2.0 service– Custom home-grown application

• Provides read/write capabilities to those external systems• It provides out-of-box features, services and tools that streamline

development to deeply integrate external data and services

Page 4: Business Connectivity Services (BCS) for Developers

The BIG Picture

BCS Client

SharePoint

Business Data Connectivity

External Content Type Repository

External Lists

Dev Platform Enterprise SearchBusiness

IntelligenceCollaboration Social

Enterprise Content Management

Web 2.0DBWCFWeb ServiceLOB

Page 5: Business Connectivity Services (BCS) for Developers

DBConnecto

r

WCF/WSConnector

.NET AssemblyConnecto

r

CustomConnecto

r

BDC Metadata Store

Business Data Connectivity (BDC)

BDC Server Runtime

Presentation in SharePoint

1) External Lists2) External Data Columns3) External Content Type

Picker4) External Item Picker5) Profile Pages

Page 6: Business Connectivity Services (BCS) for Developers

External Content TypesOffice Clients

BCS Client

External Content Type (ECT)

*formerly known as BDC Entity

SharePoint

BCS

External Data Source(WebService, DB, .Net

object, LOB system, Web 2.0 service, etc.)

CustomerFirstNameLastName

Email

GetCustomer()GetCustomers()

UpdateCustomer()DeleteCustomer()

Describes the schema and data access capabilities of an external data source and its behavior within Office and SharePoint

Page 7: Business Connectivity Services (BCS) for Developers

BCS Tooling Support

SharePoint Designer 2010 Visual Studio 2010

Page 8: Business Connectivity Services (BCS) for Developers

No Code Vs Custom CodeNo Code Solutions

External Data Columns

External Lists

Chart Web Parts

Business Data Web Parts

- Business Data List/Related List

- Business Item Data Builder

- Business Data Item

Data Source Type- SQL, WCF Service, .NET Assembly

Custom Code

BDC Object Model

SharePoint Object Model

Client Object Model

Custom Connectors

Page 9: Business Connectivity Services (BCS) for Developers

DemoCreating BDC Models

using VS2010

Page 10: Business Connectivity Services (BCS) for Developers

Manipulating External Lists• External List Template Id = 600• Use SPWeb.Lists.Add(name,description,url,

SPListDataSource) to create external lists• Use the property HasExternalDataSource to check if a

List is an External List• Build CAML query to retrieve your items

• You need a Method tag• Specify the ViewFields

Page 11: Business Connectivity Services (BCS) for Developers

DemoCreating External Lists

using VS2010

Page 12: Business Connectivity Services (BCS) for Developers

BCS Limitations• Workflows cannot be associated with external lists

– However, you can use the external data columns and manipulate the external lists in a workflow

• No RSS feed support for external lists• No REST based access for external lists

– The http://site/_vti_bin/ListData.svc does not support external lists• LINQ to SharePoint spmetal.exe does not support external lists• Cannot configure alerts for external lists• Cannot export external list items to Excel (Export to Excel feature)• Item-Level permissions is not available for external lists

Page 13: Business Connectivity Services (BCS) for Developers

BCS Limitations• Versioning cannot be configured on external lists• Item History is not available on external lists• Datasheet view cannot be used in external lists

– XSLT is supported though

• You cannot create a site column of type ‘External Data Column’– External data columns can be created only as list based columns and cannot be consumed insite level

content types

• No Write support for BLOB– You cannot write back to BLOB fields using BCS unless you write your own method– You can access BLOB columns by defining a StreamAccessor method and presenting the external data

via the BCS Data List web part by checking the Display stream fields property

• Ratings feature is not supported for external lists• Metadata based navigation is not supported for External Lists

Page 14: Business Connectivity Services (BCS) for Developers

Thank You

http://www.chakkaradeep.com

Session Resources

http://www.chakkaradeep.com/page/BCS-Session-Resources.aspx

Page 15: Business Connectivity Services (BCS) for Developers

Thank you to our Sponsors

MS COMMUNITIES