Content Tools

Overview

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.

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

Key Features & Functionality

Data Types

  • contentSecurityRoleMap: CDT that backs the returnContentRoleMap function

Smart Services

  • Copy Document (Change Extension)
  • Delete Document Version
  • Delete Folder Contents
  • Delete Files Older Than
  • Delete Files Created Before
  • Delete Multiple Documents
  • Remove Member From Folder Security
  • Inherit Security From Parent for Folder
  • Inherit Security from Parent for Document
  • Remove Member From KC Security
  • Delete Rule/Constant Versions
  • Set Folder Security
  • Create Document Version
  • Create expression rule
  • Update expression rule expression
  • Update expression rule parameters

Functions

  • getfoldersrequiringchangesapproval
  • getsubfoldersfromfolder
  • getdocumentsfromfolder
  • getdocumentinternalidsfromfolder
  • getfilesolderthandate: Get files older than a particular date
  • getfileslargerthansize: Get files larger than a particular size
  • finddocumentsbyname
  • getconstantorruleuuidbyname
  • findcontentbyattribute
  • getcontentdetailsbyuuid
  • getcontentdetailsbyinternalname
  • getcontentobjectdetailsbyid
  • 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. See https://forum.appian.com/suite/help/16.3/kb/kb-1226.html
  • getcontentobjectrevisionhistorydetails: Retrieves the revision history of a content object formatted as "[version id, date created, date updated, size, author]"
  • getconstantsfromfolder
  • getconstantsbyname
  • setfoldersearchability
  • getfoldersearchability
  • getdownloadersfromgroup
  • returncontentrolemap
  • getprocessmodeldetailsbyuuid
  • getrulereferencebyname
  • generateuuid
Anonymous
  • This plugin should not be used in conjunction with Custom Content Functions as it is a replacement for that plugin.

    If you are currently using Custom Content Functions, do not also deploy this plugin.

  • I'm a bit confused - does this Plug In replace the existing Custom Content Functions plug in ? If it does replace / supersede then I presume it would be advisable to remove the existing Custom Content Functions plug in before deploying this new one ?

  • Deploying the latest version of "Custom Content Functions" plugin fixed our issue in 19.1.

    Its confusing why both "Content Tools" and "Custom Content Functions" have a function with the same name getdocumentsfromfolder

    If any of you already have "Custom Content Functions" plugin deployed in your environment and face an error post upgrade to 19.1, please redeploy "Custom Content Functions" plugin to fix the error. Thats from my experience

    Best Wishes,

    Pavan

  • I faced an issue trying to deploy "Content Tools" plugin into our Appian cloud environment upgraded today to 19.1

    I see that the function getdocumentsfromfolder  was present in the Plugin "Custom Content Functions" (shown in Admin screen as Custom Expressions) and it looks like the issue we are facing (i.e getdocumentsfromfolder  shown as being unavailable ) must be due to this change. I shall try upgrading the "Custom Content Functions" to latest version to see if it helps and report

  • We are using this plugin and the function getdocumentsfromfolder is being indicated as not available after we upgraded to 19.1 earlier today. No change in the plugin itself was made. Kindly help asap!

    Luckily we only upgraded our Dev and Test and not Prod as we wanted to rule out any issues before we upgrade Prod. But we need this addressed asap so we can upgrade Prod. Your help is much appreciated!

    Pavan

  • I received a descriptor error when deploying installing this plug-in in both 18.3 and 19.1. Looks like it might be an case issue in the appian-plugin.xml file for getFilesLargerThanSize and getFilesOlderThanDate as the classes start with G not g