Dogfood 2012 - Advanced BDC/BCS Development


Published on

  • Be the first to comment

  • Be the first to like this

No Downloads
Total views
On SlideShare
From Embeds
Number of Embeds
Embeds 0
No embeds

No notes for slide

Dogfood 2012 - Advanced BDC/BCS Development

  1. 1. Advanced BDC/BCS Development Scott Brickey SharePoint Practice Manager MCP, MCTS, MCITP, MCPD, SRSLY, WTF © 2012 Strategic Data Systems. All rights reserved.
  2. 2. About UsSDS SharePoint Custom SolutionsCount on our Agile development and expert coding experience to create an optimalsolution for your unique SharePoint application and integration needs.· Business Process Automation with Workflow and InfoPath· SharePoint Business Intelligence and Reporting· Portals and Collaboration· Content Management*Agile Practices for proven faster delivery, higher quality, & increased business value.For twenty years, SDS has solved enterprise development challenges using codingbest practices. We deliver required functionality with · Exceptional code quality · Maintainability · Reliability
  3. 3. What is the BDC / BCS• Business Data is the data in Line Of Business systems • ERP, CRM, HR• SP2007 – Business Data Catalog • Expose the data• SP2010 – Business Connectivity Services • Connect the data• SP2013 – BCS improvements
  4. 4. Why business data?• Data exists in many systems • ERP, CRM, HR• Employees must access them individually • User dissatisfaction • Data is NOT always consistent • Which data is the MASTER data? • Higher costs (training, licensing, compliance, etc)
  5. 5. What can BCS provide?• Consistent user experience • SharePoint lists, lookup columns, InfoPath forms • SharePoint Workspace (offline access) • Office integration• Search indexing• Data Access • Client Side Object Model • Search Federation • 2013: REST• Identity / Authentication • Kerberos, Claims (WS-*, SAML), Secure Store
  6. 6. BDC/BCS Architecture• Connectors • .Net assemblies (compiled code) • Select, Insert, Update, Delete• Metadata Model Files • Objects • Primary Keys • Searchable Fields • Operations • SharePoint Actions • Relationships • Settings / Parameters
  7. 7. Built In Connectors and Tools• Connectors • Web Service / WCF Service • SQL Database • .Net Assembly• Tools • SP Designer 2010 • BDC Metaman
  8. 8. Built In Connectors – Limitations• Data structures are mapped “as-is” • Usually: good for WCF, bad for SQL• No support for “advanced” features • Batch commands (Bulk*)• Simple data types ONLY • No support for SQL geo/spatial data• Relationships ONLY via foreign keys
  9. 9. Custom Code• .Net Assembly Connector • Content Type  .Net Class • Operation  .Net Method • Base (template) model file + SPD model file• Custom Connector • Class which implements • ISystemUtility – BCS connector • IAdministrableSystem – Configuration options • Single model file
  10. 10. .Net Assembly Connectors• DLL stored in BDC database, automatically installed on clients• Simple mapping from .Net objects to external content types • Primitive structs ONLY • No generics • Code should be static• No awareness of metadata model files
  11. 11. Custom Connectors• DLL installed into SP, manual install onto clients• Custom data mapping of BDC/BCS objects • Code can be more flexible• Awareness and access to Model file• Multiple security options available • Revert To Self (system) • Passthrough (user) • SSO / Secure Store • Configuration parameters (cleartext!)
  12. 12. Operations• Finder • Creator • SELECT ALL• SpecificFinder • Updater •• SELECT by Primary Key IDEnumerator • Deleter • SELECT ALL Primary Keys • Required for Search Indexing • EventSubscriber• StreamAccessor • EventUnsubscriber• AccessChecker• Bulk*
  13. 13.
  14. 14. References• Expert WSS 3 and MOSS 2007 Programming • Chapter 13, Pages 655 – 790• Differences Between using the .NET Assembly Connector and Writing a Custom Connector• How to: Publish a .NET Connectivity Assembly to the BDC Metadata Store• Code Snippet : Implementing a Custom Connector• External Content Types in SP2013 us/library/jj163139(v=office.15).aspx• External events and alerts in SP2013 us/library/jj164024(v=office.15).aspx
  15. 15. More InformationSDS SharePoint Webcast:Sharing Business Insights – Integrating with BusinessIntelligence Reports, 11/30Visit to registerSharePoint Library for various components. Lunch and LearnsPublications on the SDS website and bloghttp://sds-consulting.comVisit my blog at
  16. 16. Thank you. For more information please contact: Scott Brickey 800-886-9405© 2012 Strategic Data Systems. All rights reserved.