> 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/create-collection.md).

# Create Collection

## Description

This part is accessible from the *Collections* menu in a process node and can be used with applications based on frameworks or those created without frameworks to initialize a collection from manually input values, collections, tables or external sources.

## Use

In general, this part is used to create an initial collection where your modeled logic requires a collection to have an initial/starting value.

Typically this part is placed in an "onstart" folder, so it runs only once at project start up.

The most commonly used configurations in the part editor are very similar to the radio/checklist part. Enter at least one value (and caption if required) and a data object name as the minimum required inputs. The result is a complex collection as shown in the screenshot below.

![](https://2802811211-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FdFhfexCjZ5JMhwGzzywq%2Fuploads%2Fgit-blob-7b6a6743d73299100bb12380f031cce1e6352215%2Fd682001c-6c69-4d04-a6ae-6b884df99cb5.jpg?alt=media)

## Editor Fields

| Field Name    | Description/Use                                                                                                                                                                                                                                                                                                                                                                                                                                                              | Type/ Options | Optional/ Mandatory |                |                         |           |
| ------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------- | ------------------- | -------------- | ----------------------- | --------- |
| Data object   | This is the name of the collection that this part will generate.                                                                                                                                                                                                                                                                                                                                                                                                             | Text          | Mandatory           |                |                         |           |
| GUID          | Specify any GUID to be associated with this collection.                                                                                                                                                                                                                                                                                                                                                                                                                      | Checkbox      | Optional            |                |                         |           |
| Caption       | This is the text attached to the collection and displayed in a form part.                                                                                                                                                                                                                                                                                                                                                                                                    | Text          | Optional            |                |                         |           |
| Data location | <p><strong>Manual</strong><br>- Use the PLUS icon to add options manually<br><strong>Collection</strong><br>- Specify the names of pre-existing collections that contains the captions (optional) and values (mandatory)<br><strong>Table data</strong><br>- Add a data source, any selection criteria and other table parameters<br><strong>External source</strong> (only visible with system configuration - see below)<br>- Choose the source from the dropdown list</p> | <p>Manual     | <br>Collection      | <br>Table data | <br>External source</p> | Mandatory |

## External Source System Configuration

To provide Designer Users with a pre-determined external source list, the following addition needs to be made to the company config.sys file in the \_context block.

```markup
_context = {
              valueset_sources = {
                                     {source = "test", caption = "test caption"},
                                 },
             }
```

When this is not present in the config.sys file, the *external source* option is not active in the part.


---

# 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/create-collection.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.
