Microsoft Ignite NZ 25-28 October 2016 SKYCITY, Auckland.

Slides:



Advertisements
Similar presentations
Andrew Coates Advanced Windows 10 development with the Office 365 APIs DEV33 5.
Advertisements

Martina Grom MVP Office 365 How to (remote) control Office 365 with Azure Toni Pohl MVP Client Dev
Redmond Protocols Plugfest 2016 Tristan Davis Office Developer Platform Overview Principal Group Program Manager.
Redmond Protocols Plugfest 2016 Sudhi Ramamurthy Excel Integration using Microsoft Graph APIs Program Manager.
Software services delivering SharePoint, Mobile, and Business Intelligence solutions Creating mobile applications that integrate with SharePoint 2013 on-
A deep dive into Azure AD B2C
1/10/2018 9:33 PM Cloud Roadshow © 2014 Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO.
Microsoft /26/ :19 PM BRK3114 Create cross-platform mobile apps with Xamarin that connect to Office Services (BRK3114) Fabian G. Williams Sr.
SharePoint Saturday Genève 2016
4/18/2018 1:15 PM © Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN.
Demand Management and Workflow
Office Add-ins: Make your solution a native part of Office
5/13/2018 8:08 AM © Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN.
5/15/2018 5:43 PM © Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN.
Office 365 Developer Overview
Power Your Applications with Excel
5/22/2018 3:04 AM © Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN.
6/1/2018 2:18 AM OSP302 Building Integrated Microsoft Office 365, SharePoint Online, and Office Solutions Using BCS and LOB Data Donovan Follette
Microsoft /4/2018 8:21 AM BRK3082 Build solutions and apps with Microsoft OneDrive API and Microsoft Graph API Ryan Gregg Principal Program Manger,
Microsoft Build /9/2018 8:04 PM © 2016 Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY,
9/11/ :51 AM Cloud Roadshow © 2014 Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO.
Discover the New SharePoint Content Publishing Experiences
The power of common identity across any cloud
Microsoft Connect /2/ :38 AM
Microsoft Ignite /13/2018 7:38 PM BRK2247
Microsoft Virtual Academy
Microsoft Ignite NZ October 2016 SKYCITY, Auckland.
Controlling and leveraging the power of the Microsoft Graph
Azure AD Line Of Business Application Integration
The Future of SharePoint Development - Vision, Strategy, and Roadmap
Microsoft Ignite NZ October 2016 SKYCITY, Auckland.
11/11/2018 1:08 PM © Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN.
Excel REST API updates Sudhi Ramamurthy Sr. Program Manager.
11/13/ :20 AM © Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN.
WorkingLife Balance An example ISV scenario 11/14/2018 6:51 AM
Microsoft Ignite /14/ :21 AM BRK2101
11/14/ :30 PM © Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN.
Microsoft Ignite NZ October 2016 SKYCITY, Auckland.
Get the roadmap for the future of Office development
11/19/2018 © 2014 Microsoft Corporation. All rights reserved. Microsoft, Windows, and other product names are or may be registered trademarks and/or trademarks.
Microsoft Build /18/ :56 AM © 2016 Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY,
Office 365 Development July 2014.
Microsoft Graph- Permissions and Consent
Mobile Center and VSTS:​ Better together for your Mobile DevOps
Office 365 Development.
Migrate your apps from legacy APIs to Microsoft Graph
Microsoft Ignite NZ October 2016 SKYCITY, Auckland
SharePoint User Group Zürich – 1 November 2016.
Office 365 Development July 2014.
Excel Rest API Sudhi Ramamurthy Program Manager, Office Extensibility
12/27/2018 4:59 AM © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, and other product names are or may be registered trademarks and/or.
1/2/2019 9:19 AM © Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS.
Microsoft Build /2/2019 6:45 PM © 2016 Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY,
TechEd /15/2019 8:08 PM © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, and other product names are or may be registered trademarks.
TechEd /18/2019 2:30 AM © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, and other product names are or may be registered trademarks.
Office 365 Development.
Microsoft Ignite /17/2019 6:00 PM
Microsoft Build /22/2019 5:32 PM © 2016 Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY,
Office 365 Development.
Azure Active Directory
Microsoft Ignite NZ October 2016 SKYCITY, Auckland.
Microsoft Graph – Intune API’s
Microsoft Connect /29/2019 4:52 PM
Hello, Minnesota! This is the SPC18 recap.
7/2/2019 8:03 AM © Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS.
Erik Porter Program Manager ASP.NET Microsoft Corporation
8/23/ :09 PM #DEV332 Building Modern, HTML5-Based Business Apps on Windows Azure and Office 365 with Visual Studio LightSwitch Andrew
11/11/2019 1:15 PM © Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN.
11/19/2019 4:08 PM © Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN.
Presentation transcript:

