The M-Files Community will be updated on Tuesday, April 2, 2024 at 10:00 AM EST / 2:00 PM GMT and the update is expected to last for several hours. The site will be unavailable during this time.

This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Object Creator & Copy Rules with Original Document History

Hi everyone,

I’ve a case where I need to copy the document created by user from one workflow (A) to another workflow (B) but with regard the document history not just copy the files and the properties. the user in workflow (B) wants to view the history of the original document that been in workflow (A), is there anyway to do that, or if possible copy the document history?

I’m using Copy Rules under Compliance Kit inside Configurations tab. Sample configuration is below:

[
    {
        "Key": "CopyDoc",
        "Command": {
            "Title": "Copy Document",
            "IconType": "Compliance",
            "ComplianceIcon": "audit"
        },
        "Source": {
            "ObjTypes": [
                "{53F0C8FD-0BF0-47C4-8FA6-4C2D0DADB650}"
            ],
            "Classes": [
                "CL.SourceClass"
            ],
            "Workflows": [
                "WF.SourceWorkflow"
            ],
            "States": [
                "WFS.SourceWorkflow.AwaitingApproval"
            ]
        },
        "AfterCreateShowObject": "%.%",
        "Create": {
            "ObjType": "{53F0C8FD-0BF0-47C4-8FA6-4C2D0DADB650}",
            "Class": "CL.DestinationClass",
            "Workflow": "WF.DestinationWorkflow",
            "State": "WFS.DestinationWorkflow.Draft",
            "DefaultPropertyActionIsCopy": true,
            "CopyProperties": [
                "{6DCCD5FA-0DBD-4C68-BBA5-2B219020B218}"
            ]
        },
        "Interactive": false,
        "FileCopy": []
    }
]

Looking forward,