556 attributed reviews in the last 3 years
Refreshingly small course sizes
Outstandingly good courseware
Whizzy online classrooms
Wise Owls only (no freelancers)
Almost no cancellations
We have genuine integrity
We invoice after training
Review 30+ years of Wise Owl
View our top 100 clients
An introduction to calling Microsoft Graph within Power Automate
Part two of a four-part series of blogs
Microsoft Graph is the (strange and misleading) name for the gateway provided by Microsoft to get at all of the things stored in your 365 cloud (emails, files, users, groups, teams and much more). This tutorial explains what Graph is in more detail, and shows how you can call Graph from within Power Automate flows.
Microsoft have provided an excellent tool called Graph Explorer which lets you see what information you can retrieve using Graph:
The Graph Explorer home page.
Below is how to use this to see what data Graph will provide to you (and in what format), using the example of listing out the teams of which you are a member.
I believe that (rather meanly) you have be signed in to a 365 account to use this service (although if you haven't got a 365 account it's difficult to see why you'd want to learn about Microsoft Graph ...).
The first thing to do is to choose what you want to retrieve:
For our example (listing the teams that you're a member of) the category is obvious.
You can then choose the individual item:
Again, this is also self-evident for our example.
The next thing to do is to run this test query:
Click on this button to run your query.
You should then have a look to see what information you can usefully pull out of the JSON returned from this query:
This imaginary person belongs to (among others) the HR Taskforce team.
Finally, copy the URL used by Microsoft Graph to retrieve this data:
You'll need to use this URL in your flow in the next part of this blog.
The URLs required for accessing Graph are impressively simple - it's the authentication you'll need to provide which can be the stumbling block, although the next part of this blog shows a couple of ways to avoid this.
|Parts of this blog
Some other pages relevant to the above blogs include:
25 Aytoun Street