Microsoft Ignite NZ 25-28 October 2016 SKYCITY, Auckland

Building Cross-Platform Mobile Applications with Xamarin and the Microsoft Graph Andrew Coates Microsoft @coatsy http://blogs.msdn.com/acoat

Office Platform WHAT CAN I BUILD? ADD-INS AND WEB PARTS: Microsoft Ignite 2016 11/9/2018 2:08 PM Office Platform WHAT CAN I BUILD? ADD-INS AND WEB PARTS: Make your solution a native part of the modern Office WEB AND DEVICE APPS: Build smarter apps by connecting to Office services VOICE, VIDEO, CONNECTORS, AND BOTS: Create the next generation of productivity solutions © 2016 Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

Agenda Excel REST API and SDK Xamarin Forms Authentication with MSAL Bringing it all together

Excel REST API and SDK

Excel Powered Apps: Workbook as a service TechReady 23 11/9/2018 2:08 PM Excel Powered Apps: Workbook as a service Power your app with 700+ Excel APIs Available over drives API in Microsoft Graph Supports OneDrive Business, Office 365 Groups & SharePoint online files Access secured by OAuth2.0 Uses JSON format for both input and output © 2016 Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

Excel REST API in Microsoft Graph 11/9/2018 2:08 PM Excel REST API in Microsoft Graph Your App Microsoft Graph API (graph.microsoft.com) USERS GROUPS FILES MAIL CALENDAR EXCEL Microsoft Graph rich relationships and insights © 2014 Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

Excel REST API in Microsoft Graph TechReady 23 11/9/2018 2:08 PM Excel REST API in Microsoft Graph Get workbook GET https://graph.microsoft.com/v1.0/me/drive/items/<id>/workbook Microsoft Graph Path to file in OneDrive, SharePoint or Office 365 groups Excel REST API © 2016 Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

Sample queries - reporting Change the background fill color of range A1:A6 PATCH .../workbook/worksheets('Sheet1')/range(address='A1:A6')/format/fill { color: "#FF0000" } Create a column clustered chart with data from A1:C6 POST .../workbook/worksheets('Sheet1')/charts/add { "type": "ColumnClustered", "sourcedata": "A1:C6", "seriesby": "Auto" } Get the chart created as an image GET .../workbook/worksheets('Sheet1')/charts('Chart1') /image(width=0,height=0,fittingMode='fit')

Sample queries – calc and data manipulation Use functions POST .../workbook/functions/pmt { "rate": 0.035, "nper": 20, "pv": -2000 }   Sort data in range A1:A6 POST .../workbook/worksheets('Sheet1')/range(address='A1:A6')/sort/apply { fields: [{ key: 0, ascending: true }] } Filter the Table1 to get the top 3 items based on the 1st column POST .../workbook/worksheets('Sheet1')/tables('Table1')/columns/itemAt(index=0)/filter/apply { criteria: { filterOn: "topPercent", criterion1: "3" } }

Microsoft Graph SDKs support Excel REST API GA: .Net/Xamarin and Android Preview: Node.js, JavaScript Coming: iOS, Ruby, PHP // Create a chart based on the table range. var workbookChart = await graphClient.Me.Drive.Items[excelFileId] .Workbook .Worksheets[“Sheet1"] .Charts .Add("ColumnStacked", "Auto", tableRange.Address) .Request() .PostAsync();

Excel REST API Scenarios TechReady 23 11/9/2018 2:08 PM Excel REST API Scenarios Data Management Automate data collection through API and integration with other services. Consuming existing data in Excel. Worksheet Automation Manage worksheet remotely from your app without UI. Automate workflows around worksheets. Calculation Service Leverage the most powerful calculation engine. Reporting Service Get professional charts, powerful data analysis, even PivotTable all with a simple API call. © 2016 Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

Microsoft Graph SDK Target the /v1.0 branch TechReady 23 11/9/2018 2:08 PM Microsoft Graph SDK Target the /v1.0 branch Decoupled for easy authentication integration Active Directory Authentication Library (ADAL) Microsoft Authentication Library (MSAL) … Available on multiple platforms UWP, iOS, Android and ASP.NET MVC More coming soon… Consistent primitives © 2016 Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

Consistent primitives TechReady 23 11/9/2018 2:08 PM Consistent primitives // C# var user = graphServiceClient.Me.Request().GetAsync(); // Do something... // Java graphServiceClient.getMe().buildRequest().get(new ICallback<User>() { // Do something… }); // Obj-C [[[graphServiceClient me] request] getWithCompletion:^(MSGraphUser *user, NSError *error){ }]; © 2016 Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

