Exporting file attachments

This example shows how an IBM OpenPages® with Watson™ administrator can export file attachments.

Procedure

  1. Log on to the application server.
  2. Edit the ObjectManager.properties file. Configure all properties to be false except for the following property:
    configuration.manager.dump.non.form.based.resources=true

    If you want to limit the export to a specific system folder and its subfolders, set the configuration.manager.dump.resources.root.folder property.

    For example:
    configuration.manager.dump.resources.root.folder=/_op_sox_documents/Files and Forms/Company ABC/SubEntity Folder
  3. Save the file.
  4. Open a command prompt or a shell.
  5. Go to the OP_HOME/bin directory where OP_HOME represents the installation location of the OpenPages with Watson application.
  6. Run the following command:
    ObjectManager.cmd|sh d c <user> <password> <file_location> <file_name_prefix>
    For example, the following syntax creates a file called ExportedFile-op-file-content.zip in the C:\TMP directory.
    ObjectManager d c OpenPagesAdministrator password C:\TMP ExportedFile