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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Enter a valid uri erro...
Power Automate
Unanswered

Enter a valid uri error when trying to get data from Office Message Center

(0) ShareShare
ReportReport
Posted on by 242

When I try to get a Message from the message center using an HTTP Get with the following uri "https://manage.office.com/api/v1.0/tenant-id/ServiceComms/Messages?$filter=MessageType eq 'Message Center'"

I get an error message to "Enter a valid URI". 

Can anyone tell me what I'm doing wrong?

Categories:
  • v-xida-msft Profile Picture
    Microsoft Employee on at

    Hi @DLGross,

     

    Could you please share a screenshot of your flow's configuration?

     

    The error message told that there is something wrong with the uri that you provided. The $filter query option is not supported in Get Messages function of Office 365 Service Communications API.

     

    Please modify your URL within your HTTP action as below:

    https://manage.office.com/api/v1.0/tenant-id/ServiceComms/Messages?MessageType='Message Center'

    Then try your flow again to check if the issue is solved on your side.

     

    More details about the Get Message function of the Office 365 Service Communications API, please check the following article:

    Get Message function

     

    Please check and see if the following article would help in your scenario:

    https://msdn.microsoft.com/office-365/get-started-with-office-365-management-apis

     

    Best regards,

    Kris

     

     

  • Dean Gross Profile Picture
    242 on at

    @v-xida-msftthanks for the suggestion, but removing the $filter does not eliminate the error. I was already using those same articles that you provided links to but I'm not seeing anything that states $filter is not supported. Below is the revised flow

    Picture1.png

     

     

  • Dean Gross Profile Picture
    242 on at

    I have run some more tests and this uri runs, https://manage.office.com/api/v1.0/tenant-id/ServiceComms/Messages?MessageType=MessageCenter but the results are not filtered by the Message Type. I am getting all of the messages, (Incidents, and MessageCenter. 

     

    Per the recommendations of @Paul Shaflein, https://www.schaeflein.net/filter-using-enum-values-in-odata-v4/ I have tried  https://manage.office.com/api/v1.0/tenant-id/ServiceComms/Messages?MessageType=Microsoft.Office365ServiceComms.ExposedContracts.MessageType'MessageCenter' and I get the same results, i.e, the filter does not remove the Incidents. 

     

    I have also tried to filter using the Workload and that does not remove any messages. There appears to be a bug in either how Flow works with the O365 Service api, or with that API

  • sgreenlee11 Profile Picture
    4 on at

    Hi Dean,

     

    How about this:

     

    https://manage.office.com/api/v1.0/tenant-id/ServiceComms/Messages?$filter=MessageType eq Microsoft.Office365ServiceComms.ExposedContracts.MessageType'MessageCenter'
     
    I am seeing the filtering work properly both hitting the API directly, and using a custom connector in Flow.
     
    Thanks,
     
    Sean
  • GabrielStJohn Profile Picture
    Microsoft Employee on at

    Hello,  @DLGross!

    Have you had an opportunity to apply @sgreenlee11‘s recommendation to adapt your Flow? If yes, and you find that solution to be satisfactory, please go ahead and click “Accept as Solution” so that this thread will be marked for other users to easily identify!


    Thank you for being an active member of the Flow Community!

    -Gabriel
    Flow Community Manager

  • Khaledta Profile Picture
    79 on at

    Alternative solution, you could do:

     

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 227 Super User 2026 Season 2

#2
11manish Profile Picture

11manish 221 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 132

Last 30 days Overall leaderboard