Salesforce Connector 26.1
Salesforce Connector Help

# Add a Field to a Document

The following script demonstrates how to add a field named “MyField” to a document, with a value of “MyValue”.

Copy

    1
    2
    3
    4
    function handler(config, document, params)
        document:addField("MyField", "MyValue");
        return true;
    end

Copyright 2025 Open Text
Version 26.1 | Last updated January 2026

Send documentation feedback

Close

Send documentation feedback

To send feedback using your default email client, open an email window.

Otherwise, send your feedback and the information below to MFI-swpdl.idoldocsfeedback@opentext.com.

We appreciate your feedback!

Product: Knowledge Discovery Salesforce Connector 26.1

Topic Title: Add a Field to a Document