OCLOperators changePoints
Created by Hans.karlsen on 2022-10-26 · Last edited by Vale.buyondo on 2025-12-11.
See: Versioned_on_class
changePoints is used when Versioning is enabled on the class.
It retrieves the historical versions of an object based on a timestamp range.
MDriven records a âchange pointâ every time a versioned object is modified.ThechangePoints(start, stop) operator returns all stored versions between the timestamps
Syntax
self.changePoints(startTime, stopTime)
- startTime â integer timestamp (UTC ticks) where the search begins
- stopTime â integer timestamp where the search ends
- Use -1 for
stopTimeto mean âuntil the end of recorded historyâ
Example
Customer.allInstances->first.changePoints(0, -1)
This returns every recorded version of the first Customer from the beginning of time to the latest version.
