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