I have enabled version history for my list with approval need, and am doing some API calls to get the last n versions of that item through:
, so far so good, but when a user change something and moderationstatus (i.e. OData__x005f_ModerationStatus) changes to Pending (i.e. 2), if I call the api to get the version history during the time that it is in the pending mode (i.e. prior to approval) I see that the value of IsCurrentVersion is True for the last two items (i.e. the item with the pending status and the item before it). I appreciate if someone can explain the logic please. Should not IsCurrentVersion should be true for the last version only whether it is approved or not?
Another related question: Why can I see a version with status of pending in the list of versions of that item? Is it because I have enabled draft versioning?