Building solutions with Office Graph

19
Building solutions with Office Graph Wictor Wilén - MVP Waldek Mastykarz - MVP

Transcript of Building solutions with Office Graph

Building solutions with Office Graph

Wictor Wilén - MVPWaldek Mastykarz - MVP

It’s a preview…

Delve [delv], verb

“Reach inside a

receptacle and

search for

something”

“Research or make

painstaking

inquiries into

something”

Delve vs. Office Graph

Delve

An application pivoting on

the data in the Office

Graph

Currently only web based

Office Graph

Based on Search/FAST

Machine Learning

techniques that connects

you to relevant data

An API

Delve Web

Delve App for Android

Delve App for iOS

Delve App for Windows Phone

Privacy in Delve and Office Graph It’s Search -> it’s security trimmed! Relations in the Office Graph

Public or Private Trending stuff

Need at least five (5) interactions before trending

What about a drug-policy trending in Delve? Prohibit Search from index the document library Hide documents from delve. Managed Property

called HideFromDelve. • See: askwictor.com/HideFromDelve

Demo

WHAT IS THIS SHINY NEW THING YOU’RE TALKING ABOUT…

11

Terminology Actor

Source Node in the Office Graph Represented by the DocId of the item in the search index (or ME)

Object Target Node in the Office Graph Represented by the DocId of the item in the search index

Edge Relationship/interaction between the Actor and Object Has a Action type, a Weight, a timestamp and a few more properties

Action type The type of action the Edge represents

Actor ObjectEdge

Action types

SimpleModified, viewed

ComputedTrending, working with

StructuralManager, colleagues

PublicModified, colleagues

PrivateViewed, working with

Types Privacy

Demo

QUERYING THE OFFICE GRAPH

14

Office Graph query options

REST

HTTP GET

HTTP POST

AuthN might be required

/_api/search/query

JSOM

AuthN not required

KeywordQuery()

CSOM

AuthN required

KeywordQuery()

Office Graph and OAuth Querying the Office Graph is supported by

SharePoint Apps – ie classic apps that use ACS and appregnew.aspx

Azure AD Apps – the kind of apps you should use

Requires delegated permissions SharePoint Apps: Search-

>QueryAsUserIgnoreAppPrincipal– Missing permissions -> no result

Azure AD Apps: Office 365 SharePoint Online -> Run file search queries as a user– Missing permissions -> an error

Demo

QUERYING THE OFFICE GRAPH USING CSOM

Demo

REAL-LIFE SCENARIOSUsing the Office Graph to build real-life solutions

Thank you for attending!

Wictor WilénWaldek Mastykarz