cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
JodokSenften
Frequent Visitor

Send HTTP request to graph.

Hello

 

I'm trying to Invite Guest Users with Power Automate with the "Send an HTTP request (Preview)" connector. 

My Flow looks like this: 

JodokSenften_0-1649680570615.png

 

If I try this, i get an error code 400

 "message""URI path is not a valid Graph endpoint, path is neither absolute nor relative or resource is not one of the supported (me, users, groups, sites, search, planner, teams, chats): https://graph.microsoft.com/v1.0/invitations",
 
Is this just no supported, am i doing something wrong or is it a bug?
Because in the docs are no restrictions listed.
 
An if I try it with the Graph Explorer it works
JodokSenften_1-1649680935801.pngJodokSenften_2-1649680971001.png

 

Anyone may help or have some ideas? Thanks.

 

1 ACCEPTED SOLUTION

Accepted Solutions
Expiscornovus
Super User
Super User

Hi @JodokSenften,


As far as I am aware invitation is a resource type which is not supported by this specific Office 365 Groups action.

 

Like the error message suggests, only me, users, groups, sites, search, planner, teams & chats resources are supported.

 

As a workaround you could use the HTTP action (which is premium):

https://powerusers.microsoft.com/t5/Building-Flows/Automatically-invite-external-user-to-Azure-AD-an...

 

View solution in original post

6 REPLIES 6
Expiscornovus
Super User
Super User

Hi @JodokSenften,


As far as I am aware invitation is a resource type which is not supported by this specific Office 365 Groups action.

 

Like the error message suggests, only me, users, groups, sites, search, planner, teams & chats resources are supported.

 

As a workaround you could use the HTTP action (which is premium):

https://powerusers.microsoft.com/t5/Building-Flows/Automatically-invite-external-user-to-Azure-AD-an...

 

fchopo
Super User
Super User

Hi @JodokSenften 

Please, try to use HTTP connector (although it's premium).

Regards,

Ferran

Did I answer your question? Please consider to mark my post as a solution to help others.
Proud to be a Flownaut!

Hm, i guessed this would be the case 😞 
Then I'll have to use the premium http action. 

okeks
Super User
Super User

You could also try to ad a / at the end of the URL if you try to use the preview version.

 

I found that here: https://powerusers.microsoft.com/t5/Building-Flows/Power-Automate-O365-Groups-activities-Get-group-I...

Expiscornovus
Super User
Super User

Hi @okeks,

 

As far as I understood that workaround was to escape the ? character of the $filter query parameter. In this setup we are not using such a ?$filter in the URI path.

 

invitations_graphapi.png

Hi @okeks,

unfortunately it doesn't help - I've already tried 😉

--------------------------------------------------------------------------------------
Contact me if you are interested in custom Power Automate development.

Helpful resources

Announcements
 WHAT’S NEXT AT MICROSOFT IGNITE 2022

WHAT’S NEXT AT MICROSOFT IGNITE 2022

Explore the latest innovations, learn from product experts and partners, level up your skillset, and create connections from around the world.

Register for a Free Workshop.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

Users online (1,506)