Getting latest file using documentum_id

sudh_ysk
edited January 3, 2023 in Documentum #1

I have a use case where the user is modifying the same file in each iteration keeping the version field in Documentum same. Initially, the file was created and checked into webtop server with version 1.0. Later on, the user makes some changes to the original file and uploads the file with new changes with the same version 1.0. The version is the same on webtop, but the original file is getting updated.

Using DQL how do we get the latest file? This is the code I have -

IDfId sysObjId = idfSession.getIdByQualification("nexus_doc where r_object_id='" + documentumId

+ "'AND (\"final_flag\" = TRUE)");


if (sysObjId != null) {

document = (IDfDocument) idfSession.getObject(sysObjId);

SimpleDateFormat sdformat = new SimpleDateFormat("yyyy-MM-dd");


But I always get the original copy of the file and not the latest version with the changes.

Appreciate any inputs.

Tagged:

Comments