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
mailNickname
:Office365Groups.HttpRequest()
function to make direct Graph API calls.Use "" in place of file. If you provide nothing in a pair of double quotes it runs perfectly.
Thanks!
Thanks, if i could i would mark you as right answer :D.
Now i know what was my mystake. I asumed that result is JSON like in powerautomate or graph explorer and thanks to you now i understand it is just normal table format powerapps uses but columns are not specified which type they are.
Once more thank you 🙂
Oh and this page is well worth keeping handy if you're going to be doing a lot of messing about with untyped objects
Untyped object data type - Power Platform | Microsoft Learn
So I had a quick look, didn't have much luck trying to get a specific group, I ended up with 'network error' in my variable? But if I got ALL the groups, it worked... For a quick and dirty test I used a button to pull the data:
Set(Var,Office365Groups.HttpRequest("https://graph.microsoft.com/v1.0/groups","GET",""))
Then set the Items field in a combobox to:
ForAll(Var.value, { FirstField: Value(ThisRecord.id), SecondField: Text(ThisRecord.onPremisesSamAccountName) })
which populated it with the groups, you can play with it how you like from here hopefully 🙂
The ParseJSON did not work for me either i believe this is a restriction with PowerApps and Untyped objects - I did look this up before but i cannot recall the reason why it does not work.
I had the same issue, I used the users endpoint but i set the field i wanted to use as a variable to use it text as shown in the screenshot
hope this helps
I m trying to get members from office365groups but i recieve this error and i can not force it into parseJSON since my result is not text type but object type and even forcing it by plaintext function does nothing.
what could be wrong?
good stuff 🙂
many, many thanks to "dotter" and "johnxt"!!! absolutly great 🙂
Now I can use the whole world of Graph-API, not only the GET-requests 🙂
With "dotters" idea and with "johnxt"'s simplification it was really simple to create a small component with a function and one string-parameter: Give the function the string, which should be encoded, the function-returnvalue is the BASE64-encoded string.
Then it's really easy to integrate the whole thing into PA, as you can see in the picture where I'm updating a listitem field called "Title" with a value that the user just entered:
WarrenBelz
110
Most Valuable Professional
MS.Ragavendar
75
Michael E. Gernaey
52
Super User 2025 Season 1