> For the complete documentation index, see [llms.txt](https://community-test.logicnets.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://community-test.logicnets.com/release-9/platform-documentation/process-node-parts/get-filesfolders-in-order.md).

# Get Files/Folders in Order

## Description

In a LogicNets project/package items such as logicnets or images are organized in a folder structure. Using this part, you can retrieve the folder structure of a package or set of packages. The system returns the items in the same order as they are modeled in the LogicNets Designer. You might use this function, for example, to display to users a set of folders or logicnets to users in your application.

## Editor Fields

Use the following editor fields to configure this part:

| Field Name            | Description/Use                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  | Type             | Optional/Mandatory |
| --------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------- | ------------------ |
| Generate              | This tells the system to generate either a list of files or folders.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             | Files \| Folders | Mandatory          |
| Input type            | This tells the system to search in a folder based on the folder path or folder id.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               | Dropdown         | Mandatory          |
| Folder path           | This is the path to the folder to be queried; for example, "logicnets/forms".                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    | Text             | Mandatory          |
| Folder id             | This is the id of the folder to be queried; for example, "10".                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   | Number           | Mandatory          |
| Data Object           | This is the path where the system stores the result, which is a collection of files or folders.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  | Object           | Mandatory          |
| Package               | <p>This is the package where the system must retrieve the files/folders.<br><strong>Framework</strong> – This is the current framework (e.g. AssessmentFramework).<br><strong>Framework-to-application</strong> – Query all files/folders in all packages started from the framework and traverse the inheritance tree to the application; for example, "AssessmentFramework", "CustomFramework", "Assessment".<br><strong>Application-to-framework</strong> – Query all files/folders in all packages started from the application and traverse the inheritance tree to the framework; for example, "Assessment", "CustomFramework", "AssessmentFramework".</p> | Option           | Mandatory          |
| Recurse in subfolders | When this is enabled the system also returns the files in the subfolders.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        | Y \| N           | Optional           |


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://community-test.logicnets.com/release-9/platform-documentation/process-node-parts/get-filesfolders-in-order.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
