BI-System mit OData und SharePoint OnlineToni 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
DevelopmentOffice 365Azure
blog.atwork.atcodefest.at CloudUserGroup
MVP Windows Platform Dev.
Toni Pohl
• Szenario & Database• OData Interface mit WebAPI• Excel & PowerBI• SPO App mit OData
Agenda
Lernen Sie Office 365von einer neuen Seite kennen.
Eigene Apps können Daten bereitstellen und konsumieren – mit OData.
The most strategic developer surface area for us is Office 365
“
”Satya Nadella
Office 365 by the numbers
Trillion Emails sent with Office 365
4Million objects in the directory
50 Billion attachments
60 Petabytes of data
470
Billion relationships in Office graph
8Million meetings per month
850
Fortune500 companiespurchased Office 365in the last 12 months
80%
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 Developing3. 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
SzenarioDaten lesen, bereitstellen und verwenden
SQLAzure
DB
ODataWebAPI
Data Excel PowerBI
SPO App
Security…
Was wir in dieser Session tun werden…
Die Basis: Daten……zentral in SQL Azure bereitstellen
http://sqlazuremw.codeplex.com
SQL Azure MW
OData?
• 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 Profilehttp://server/site/_api/SP.UserProfiles.PeopleManager•Search http:// server/site/_api/search•Publishing http:// server/site/_api/publishing
OData in SharePoint 2013Service 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
requestshttps://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 2013https://msdn.microsoft.com/en-us/library/office/jj163802.aspx
OData Beispiele für SharePoint
WebAPI InterfaceDemo
PowerBIIn Office 365 / SharePoint Online
Securing…
https://github.com/jjabney/Lucid.Web.Portal/blob/master/Lucid.Web.Portal/HttpModules/BasicAuthHttpModule.cs
SharePoint App
http://dev.office.com/devprogram
Developer Program Launch
E-mail Newsletters
Free Developer
Subscription
1 YEAR FREE
Free Training
Free Tools Webinars
• 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
Registrieren Sie sich für dasDeveloper Program
http://dev.office.com
Channel9 Videosansehen
https://channel9.msdn.com
Ausprobieren!
http://blog.atwork.at
Vielen Dank!Toni Pohl
Top Related