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
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
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
Thanks to @PowerRanger and the excellent video he provided ,
I was able to create a working example
and also get more properties from the Get User Profile V2 for PowerApps - when using $select
Regards,
User | Count |
---|---|
256 | |
106 | |
85 | |
51 | |
43 |