cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Justin-GOV
Regular Visitor

How do you use the Office365.Groups.HttpRequest(URI, Method, file)

I would like to query Graph from PowerApps by providing a Group DisplayName or mailNickName.

 

Currently this works in Graph Explorer - https://graph.microsoft.com/v1.0/groups?$filter=mailNickname eq '<nickname>' but I can't find any documentation to use the Office365.Groups.HttpRequest("https://graph.microsoft.com/v1.0/groups?$filter=mailNickname eq '<nickname>'", "GET", file) to make it work.

 

What am I supposed to use for 'file'?

 

Where do I find information about how to structure the formula in PowerApps? I am trying to use instructions from this docs.microsoft.com page: Office 365 Groups - Connectors | Microsoft Docs

5 REPLIES 5
v-xiaochen-msft
Community Support
Community Support

Hi @Justin-GOV ,

 

Unfortunately, this parameter (file) has not been introduced in the documentation.

I suggest you use Office365.Groups.HttpRequest action in flow.

 

Best Regards,

Wearsky

Thank you for your reply @v-xiaochen-msft. Do you have an example where Office365.Groups.HttpRequest works? It seems the 'file' parameter is required. I can't use the action because it's expecting 'file.'

 

Specifically, I get the error: 'Invalid number of arguments: received 2, expected 3-4.'

 

Thanks again,

Justin

v-xiaochen-msft
Community Support
Community Support

Hi @Justin-GOV ,

 

No. I don’t know what to fill in the parameter.  😞

 

Best Regards,

Wearsky

Hey,

I also took a look at this connector. The "file" property seems to be the request body. But unfortunately, there is no out of the box way to work with the result. Looking at the monitor results it clearly shows that the request is correct and also that there is a propper result. I have used: 

 

Set(varMe,Office365Groups.HttpRequest("https://graph.microsoft.com/v1.0/me","GET","",{ContentType:"application/json"}))

 

And varMe is set to "true".

 

Look at this excellent video to see how you could get a propper result which you could use in PowerApps.

Call MS Graph API Directly From Power Apps - YouTube

 

regards,

Lutz

 




​Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item.

If the content was useful in other ways, please consider giving it Thumbs Up.

Thanks to @PowerRanger  and the excellent video he provided , 

 

I was able to create a working example

 

https://powerusers.microsoft.com/t5/Building-Power-Apps/Office365Groups-HttpRequest-Formula/m-p/1929...

 

and also get more properties from the Get User Profile V2 for PowerApps - when using $select

 

https://github.com/MicrosoftDocs/BusinessApplicationPlatform-Connectors-public/issues/23#issuecommen...

 

 

Regards,

 

Helpful resources

Announcements
Power Apps News & Annoucements carousel

Power Apps News & Announcements

Keep up to date with current events and community announcements in the Power Apps community.

Community Call Conversations

Introducing the Community Calls Conversations

A great place where you can stay up to date with community calls and interact with the speakers.

Power Apps Community Blog Carousel

Power Apps Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Top Kudoed Authors
Users online (5,792)