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
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?
Hi, I'm trying to add and deploy this plugin, but I get this error: "HTTP Code: 500 APNX-1-4198-019 An Error Has Occurred Expression evaluation error [evaluation ID = e1688:2495d] : An error occurred while executing a save: java.util.UnknownFormatConversionException: Conversion = 'D'"
Any suggestions on how I can deploy and use the plugin functions?
Having the same issue described in this unsolved post - https://community.appian.com/discussions/f/user-interface/19110/error-document-does-not-exist-or-has-been-deleted-however-the-database-record-does-not-show-the-same
A document has suddenly 'disappeared' from our environment causing an error in the interface calling the document ID (taken from the DB) in the document() function:
Expression evaluation error at function 'document' [line 112]: Document Does Not Exist or has been Deleted (APNX-1-4198-000)
I can no longer find the document object anywhere in Appian Designer even after searching by it's UUID. However, the getcontentobjectdetailsbyid() function is still returning the following content. Note: deleted documents usually return 'No object with this ID has been found'.
Content Object [Name: 20220427_141126.jpg, UUID: _a-0000e849-afa9-8000-9be1-011c48011c48_4780488, Parent: Temporary Documents Knowledge Center, Parent Id: 7, Type: Document, Created by: G01386130, Created on: 2022-06-29 16:16:16.0, Last updated by: G01386130, Last updated on: 2022-06-29 16:16:17.0, Latest version: 1, State: Invactive Published, Internal file name: N/A]
The odd thing is the document can't be located in our environment, having seemingly been deleted but the function is returning content with the state 'Inactive Published' and in the 'Temporary Documents KC' which is not where the document was originally saved to.
Any suggestions/advice on what happened to this document and how/why it was made inactive?