Read our blogs, tips and tutorials
Try our exercises or test your skills
Watch our tutorial videos or shorts
Take a self-paced course
Read our recent newsletters
License our courseware
Book expert consultancy
Buy our publications
Get help in using our site
555 attributed reviews in the last 3 years
Refreshingly small course sizes
Outstandingly good courseware
Whizzy online classrooms
Wise Owl trainers 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
Search our website
We also send out useful tips in a monthly email newsletter ...
An introduction to calling Microsoft Graph within Power Automate Part three 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.
|
To get things from Graph you have a number of choices - here are 3 of them:
Action | Notes |
---|---|
These let you get information from specific parts of 365, and are free to use. | |
This uses Entra (previously called ActiveDirectory) as a paid service to get information from any parts of your 365 setup. | |
This paid connector lets you link to any Graph service, but requires you to set up authentication first. |
If you already know how to set up authentication I suspect you won't be reading this blog, so I'm going to focus on the first two options below.
Let's suppose that you want to see details of all of your emails. Because there's a dedicated HTTP request for this, you could use it:
Use this action to request data from Outlook using Graph.
Use Graph Explorer to find which URL to use:
I'll use this URL.
Paste this into a new flow action:
This is the URL for listing your emails.
You can now see your emails:
See the next and final part of this blog for how to turn this output into an array so that you can retrieve information from it.
For a more generally applicable solution, use a pre-authorised Entra ID request:
As the caption shows, this is a premium service.
When you choose this service you'll be asked either to create a premium account or to sign up for a 90-day trial (I opted for the latter!). As mentioned above the mysteriously named Entra is just the old ActiveDirectory by a new name.
As described in the previous part of this blog, get the URL for listing the teams you're part of using Graph Explorer:
This is the one you want - paste it in as the Url of the request parameter for your HTTP request action.
You should now have this action, which you can run:
This is the URL you want to visit.
Once again, see the final part of this blog for how to turn the JSON object returned into an array so that you can list out (here) the teams you're a member of:
The raw outputs show the teams you're a member of in (naturally) JSON format.
Time now for the final part of this blog!
Parts of this blog |
---|
|
Some other pages relevant to the above blogs include:
Kingsmoor House
Railway Street
GLOSSOP
SK13 2AA
Landmark Offices
99 Bishopsgate
LONDON
EC2M 3XD
Holiday Inn
25 Aytoun Street
MANCHESTER
M1 3AE
© Wise Owl Business Solutions Ltd 2024. All Rights Reserved.