Project Online - How to filter projects in powershell?

Brass Contributor

Hello Everyone,

 

I want to filter projects on LastPublishedDate in power shell. How to include $filter query string in the endpoint.

For example,

 

https://example.sharepoint.com/sites/pwa/_api/ProjectServer/Projects?$filter=LastPublishedDate -ge datetime'28-01-2021'

 

When I open my URL with same format in browser it works fine. But when I include it in the power shell, all projects are returned.

 

I'm using these samples:

 

https://github.com/OfficeDev/Project-Samples/tree/master/O365-Project-Online-REST-Samples

 

Does anyone knows the correct way to include $filter query string in power shell script?

 

Thanks & Regards,

Rohan

 

1 Reply
Issue has been resolved. Escaped $filter with back-tick `$filter.