IT tutorials
 
Technology
 

Sharepoint 2013 : Business Connectivity Services - Connecting to an OData Source

10/24/2014 9:31:45 PM
- Free product key for windows 10
- Free Product Key for Microsoft office 365
- Malwarebytes Premium 3.7.1 Serial Keys (LifeTime) 2019

OData, short for Open Data protocol, is a web protocol to consume Create, Read, Update, and Delete operations using standard web protocols, such as HTTP, Atom, and JSON. OData is a new emerging standard that allows producers to expose their data via a Uniform Resource Locator (URL) and allows consumers to access this data over the web using the aforementioned protocol standards.

Business Connectivity Services in SharePoint 2013 can consume OData feeds. SharePoint 2010 required middleware code to integrate OData, whereas users can now create a simple app connector for SharePoint 2013 and integrate external data.

In this section, I shall provide a short demonstration to integrate a Netflix OData feed into SharePoint. Of course, Netflix is not about to let me make changes to the company’ video catalog data, so the feed is read-only, but this service suffices to demonstrate OData integration with SharePoint.


  1. Launch Visual Studio 2012.
  2. Start a new project.
  3. Select the template App for SharePoint 2013 (Figure 1).

    9781430249412_Fig13-19.jpg

    Figure 1. App for SharePoint 2013 template in Visual Studio 2012

  4. Give the app a name and location to store the project on disk.
  5. Click the OK button.
  6. In the next dialog, confirm the name and URL of the SharePoint site.
  7. Change the drop-down option to host the app in SharePoint.
  8. Click the Finish button.
  9. Right-click the project name in the Solution Explorer.
  10. Choose the Add menu item and then select the Content Types for External Data Source sub-menu item.
  11. Provide the OData service URL for Netflix and a friendly name—see Figure 2.

    9781430249412_Fig13-20.jpg

    Figure 2. Netflix OData URL and friendly name

  12. Click the Next button.
  13. On the last dialog, check the check box for Title entity.
  14. Leave the check box for Create list instances for the selected data entries (except Service Operations) to create list instances.
  15. Click the Finish button.

    Visual Studio has created a new external content type for the OData Netflix Title entity, and created an external list instance for the new external content type. Open the elements.xml file for the Titles list, and you should see the XML for the list definition (Figure 3). Be sure to make a note of the list URL.

    9781430249412_Fig13-21.jpg

    Figure 3. List instance XML for the OData external feed

  16. Right-click the AppManifest.xml file and view the code.
  17. Change the start page of the app to load the list you created, using the URL you noted earlier—in my case: ∼appWebUrl/Lists/Title.

    Deploy the project app to SharePoint (right-click the project name in the solution explorer and then select the deploy menu option).

  18. Open your SharePoint site, where you just deployed the app.
  19. Click the gear icon.
  20. Select the menu item to view site contents.
  21. Scroll and find the Netflix Titles list.
  22. Click on the tile to open the external list.
  23. You should see Netflix aggregated data in SharePoint (Figure 4).

    9781430249412_Fig13-22.jpg

    Figure 4. External content using OData

 
Others
 
- Sharepoint 2013 : Business Connectivity Services - External Data Columns
- Sharepoint 2013 : Business Connectivity Services - External Lists
- Sharepoint 2013 : Business Connectivity Services - External Content Types
- Sharepoint 2013 : Business Connectivity Services - Configure the Secure Store
- Sharepoint 2013 : Business Connectivity Services - Configuring Business Connectivity Services
- Sharepoint 2013 : Business Connectivity Services - Overview of Business Connectivity Services
- SQL Server 2012 : Introducing Basic Query Flow - Select Distinct
- SQL Server 2012 : Ordering the Result Set (part 2) - Specifying the ORDER BY Using Column Aliases, Using the Column Ordinal Position , ORDER BY and Collation
- SQL Server 2012 : Ordering the Result Set (part 1) - Specifying the ORDER BY Using Column Names, Specifying the ORDER BY Using Expressions
- Microsoft Exchange Server 2013 : Addressing Exchange - The display or Details Templates Editor
 
 
Top 10
 
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Finding containers and lists in Visio (part 2) - Wireframes,Legends
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Finding containers and lists in Visio (part 1) - Swimlanes
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Formatting and sizing lists
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Adding shapes to lists
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Sizing containers
- Microsoft Access 2010 : Control Properties and Why to Use Them (part 3) - The Other Properties of a Control
- Microsoft Access 2010 : Control Properties and Why to Use Them (part 2) - The Data Properties of a Control
- Microsoft Access 2010 : Control Properties and Why to Use Them (part 1) - The Format Properties of a Control
- Microsoft Access 2010 : Form Properties and Why Should You Use Them - Working with the Properties Window
- Microsoft Visio 2013 : Using the Organization Chart Wizard with new data
Technology FAQ
- Is possible to just to use a wireless router to extend wireless access to wireless access points?
- Ruby - Insert Struct to MySql
- how to find my Symantec pcAnywhere serial number
- About direct X / Open GL issue
- How to determine eclipse version?
- What SAN cert Exchange 2010 for UM, OA?
- How do I populate a SQL Express table from Excel file?
- code for express check out with Paypal.
- Problem with Templated User Control
- ShellExecute SW_HIDE
programming4us programming4us