BI-System mit OData und SharePoint Online

34
BI-System mit OData und SharePoint Online Toni Pohl

Transcript of BI-System mit OData und SharePoint Online

Page 1: BI-System mit OData und SharePoint Online

BI-System mit OData und SharePoint OnlineToni Pohl

Page 2: BI-System mit OData und SharePoint Online

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

Page 3: BI-System mit OData und SharePoint Online

atwork

CTO atwork.at

DevelopmentOffice 365Azure

blog.atwork.atcodefest.at CloudUserGroup

MVP Windows Platform Dev.

Toni Pohl

Page 4: BI-System mit OData und SharePoint Online

• Szenario & Database• OData Interface mit WebAPI• Excel & PowerBI• SPO App mit OData

Agenda

Page 5: BI-System mit OData und SharePoint Online

Lernen Sie Office 365von einer neuen Seite kennen.

Eigene Apps können Daten bereitstellen und konsumieren – mit OData.

Page 6: BI-System mit OData und SharePoint Online

The most strategic developer surface area for us is Office 365

”Satya Nadella

Page 7: BI-System mit OData und SharePoint Online

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%

Page 8: BI-System mit OData und SharePoint Online

Tips für das Entwickeln mit der Cloud

Page 9: BI-System mit OData und SharePoint Online

•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

Page 10: BI-System mit OData und SharePoint Online

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

Page 11: BI-System mit OData und SharePoint Online

SzenarioDaten lesen, bereitstellen und verwenden

Page 12: BI-System mit OData und SharePoint Online

SQLAzure

DB

ODataWebAPI

Data Excel PowerBI

SPO App

Security…

Was wir in dieser Session tun werden…

Page 13: BI-System mit OData und SharePoint Online

Die Basis: Daten……zentral in SQL Azure bereitstellen

Page 14: BI-System mit OData und SharePoint Online
Page 16: BI-System mit OData und SharePoint Online
Page 17: BI-System mit OData und SharePoint Online

OData?

Page 18: BI-System mit OData und SharePoint Online

• 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

Page 19: BI-System mit OData und SharePoint Online
Page 20: BI-System mit OData und SharePoint Online

• 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

Page 21: BI-System mit OData und SharePoint Online

https://msdn.microsoft.com/en-us/library/office/fp142380.aspx

Das SharePoint 2013 REST service

Page 22: BI-System mit OData und SharePoint Online

_api ist das neue _vti_bin/client.svc

OData in SharePoint 2013

Grafik: http://blog.concentra.co.uk/2013/02/06/odata/diagram1/

Page 23: BI-System mit OData und SharePoint Online

•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

Page 24: BI-System mit OData und SharePoint Online

• 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

Page 25: BI-System mit OData und SharePoint Online

https://msdn.microsoft.com/en-us/data/ff478141.aspx

OData Funktionen und Methoden

Page 27: BI-System mit OData und SharePoint Online

WebAPI InterfaceDemo

Page 28: BI-System mit OData und SharePoint Online

PowerBIIn Office 365 / SharePoint Online

Page 30: BI-System mit OData und SharePoint Online

SharePoint App

Page 31: BI-System mit OData und SharePoint Online

http://dev.office.com/devprogram

Developer Program Launch

E-mail Newsletters

Free Developer

Subscription

1 YEAR FREE

Free Training

Free Tools Webinars

Page 32: BI-System mit OData und SharePoint Online

• OData und OData in SharePoint• WebAPI Interface• Excel & PowerBI• SPO App mit WebAPI

Slides & Demos: blog.atwork.at

Zusammenfassung

Page 33: BI-System mit OData und SharePoint Online

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

Page 34: BI-System mit OData und SharePoint Online

Vielen Dank!Toni Pohl