Scripting samples

ScriptDescription

Script - Basic samples 

  • Updates the repository statistics.
  • Creates folders and sets property group.
  • Shows the number of documents, folders and size from a given path.
  • Gets path by UUID.
  • Shows all documents used in every running workflow.

Script - Compact documents with size equals to 0  

Finds all documents with size=0 and compact history of versions to latest.

Script - Convert TIF to PDF 

Transform all the TIF files in the repository to PDF.

Script - Count all children subfolder  

Counts all children folders - and sub folders to, recursion - into first level folder ( okm:root children folders ).

Script - Exporter 

The repository exports execution.

Script - Export repository folder to server as a ZIP file 

Exports the folder contents to the server application as a ZIP file.

Script - Folders deep 

Finds the folders with some deep.

Script - Import data from CSV file 

Imports metadata group values from csv file.

Script - Purge all folders into some parent  

Purges all folders into some parent, without previously moving files to trash.

Script - Purge all users trashes

Example of how to clean all users trashes.

Script - Read PDF form fields 

How to read PDF form fields.

Script - Recursive character renaming

Renames a character in all folders or documents from some initial path.

Script - Recursive repository traversal  

Navigates across all repository nodes recursivelly.

Script - Recursive change security 

Change the security.

Script - Security change at low level 

Changes the security at database level.

 

Table of contents [ Hide Show ]