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

Start an Object Creator copy rule from a workflow

I have a working Object Creator copy rule that is activated manually from the task menu on the left-hand side.
whats the best way to activate this automatically?
The user creates a new object and then once done, will press the button to create the new object and then I link them within the rule.

I have a workflow for the new object. can I make a state in the workflow that will activate the object creator copy rule?

idea is that once the new Object is made, a multifile document is made and linked to the object for storing its documents.

Cheers

Pete

Parents
  • I haven't tested this myself but I have seen people calling Object Creator via a workflow script. The call would be something like this where you provide the source object and the Object Creator rule to the vault extension method:

    Dim strProjIds: strProjIds = "(" & iObjectType & "-" & iObjectID & "-" & iObjectVersion & ")"
    Call Vault.ExtensionMethodOperations.ExecuteVaultExtensionMethod("MFiles.ComplianceKit.MFEventHandlerVaultExtensionMethod","['ObjectCreator.Action','" & strProjIds & "','" & strRuleName & "']")

    Note: I'm not certain if this is an officially supported way to use Object Creator since it has been designed as a UI extension to help users with context-sensitive object creation and the vault extension method above is undocumented as far as I know. If it works then fine but keep in mind that there are no guarantees that it will continue working with future Compliance Kit releases.

Reply
  • I haven't tested this myself but I have seen people calling Object Creator via a workflow script. The call would be something like this where you provide the source object and the Object Creator rule to the vault extension method:

    Dim strProjIds: strProjIds = "(" & iObjectType & "-" & iObjectID & "-" & iObjectVersion & ")"
    Call Vault.ExtensionMethodOperations.ExecuteVaultExtensionMethod("MFiles.ComplianceKit.MFEventHandlerVaultExtensionMethod","['ObjectCreator.Action','" & strProjIds & "','" & strRuleName & "']")

    Note: I'm not certain if this is an officially supported way to use Object Creator since it has been designed as a UI extension to help users with context-sensitive object creation and the vault extension method above is undocumented as far as I know. If it works then fine but keep in mind that there are no guarantees that it will continue working with future Compliance Kit releases.

Children