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
Smart Services
Functions
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(
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.
Hi Akshayd0005, I am facing the same issue, if you got the solution for this, please post it here. thank you.
Why did the function findfoldersbyname get removed?