Toni Pohl
Sammeln Sie Daten von einer Website oder mobilen App in einer
SQL Datenbank und analysieren und verwenden Sie diese Daten
anschließend in Power BI und SharePoint Online.
Wir entwickeln eine WebAPI welche OData liefert und konsumieren
diese anschließend mit unterschiedlichen Clients wie Excel und
nutzen PowerBI um Informationen auszuwerten.
Am Ende entwickeln wir eine SharePoint App, welche die Daten aus
unserem Interface verwendet und visualisiert.
BI-System mit OData + SharePoint Online
atwork
CTO atwork.at
Development
Office 365
Azure
blog.atwork.at
codefest.at
CloudUserGroup
MVP Windows
Platform Dev.
Toni Pohl
• Szenario & Database
• OData Interface mit WebAPI
• Excel & PowerBI
• SPO App mit OData
Agenda
Office 365 by the numbers
Tips für das
Entwickeln mit
der Cloud
• Office 365 Tenant
• Get a free one month trial (end of page):
https://products.office.com/en-us/business/compare-more-office-365-for-business-plans
• Windows Azure
• Get a 30 day free trial:
http://www.windowsazure.com/en-us/pricing/free-trial/
• Visual Studio 2013 or 2015
• https://www.visualstudio.com/en-us/?WT.mc_id=dx_MVP5000174
Voraussetzungen für Entwicklung O365
1. Kostenfreies 30-days Office 365 verwenden
(microsoftcie.com als Partner)
2. SPO Web für Developing
3. Verschiedene Browser nutzen [Private Mode]
4. Azure subscription [Connect O365 tenant to Azure]
5. Letzte Code Samples suchen [outdated samples in MSDN]
6. Wir arbeiten mit Cloud Services… [throtteling, version, …]
7. Tools verwenden [GraphExplorer, Samples on GitHub….]
8. PowerShell Scripting hiflt zum Automatisieren und Testen
Office 365 App Entwicklung
Daten lesen, bereitstellen und verwenden
SQL
Azure
DB
OData
WebAPI
D
a
t
a
Excel PowerBI
SPO App
Security…
Was wir in dieser Session tun werden…
…zentral in SQL Azure bereitstellen
http://sqlazuremw.codeplex.com
SQL Azure MW
?
• ist ein Protokoll für REST APIs
• ist ein offenes Protokoll, welches die Erstellung und
Konsumation von Daten durch Abfragen und
interoperable RESTful APIs in einer einfachen und
standardisierten Weise ermöglicht
• http://www.odata.org/
OData
• Ein OData Service liefert per Default Atom XML
• Für JSON-Format muss im HTTP Header JSON angegeben
werden
• OData für Abfragen und auch für CRUD Operationen
(HTTP verbs: GET for reading, PUT for creating, POST for
updating and DELETE for deleting)
• OData ist case-sensitive für Properties, Filters…
OData auf einen Blick
https://msdn.microsoft.com/en-us/library/office/fp142380.aspx
Das SharePoint 2013 REST service
_api ist das neue _vti_bin/client.svc
OData in SharePoint 2013
Grafik: http://blog.concentra.co.uk/2013/02/06/odata/diagram1/
• Site http://server/site/_api/site
• Web http://server/site/_api/web
• User Profile
http://server/site/_api/SP.UserProfiles.PeopleManager
• Search http:// server/site/_api/search
• Publishing http:// server/site/_api/publishing
OData in SharePoint 2013
Service Access Points
• https://spkonf.sharepoint.com/sites/dev/_api/web
• /lists/getbytitle('Ratings')/items?$select=Title,RatingSpeaker
• /lists/GETbytitle('ratings')/items?$filter=Title eq 'SESSion2‘
• /lists/getbytitle('ratings')/items?$top=2&$select=Title
• /lists(guid'852d5762-6032-4150-a550-ff01db0c5517')/Items(2)
• siehe auch:
https://msdn.microsoft.com/en-us/library/office/fp142385.aspx
• Use OData query operations in SharePoint REST requests
https://msdn.microsoft.com/en-us/library/office/fp142385.aspx
OData in SharePoint: Query-Beispiele
Die „Methoden“ GetByTitle(), lists()
etc. sind OData Extensions um das
Service einfacher zu verwenden
https://msdn.microsoft.com/en-us/data/ff478141.aspx
OData Funktionen und Methoden
• https://github.com/OfficeDev/OData-BCS-SharePoint-Hosted-App-
Code-Sample
• http://tomresing.com/2014/05/19/odata-bcs-code-sample-from-
teched-2014/
• OData in SharePoint 2013 with jQuery
http://blog.concentra.co.uk/2013/02/06/odata/
• OData mit BCS? Ja!
Using OData sources with Business Connectivity Services in
SharePoint 2013
https://msdn.microsoft.com/en-us/library/office/jj163802.aspx
OData Beispiele für SharePoint
Demo
In Office 365 / SharePoint Online
Securing…
https://github.com/jjabney/Lucid.Web.Portal/blob/master/Lucid.Web.Portal/
HttpModules/BasicAuthHttpModule.cs
http://dev.office.com/devprogram
Developer Program Launch
• OData und OData in SharePoint
• WebAPI Interface
• Excel & PowerBI
• SPO App mit WebAPI
Slides & Demos: blog.atwork.at
Zusammenfassung
Key Take aways - Call to action
http://dev.office.com https://channel9.msdn.com http://blog.atwork.at
Vielen Dank!
Toni Pohl

BI-System mit OData und SharePoint Online

Hinweis der Redaktion

  • #3 Session description
  • #13 SQL DB zeigen, Tables Session PIN – jeder TN erhält eine PIN Rating – von 1 bis 5, n Zeilen pro TN View: vwRating verknüpft 2 Tabellen – pro TN n Zeilen vwRatingAverage – gruppierte View – pro Session eine Zeile SQL Azure – VS: MVC + WebAPI Folder data erstellen: EF: ADO.NET Entity Data Model DBEntities, Conn von SQL Azure View: Group by + ID klappt nicht, kein Primary Key. Workaround:
  • #19 http://pragmatiqa.com/xodata/
  • #20 http://pragmatiqa.com/xodata/
  • #21 http://www.codeproject.com/Articles/90365/An-overview-of-Open-Data-Protocol-Odata https://msdn.microsoft.com/en-us/library/office/fp142380.aspx https://msdn.microsoft.com/en-us/data/ff478141.aspx
  • #23 G
  • #26 https://msdn.microsoft.com/en-us/data/ff478141.aspx
  • #34 Office 365 / SaaS for Development Office 365 API for your own Apps Check the latest versions of libraries & samples Check out BUILD & IGNITE sessions on Channel9 Build great solutions with Office 365!  Download Slides & Samples: http://blog.atwork.at 3rd party Solution: http://delegate365.com