Is there a way to find out if something has been changed in the project since the date X via API?
Author: danilmk
Publication Date: 3/12/2024 15:14
Hello,
I'm wondering if there is a way to find out if something has been changed in the project since the date X via API?
-
Author: ChKo - 3/13/2024 14:52
Hi,
the simple solution would be to start a query with the QueryAgent that could look like this:
fs.changeDate > 20240313000000 //format yyyyMMddHHmmss
Note: The search index must be correct for this. There could also be a race condition if the indexing of the internal FS search has not yet been completed when changes are made.
"changeDate" is also not part of the official API (see https://docs.e-spirit.com/odfs/access/de/espirit/firstspirit/agency/QueryAgent.html )The alternative would be to use Project.getRevisions (see https://docs.e-spirit.com/odfs/access/de/espirit/firstspirit/access/project/Project.html#getRevisions(de.espirit.firstspirit.storage.Revision,de.espirit.firstspirit.storage.Revision,int,de.espirit.common.util.Filter ) to collect the objects.
Greetings,
Christopher0
Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.
Kommentare
1 Kommentar