TechReady 23 11/9/2018 2:08 PM Codename “Vipr” https://github.com/microsoftgraph/MSGraph-SDK-Code-Generator © 2016 Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

Xamarin Forms

Xamarin Forms

Pages

Layouts

Controls

XAML Markup or Code

Authentication with MSAL

Register your app to use the Microsoft Graph TechReady 23 11/9/2018 2:08 PM Register your app to use the Microsoft Graph Every app must (v1) be registered in an Azure Active Directory tenant declare in advance that it will access the Microsoft Graph declare in advance all of the permission scopes it needs for the Microsoft Graph Every app must (v2) be registered in the Application Registration Portal (https://apps.dev.microsoft.com/) “Spend most of your time building the parts of your app that add value and differentiate it from the crowd.” – Application Registration Portal © 2016 Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

Gotchas You need PCL Profile 7 (no WP8) Default is 111 TechReady 23 11/9/2018 2:08 PM Gotchas You need PCL Profile 7 (no WP8) Default is 111 Edit the Project file © 2016 Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

Gotchas (Android and iOS) You need a custom PageRenderer so MSAL knows how the login dialog will be rendered See https://blog.xamarin.com/authenticate-mobile-apps-using-microsoft-authentication-library/

Gotchas (Android) Turn off Fast Deployment TechReady 23 11/9/2018 2:08 PM Gotchas (Android) Turn off Fast Deployment © 2016 Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

Gotchas (Android cont) TechReady 23 11/9/2018 2:08 PM Gotchas (Android cont) Enable x-machine CPU support in Hyper-V © 2016 Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

Bringing it all together Demo

Resources Excel Developer Centre Excel Developer Session at Ignite US https://dev.office.com/excel Excel Developer Session at Ignite US https://channel9.msdn.com/Events/Ignite/2016/BRK3306 Xamarin.Forms and Graph Session at Ignite US https://channel9.msdn.com/Events/Ignite/2016/BRK3114

Resources Main MS Graph Landing Page MS Graph Change Log TechReady 23 11/9/2018 2:08 PM Resources Main MS Graph Landing Page https://graph.microsoft.io MS Graph Change Log https://graph.microsoft.io/changelog Excel REST API Documentation http://graph.microsoft.io/en-us/docs/api-reference/beta/resources/excel //build MSAL announcement https://blogs.technet.microsoft.com/ad/2016/03/31/microsoft-identity-at-build-2016/ © 2016 Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

Resources (cont) Office Developer Show on MSAL TechReady 23 11/9/2018 2:08 PM Resources (cont) Office Developer Show on MSAL https://channel9.msdn.com/Shows/Office-Dev-Show/Office-Dev-Show-Episode-27-Azure-AD-Converged-Authentication-and-the-Microsoft-Graph Office Developer Show on Excel REST API https://channel9.msdn.com/Shows/Office-Dev-Show/Office-Dev-Show-Episode-28-Microsoft-Graph-and-Excel-APIs iOS Simulator on Windows https://developer.xamarin.com/guides/cross-platform/windows/ios-simulator/ © 2016 Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

Resources (Sample Code) TechReady 23 11/9/2018 2:08 PM Resources (Sample Code) Xamarin Blog on MSAL and Forms https://blog.xamarin.com/authenticate-mobile-apps-using-microsoft-authentication-library/ https://github.com/OfficeDev/Microsoft-Graph-ASPNET-REST-Excel-Donations https://github.com/microsoftgraph/xamarin-csharp-connect-sample © 2016 Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

Resources (//build/ videos) TechReady 23 11/9/2018 2:08 PM Resources (//build/ videos) Microsoft Graph Overview https://channel9.msdn.com/Events/Build/2016/P569 Working with Excel Documents with the Microsoft Graph https://channel9.msdn.com/Events/Build/2016/P556 What's New with Microsoft Graph SDKs https://channel9.msdn.com/Events/Build/2016/P563 What's New in the People API on the Microsoft Graph https://channel9.msdn.com/Events/Build/2016/P571 © 2016 Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

Resources (Office Blog Posts) TechReady 23 11/9/2018 2:08 PM Resources (Office Blog Posts) Microsoft Graph findMeetingTimes API update http://dev.office.com/microsoft-graph-findmeetingtimes-api-update Office Dev PnP Web Cast – Introduction to Microsoft Graph for Office 365 developer http://dev.office.com/blogs/Introduction-to-Microsoft-Graph-for-Office-365-developer © 2016 Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

Questions Building Cross-Platform Mobile Applications with Xamarin and the Microsoft Graph M369 Andrew Coates Microsoft @coatsy http://blogs.msdn.com/acoat

Give you app Office365 Super Powers TODAY graph.microsoft.io

11/9/2018 2:08 PM © 2014 Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.