web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / MS Graph API in Power ...
Power Apps
Answered

MS Graph API in Power App error - Search/Query

(1) ShareShare
ReportReport
Posted on by 8
Hi everyone,
 
I am to run this search query in the Graph Explorer, and it worked: https://graph.microsoft.com/v1.0/search/query
 
However, when I try to run this in Power App using this formula: Set(searchResults,Office365Groups.HttpRequest("https://graph.microsoft.com/v1.0/search/query","POST",varFile))
 
It appears to have this error: Office365Groups.HttpRequestV2 failed: Contract failure: invalid data uri format.
 
Please advise me on what to do, thank you so much!
Categories:
I have the same question (0)
  • Verified answer
    Pstork1 Profile Picture
    68,717 Most Valuable Professional on at
    The OfficeGroups connector doesn't support the Search Object in MS Graph.  It only supports the /groups/ resource.  You'll need to use Power Automate and the regular HTTP connector to run that MS Graph query.  See description here: Office 365 Groups - Connectors | Microsoft Learn

    ----------------------------------------------------------------------------------
    If this Post helped you, please click "Does this answer your question" and give it a like to help others in the community find the answer too!

    Paul Papanek Stork, MVP
    Blog: https://www.dontpapanic.com/blog
     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 765 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 272

Last 30 days Overall leaderboard