Change the Document Name¶
Legacy (Process Designer)
This page describes a script for the Modify Your Metadata activity of Process Designer. It was replaced by the Custom Step in Workflow. The script may not run as a Custom Step without changes. For new work, use the Custom Step reference.
KnowledgeLake has added properties to the Modify Your Metadata step to allow the custom naming of documents that can show up in the Monitor and in the Index App.
The DocumentName field in the General section of a document's metadata will be what is displayed as the document name in Monitor and Index. To change this, use the SetDocumentMetadata method in the same manner as our other examples to set DocumentName for any doc using metadata or additional Javascript.
For example, if I wanted the same naming convention as above in the batch section, but for each document to have its own Vendor and Invoice Number, I would use: