cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Cloned records and change logs

Cloned records and change logs

When a record is cloned, the change log on the new item does not display what record it was cloned from. it just states the record was created. this log should list what item it was cloned from.  

3 Comments
sven.dickmans
Autodesk

You can achieve this by configuration & scripting already with the few steps mentioned below. With this configuration, users will not only find this information in the Change Log, but also have a direct link in the details page to the clone's source:

 

cloned from.jpg

 

If this is an option, here are the configuration steps required. In my example, I added this field to workspace Products but you can do the same with any workspace.

 

  1. In the given workspace, add a hidden field to store the current item's DMSID

    Screenshot 2025-01-16 at 10.41.59.png

  2. Add another read-only field which links the clone to its source. This must be of type pick list for the same workspace.

    Screenshot 2025-01-16 at 10.42.28.png

  3. Place these two new fields anywhere in your details page
  4. During creation of new records, run the following script code to set and use the DMSID field to identify clones and to set the clone's reference  automatically. This script code an be included in an onCreate script or in the initial workflow transition's script. 

    setClonedFrom();
    
    function setClonedFrom() {
        
        if(item.DMS_ID !== null) {
            var elem = loadItem(item.DMS_ID);
            item.CLONED_FROM = elem;
        }
        
        item.DMS_ID = dmsID;
        
    }​


 

richard.valdez
Collaborator

I'd rather not create extra fields and scripts just to find this information. this is another "Work Around" 

richard.valdez
Collaborator

these types of work arounds just cause more issues. more fields, scripts, and links cause too many issues. why couldn't the system just log how an item is created? (Cloned from Item XXX) 

Can't find what you're looking for? Ask the community or share your knowledge.

Submit Idea