Skip to main content
October 31, 2022
Question

List All Folders in an Application

  • October 31, 2022
  • 4 replies
  • 0 views

Hi Team,

I am looking for a plug-in or Public Appian API or function to list all Folders in an Application including rule, process model, KC, document folders.

I tried with below function which returned only the folders inside KC of an application when given searchCriteria with APP_PREFIX&*.

Please do the needful

findcontentbyattribute(
searchAllContent: false(),
contentType: "folder",
attributeName: "name",
searchCriteria: "<APP_PREFIX>*"
)

Thanks,

Bharathwaj RK

4 replies

stefanhelzle0001
Brainy
October 31, 2022

While I have no answer to your question, I am interested in your use case. I observe similar questions becomes more, and I would like to understand the reason.

October 31, 2022

We are working on Clean up application, which will help us to clean the old documents, process instances, process model's, rule's, constant's, interface's old versions.

For this it would be easy if we get all the folders in an application, we can automatically set things up for cleanup, otherwise a manual task is required to set those folders.

Thanks,

Bharathwaj RK

csteward
October 31, 2022

An Appian "Application" is essentially a container and really does not have any bearing on how the objects are actually stored within the system, which makes it difficult to locate the objects programmatically this way.

Are these folders created by developers, or systematically by processes?  I assume then you are not able to track these by one master parent folder, etc?

Are you running into space issues or is this simply an exercise in organization?  Mostly just curious there as I have not found any reason in 13 years of Appian to remove things such as old interface versions.

November 10, 2022

Try setting "searchAllContent" to true or specify the "rootKC" or "rootFolder" attributes if searchAllContent is false