Does anyone know how to get the information about when a particular collection was last updated?
${response.resultPacket.details.collectionUpdated?datetime} will give me the last updated date of the current collection that I am searching but I want to be able to specify a different collection to the one that I am looking at.
I also tried looking through the API but I couldn’t find a call for it?
This information can be found in the Admin API in the “Update History” section. The endpoint is:
GET https://{funnelback-server}/admin-api/collection-info/v1/{collection}/update-history/
The response will contain the timestamps (in seconds) of the collection updates. It would be best to try out this API using the Admin Interface to understand the request and response format, and then integrate it with your processes.
How do you get the “finished at” date and time rather than the “started at” date and time which is what is returned in that GET?
Also I would like to ONLY get an updated date and time on a successful completion. i.e. if there is an error at any of the stages then the update date and time should not change from the last successful update.
To get the “finished at” date, you can use the next API listed in the API User Interface under the collection update history endpoint mentioned earlier.
To get to the API User Interface, you can click “View API UI” under the System menu in the Funnelback Administration dashboard.