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
  • Hi, 

    Getting the following error on the Interface using the function getcontentdetailsbyuuid(). We are  using the function to get the Id and name of the document from the document UUID.

    Expression evaluation error at function 'getcontentdetailsbyuuid' [line 190]: The user does not have sufficient privileges to perform the requested action. (APNX-1-4198-000)

    Looks like a security issue. Please provide what access should the user have for this.

    Regards,

    Vikrant Bhardwaj.

  • Has anyone encountered the following error when using getcontentobjectrevisionhistorydetails?

    Appian Designer:

    Error retrieving the revision history of the object: 

    Appian Logs:

    2023-05-29 23:36:08,237 [Appian AppianServerThreadPoolProvider 246495] ERROR com.appiancorp.ps.plugins.contenttools.functions.RulesAndConstantsRevisionHistory - Error retrieving the revision history of the object: _a-0000e81b-a5b2-8000-33e8-01ef9001ef90_95136
    java.lang.ClassCastException: java.lang.Long cannot be cast to java.lang.String

  • Hi,

    for Copy Document smart service, for error, I cancel the destination folder and, when I use the smart service, system create a document, but this it isn't available. I set Output Variables Error Occured and Error Txt, but no error has been declared.

    Is it possible to integrate it?

    Thanks.

    Juri Monti

  • Hi,
    We are having problems with basic users accessing "getprocessmodeldetailsbyuuid". Does the user need developer/admin privileges to access its functionality?
    The user has viewer access to the process in question.

  • Hi,

    Function getprocessmodeldetailsbyuuid() use to return a property "Last Modified By" but it is no longer returning for a given process model UUID. What all are the properties that this function returns ?

    Also the documentation doesn't have definitions for all the Functions.

    Thanks,

    Ramesh

  • Any updates on the fix for the function

  • 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.