The previousRecordId() method is a method of the RecordEnumeration interface. It returns the record Id of the previous record in a given enumeration set. The previous record is specified by the comparator or filter supplied in the constructor of this enumerator. When this method is called, the enumeration moves to the previous available record.
The general syntax of this method is as follows: