Content Tools

These functions extend Appian content and offer document/folder search, directory listing, and the ability to get/set the searchable attribute of a folder.

Functions are designed for and only work on Appian content, not the local filesystem. All search functions assume the root folder and all subfolders are searchable. Search functions will not return results contained within non-searchable objects.

Useful to identify rules/constants with large number of versions when investigating high memory usage in the Collaboration engine. See https://community.appian.com/support/w/kb/441/kb-1226-content-collaboration-engine-consumes-high-memory for more information.

All functions use the serviceContext of the user account executing the expression at runtime.

Data Types

  • contentSecurityRoleMap: CDT that backs the returnContentRoleMap function

Smart Services

  • Approve Pending Documents and Folders
  • Delete Document Version
  • Delete Folder Contents
  • Delete Files Older Than
  • Delete Files Created Before
  • Remove Member From Folder Security
  • Inherit Security From Parent for Folder
  • Inherit Security from Parent for Document
  • Remove Approval Required
  • Remove Member From KC Security
  • Unexpire Documents

Functions

  • getfoldersrequiringchangesapproval
  • getsubfoldersfromfolder
    • Returns a list of all folders which are children of the specified rootFolder (optionally recursive)
  • getdocumentsfromfolder
    • Returns a list of all documents which are children of the specified rootFolder (optionally recursive). Can search by name, size, type, created, modified; ascending or descending. Two optional arguments “sort by” (name, updated, created, size, type, creator, version), and “isAscending” (defaults to true).
  • getdocumentinternalidsfromfolder
  • getfilesolderthandate
    • Get files older than a particular date
  • getfileslargerthansize
  • Get files larger than a particular size
    • Gets files in a specified Knowledge Center that are larger than the specified size (in bytes)
  • finddocumentsbyname
    • Searches from a root folder and returns a list of all documents matching the specified documentName (root folder can be a targeted folder or KC, or alternatively, can search the global collaboration hierarchy)
  • getconstantorruleuuidbyname
    • Returns the UUID of a rule or constant. Useful when you've deleted a rule and constant and want to get the original UUID.
  • findcontentbyattribute
    • Allows for searching for content (folders, documents) by attribute - valid values are "name", "author", "description" (Document only), "extension" (Document only)
  • getcontentdetailsbyuuid
    • You can now know if this UUID belongs to a deleted rule or constant in the target environment that is still cached.
  • getcontentdetailsbyinternalname
    • Retrieves information about a document given its internal file name.
  • getcontentobjectdetailsbyid
    • Retrieves information of any content object regardless of its type given its local ID. It shows the content object's parent ID to be able to find it easily using intuitive URLs.
  • getcontentobjectswithnumofversions
    • Function to find rules or constants with a given number of versions. Useful to find out objects that can increase memory usage in the collaboration engine
  • getcontentobjectrevisionhistorydetails
    • Retrieves the revision history of a content object formatted as "[version id, date created, date updated, size, author]"
  • getconstantsfromfolder
    • Returns constants from a folder
  • getconstantsbyname
  • setfoldersearchability
    • Sets a specified folder's visibility flag to enable/disable searching. Additionally updates all child documents and provides an option to recursively set all child folders/documents.
  • getfoldersearchability
    • Returns whether the specified folder is searchable or not
  • getdownloadersfromgroup
  • returncontentrolemap
    • Returns the security rolemap for a given content object
  • getprocessmodeldetailsbyuuid
    • Retrieves information about a process model given its UUID or ID. Helpful when an import is failing due to a missing content object or process model. It returns the whole path of the location of the model to make it easier to find it.
  • getPendingDocumentsAndFolders
    • reveal if a knowledge center contains documents or folders in this state

 

NOTE: This plug-in should NOT be used in conjunction with Custom Content Functions as they are not compatible.

Anonymous