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?
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:
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:
Please check and see if the following article would help in your scenario:
@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
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.Office365Se...' 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
How about this:
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!
Flow Community Manager
Look out for new contribution recognition badges coming SOON!
Join us for the first ever Power Platform Online Conference!
We've updated and improved the layout and uploading format of the Power Automate Cookbook!
Fill out a quick form to claim your user group badge now!
Learn how to build the business apps that you need.
Find out where you can attend!
Watch & learn from the Power Automate Community Video Gallery!