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
I've just spent a few hours debugging an apparent issue with findDocumentsByName only to realize that it's basically breaking when attempting to search a string where there's a space, a dash, then a space, and either leading or trailing letters. For example, " - " finds dozens of documents in my system, but " - AT" fails to find anything, even though there are many documents that match this string.
This is actively breaking my use case as I'm trying to systematically find a document where the document name matches the pattern i.e. "[class name] - FINAL Grade". And it's returning zero results even when I try searching the exact string of a known-good document name.
You are right that it doesn't seem to return anything. One thing you can try for the time being is to use an * (wildcard) instead of space.
So search for "[class name]*-*FINAL Grade"
Michael Chirlin - fyi the findContentByAttribute function doesn't seem to suffer the same issue (when using wildcards at least) - i'm successfully able to search i.e. '* - Final*' and returning an appropriate result. Thanks for the suggestion about using wildcards, it hadn't occurred to me that this might be an option at all.