WHAT’S NEW IN MS GRAPH API
Nilesh Shah
Tech Lead, RN Design Ltd.
@NileshR_Shah www.nilesh.live
C# CORNER – TORONTO CHAPTER
5 April, 2018
2
C# Corner Toronto Chapter
Sponsored By:
• Award winning Architecture / Design firm
• Specializes in serving residential
development industry
▪ Introduction to C# Corner
▪ Introduction of Toronto chapter members
▪ MS Graph API session
▪ Break
▪ Power BI session
▪ Refreshments/Networking
3
▪ Online global community for IT professionals and developers
▪ 4+ million monthly users worldwide
▪ Users contribute to articles, forums, blogs, and videos.
4
5
▪ Chapter is a local user group where
members share technical knowledge
by hosting monthly meetups,
workshops and webinars.
▪ 33 chapters worldwide
▪ 2 chapters in Canada
▪ Toronto
▪ Regina, SK
6
▪ Nilesh Shah
▪ Tech Lead, .NET & O365 dev.
▪ TOGAF 9.1 EA, C# Corner MVP
▪ Vivek Patel
▪ Team Lead, Data & Analytics
▪ Microsoft Data Platform MVP
▪ Nik Shahriyar
▪ Sr.Technical Team Lead
▪ Sr. BI Consultant, MS MVP (former)
7
▪ Theme:
▪ Make developers aware about MS Graph API features, and
introduce to some latest developments in MS Graph API
8
One Endpoint to rule them all
▪ Introduction:
▪ MS Graph API / Explorer / SDK
▪ Advantages, Features, Limitations
▪ What’s new
▪ Extensions, Batching, Delta query, Excel API
▪ Webhooks, O365 Usage reporting, MS Teams
▪ Connectivity: Excel, Power BI,Visual Studio
▪ Demo
▪ MS Graph with .NET SDK
▪ Office 365 Developer program
▪ Registering Office 365 Application
9
10
▪ 1000 B.C.
▪ Multiple Office 365 APIs
▪ Now
▪ MS Graph API: REST API for “mostly everything” in Office 365
11
12
Find the URL/endpoint of the API
Authenticate/Get access token
Get information from the API
Repeat for each service/API
Multiple token management
13
https://graph.microsoft.com/
▪ Single well-known resource
▪ Get (mostly) everything from a single endpoint
▪ Users, Groups, Mail, Calendars, Contacts
▪ Files,Tasks, People, Notes and more…
▪ Ease of development
▪ No calling different endpoints
▪ No separate token management
▪ Logical Navigation
▪ Platform flexibility
▪ Open standards
14
15
▪ Preview: Microsoft Graph SDK for Java
16
17
18
19
20
▪ Combine multiple requests in one HTTP call
▪ Optimize application performance
▪ Instead of looping thru calls, fire all in one batch
▪ Fire related / unrelated calls in a batch
▪ Geek tip: bypass URL length validation for complex filter clause
21
▪ Add custom data to MS graph
▪ Extend MS Graph results with custom data
▪ No external data source required
▪ Types:
▪ Open extensions
▪ formerly Office 365 data extensions
▪ Flexible, open/untyped data
▪ Schema extensions
▪ Define your own complex schema
▪ Strongly typed, can be shared between applications
22
▪ O365 reports
▪ Get O365 usage reports
▪ Identify which apps/services being used
▪ For IT admins - license management
▪ Webhooks
▪ Get notification from MS Graph
▪ Configure own URL to receive notifications
23
▪ MS Graph in hybrid deployment
▪ Currently in preview
▪ MS Teams
▪ A chat-based workspace in Office 365
▪ Excel API
▪ Access and edit Excel files on OneDrive
▪ Work with Excel tables, charts using REST API
▪ Delta query
▪ Get newly created, updated, or deleted entities
▪ Efficiently synchronize changes with a local data
24
25
My Blog: Get O365 data in Excel
My Blog: Get O365 data in Power BI
26
27
My blog: MS Graph provider forVS
▪ Pre-req: Office 365 Dev Program
▪ MS Graph API Explorer
▪ MS Graph SDK
▪ MS App Registration Portal
▪ Console app
▪ ASP .NET MVC app
▪ Connectivity:
▪ Excel
▪ Power BI
▪ Visual Studio / Azure Portal
28
▪ https://developer.microsoft.com/en-us/office/dev-program
▪ My blog: Introducing O365 Dev Program
29
▪ Everything in Graph
▪ https://developer.microsoft.com/en-us/graph
▪ Graph Explorer
▪ https://developer.microsoft.com/en-us/graph/graph-explorer
▪ MS Graph on GitHub
▪ https://github.com/microsoftgraph
▪ My blogs:
▪ https://nilesh.live/blogs/msgraph/
▪ My online paper / daily:
▪ Microsoft Graph API Daily
30
31
@NileshR_Shah
/nileshshah9
www.nilesh.live
Questions?
Sharing is Caring!
▪ Keep looking meetup.com
▪ https://www.meetup.com/C-Corner-Toronto-Chapter-Meetup/
▪ Feedback welcome!
32

