Forum Discussion
rohanw24
Jan 29, 2021Brass Contributor
Project Online ReST API get recently updated projects
Hello Everyone,
I want to filter a list of projects that are recently updated. Which project related property is useful in this? LastPublishedDate or LastSavedDate or any other property / criteria?
Thanks & Regards,
Rohan
Hello rohanw24, for the data in the following to APIs, the projects will need to be published to get updated:
- https://{pwaUrl}/_api/ProjectServer/Projects()?$Select=Id,Name,LastPublishedDate,LastSavedDate
- https://{pwaUrl}/_api/ProjectData/Projects()?$Select=ProjectId,ProjectName,ProjectLastPublishedDate,ProjectModifiedDate
You will find that the Saved / Modified dates match the published dates on these APIs apart from when a project summary publish happens. A project summary publish happens when you click Save from normal PDPs (not the Schedule PDP tasks ribbon). In that scenario you will find the modified / saved dates are later than the Published dates.
Paul