Forum Discussion
Using PowerShell to talk to the Office 365 Service Communications API
Hello Anne,
I'm using powershell to contact the service communication API's (connecting via the azure app)
Now i am able to get data from the API's but i want to set a filter that returns only data from a specific time. Do you have an idea how this filter should be built?
Get Messages
Description:
Returns the messages about the service over a certain time range. Use the type filter to filter for "Service Incident", "Planned Maintenance", or "Message Center" messages.
Path | /Messages | ||
Filters | StartTime |
| |
I'm trying to create this uri with above filter:
"https://manage.office.com/api/v1.0/$tenant/ServiceComms/Messages?$filter=StartTime ge 'CurrentTime - 2 days'"
Source:
https://msdn.microsoft.com/en-us/office-365/office-365-service-communications-api-reference
Thanks in advance!
Brian
Brian Teerlynckdid you ever figure out how to get this type of filter to work? or how to get just the messages from the Message Center?