What's new in ms graph api nilesh shah 5 apr 2018

  • 1.
    WHAT’S NEW INMS GRAPH API Nilesh Shah Tech Lead, RN Design Ltd. @NileshR_Shah www.nilesh.live C# CORNER – TORONTO CHAPTER 5 April, 2018
  • 2.
    2 C# Corner TorontoChapter Sponsored By: • Award winning Architecture / Design firm • Specializes in serving residential development industry
  • 3.
    ▪ Introduction toC# Corner ▪ Introduction of Toronto chapter members ▪ MS Graph API session ▪ Break ▪ Power BI session ▪ Refreshments/Networking 3
  • 4.
    ▪ Online globalcommunity for IT professionals and developers ▪ 4+ million monthly users worldwide ▪ Users contribute to articles, forums, blogs, and videos. 4
  • 5.
  • 6.
    ▪ Chapter isa local user group where members share technical knowledge by hosting monthly meetups, workshops and webinars. ▪ 33 chapters worldwide ▪ 2 chapters in Canada ▪ Toronto ▪ Regina, SK 6
  • 7.
    ▪ Nilesh Shah ▪Tech Lead, .NET & O365 dev. ▪ TOGAF 9.1 EA, C# Corner MVP ▪ Vivek Patel ▪ Team Lead, Data & Analytics ▪ Microsoft Data Platform MVP ▪ Nik Shahriyar ▪ Sr.Technical Team Lead ▪ Sr. BI Consultant, MS MVP (former) 7
  • 8.
    ▪ Theme: ▪ Makedevelopers aware about MS Graph API features, and introduce to some latest developments in MS Graph API 8 One Endpoint to rule them all
  • 9.
    ▪ Introduction: ▪ MSGraph API / Explorer / SDK ▪ Advantages, Features, Limitations ▪ What’s new ▪ Extensions, Batching, Delta query, Excel API ▪ Webhooks, O365 Usage reporting, MS Teams ▪ Connectivity: Excel, Power BI,Visual Studio ▪ Demo ▪ MS Graph with .NET SDK ▪ Office 365 Developer program ▪ Registering Office 365 Application 9
  • 10.
  • 11.
    ▪ 1000 B.C. ▪Multiple Office 365 APIs ▪ Now ▪ MS Graph API: REST API for “mostly everything” in Office 365 11
  • 12.
    12 Find the URL/endpointof the API Authenticate/Get access token Get information from the API Repeat for each service/API Multiple token management
  • 13.
  • 14.
    ▪ Single well-knownresource ▪ Get (mostly) everything from a single endpoint ▪ Users, Groups, Mail, Calendars, Contacts ▪ Files,Tasks, People, Notes and more… ▪ Ease of development ▪ No calling different endpoints ▪ No separate token management ▪ Logical Navigation ▪ Platform flexibility ▪ Open standards 14
  • 15.
  • 16.
    ▪ Preview: MicrosoftGraph SDK for Java 16
  • 17.
  • 18.
  • 19.
  • 20.
  • 21.
    ▪ Combine multiplerequests in one HTTP call ▪ Optimize application performance ▪ Instead of looping thru calls, fire all in one batch ▪ Fire related / unrelated calls in a batch ▪ Geek tip: bypass URL length validation for complex filter clause 21
  • 22.
    ▪ Add customdata to MS graph ▪ Extend MS Graph results with custom data ▪ No external data source required ▪ Types: ▪ Open extensions ▪ formerly Office 365 data extensions ▪ Flexible, open/untyped data ▪ Schema extensions ▪ Define your own complex schema ▪ Strongly typed, can be shared between applications 22
  • 23.
    ▪ O365 reports ▪Get O365 usage reports ▪ Identify which apps/services being used ▪ For IT admins - license management ▪ Webhooks ▪ Get notification from MS Graph ▪ Configure own URL to receive notifications 23
  • 24.
    ▪ MS Graphin hybrid deployment ▪ Currently in preview ▪ MS Teams ▪ A chat-based workspace in Office 365 ▪ Excel API ▪ Access and edit Excel files on OneDrive ▪ Work with Excel tables, charts using REST API ▪ Delta query ▪ Get newly created, updated, or deleted entities ▪ Efficiently synchronize changes with a local data 24
  • 25.
    25 My Blog: GetO365 data in Excel
  • 26.
    My Blog: GetO365 data in Power BI 26
  • 27.
    27 My blog: MSGraph provider forVS
  • 28.
    ▪ Pre-req: Office365 Dev Program ▪ MS Graph API Explorer ▪ MS Graph SDK ▪ MS App Registration Portal ▪ Console app ▪ ASP .NET MVC app ▪ Connectivity: ▪ Excel ▪ Power BI ▪ Visual Studio / Azure Portal 28
  • 29.
  • 30.
    ▪ Everything inGraph ▪ https://developer.microsoft.com/en-us/graph ▪ Graph Explorer ▪ https://developer.microsoft.com/en-us/graph/graph-explorer ▪ MS Graph on GitHub ▪ https://github.com/microsoftgraph ▪ My blogs: ▪ https://nilesh.live/blogs/msgraph/ ▪ My online paper / daily: ▪ Microsoft Graph API Daily 30
  • 31.
  • 32.
    ▪ Keep lookingmeetup.com ▪ https://www.meetup.com/C-Corner-Toronto-Chapter-Meetup/ ▪ Feedback welcome! 32