Skip to content

Modify Your Metadata - Built-In Functions

Legacy (Process Designer)

This page describes the objects of the Modify Your Metadata activity of Process Designer. It was replaced by the Custom Step in Workflow, whose builder methods have different signatures. For new work, use the Custom Step reference.


These are the Knowledgelake objects available to you when writing a script for the Modify Your Metadata activity:

builder - Used to perform specific functions

  • Functions
  • ConvertTableArrayToTableField(string[][] tableArray))
    • Returns a JSON string from a table string array.
  • ConvertTableFieldToTableArray(string tableFieldValue)
    • Returns a string array representing table values.
  • SetBatchMetadata(string bucket, string key, string value)
    • Sets the value for a batch metadata field.
  • SetBatchName(string batchName)
    • Sets the name of the batch.
  • SetDocumentMetadata(string bucket, string key, string value)
    • Sets the value for a document metadata field.
  • SetPageMetadata(string bucket, string key, string value)
    • Sets the value for a page metadata field.

batch - Used to access the batch elements

  • Properties
  • BatchId: string
  • BatchName: string
  • Documents: array
    • DocumentId : string
    • Metadata: array
    • ex: batch.Documents[0].Metadata["Metadata Bucket"]["Metadata Key"]
  • Metadata: array
    • ex: batch.Metadata["Metadata Bucket"]["Metadata Key"]