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
  • The delete type should have a dropdown on it when you select it with the following options:

    <enumeration key="delete-type" type="1">
    <items>
    <item>
    <label>Delete All Recursively</label>
    <value>1</value>
    </item>
    <item>
    <label>Delete Documents Recursively</label>
    <value>2</value>
    </item>
    <item>
    <label>Delete Root Documents Only</label>
    <value>3</value>
    </item>
    </items>
    </enumeration>
  • - we've contacted the authors internally to ask them to review and fix!

  • - just checking in to see whether either of you have any insight into whether this plugin is being monitored / maintained by anyone.  The current version still has the bug I quoted above, and there seems to be no activity here.  This is now actively preventing me from accomplishing some funcitonality needed for document cleanup in our filesystem.

  • Hi 

    Can anyone please help me with what need to pass in input parameter while configuring the input data for Delete Folder Contents smart service.

    Folder : I will pass using folder type constant.
    Delete Type  - What should I need to pass ?

    As both these fields are mandatory for the execution.

  • you will want to use "findContentByAttribute" instead, which provides the same functionality and is slightly more powerful.

  • Is there currently any plan to fix the bug that occurs when trying to use the "size" input for the "sortBy" parameter in "getDocumentsFromFolder()"?

    For reference, I just updated to the latest version of the plug-in, and it still returns this error:

    Expression evaluation error at function 'getdocumentsfromfolder': rank

  • Asked help to Appian support for this issue and this is what I got back.

    ConstantProperties causes an issue if it's also installed together with the Content Tools, so either install Content Tools or ConstantProperties, but don't install them together.

  • Hi, when installing this plugin I get the following error similar to what @andrescamiloh0001 was experiencing.

  • smart service 'Remove Approval required' removed from this plugin ? what is the new alternative ?

  • Hello,

    We have found something strange with getdocumentsfromfolder

    The following code should return an empty list but it is not the case:

    a!localVariables(

      local!toto:getdocumentsfromfolder(

        rootFolder: cons!MYFOLDER,

        recursiveSearch: false

      ),

      local!toto2:getdocumentsfromfolder(

        rootFolder: cons!MYFOLDER,

        recursiveSearch: false,

        sortBy: "updated",

        sortAsc: false

      ),

      difference(local!toto, local!toto2)

    )

    If we add any other sort into the first call (for example sortBy: "name" that is the default) it works fine. 

    Other difference, without sortBy, the id is the version number, with the sort by it is the document number.