Forum Discussion
Brent Ellis
Jun 26, 2017Silver Contributor
SPO graph API is deprecated?
We've been using a few simple web service calls like this for years: https://mytenant.sharepoint.com/_api/search/query?querytext=%27(*)+AND+(FileExtension:doc+OR+FileExtension:docx+OR+FileExtensi...
Anonymous
Jun 26, 2017Is this not due to new graph api microsoft graph instead of office graph
- Brent EllisJun 26, 2017Silver ContributorYes, problem is I dont have developer resources to do this. This is just a simple script in SharePoint Online page, what I am seeing is that I now is I am unable to do these simple things directly from SharePoint Online page?
Graph can't be called from SPO?- Luis MañezJun 27, 2017MVPMS Graph can be called from SPO page, but as you say, it has some Authorization implications.
When working with the new spfx framework, and since some weeks ago, there's a HttpGraphClient to call MS Graph inside an spfx webpart without dealing with Auth.
With classic pages, is a bit more complicated, but you can use the same service that is using the HttpGraphClient to get a token, and then call the MS Graph API, as it's described in this article: http://www.vrdmn.com/2017/06/access-microsoft-graph-from-classic.html
However, all of this is still in Preview, so it's only available in Tenants with the Preview feature enable. Also, I'm not sure if all the current Office Graph queries are available with MS Graph API...