I did the following:
var draftRec = PresideObjectService.selectData(
objectname=args.objectName,
fromVersionTable=true,
allowDraftVersions=true,
filter= { "id":record.id })
dump(draftRec);abort;
What I get is the latest drafts version of the record. Which is fine, because it is what I wanted to get. But nevertheless i wonder about the result. I have two drafts in my versions table for this record, and what I expected were these two records instead of the one marked as is_latest_draft.
How would I get all drafts instead only the latest draft? All versions I get with getRecordVersions
right?
scratching my head