---
title: "Folder Count Flow Behavior"
slug: "folder-count-flow-behavior"
updated: 2025-06-25T15:02:50Z
published: 2025-06-25T15:02:50Z
---

> ## Documentation Index
> Fetch the complete documentation index at: https://documentation.decisions.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Folder Count Flow Behavior

## Overview

The **Folder Count Flow Behavior** displays a Folder Count on a Folder that is selected in a Flow using this Behavior. This Counter is displayed alongside the Folder Name within the user Portal. This behavior also allows the ability to set if the Count is **Important** or not. Setting the importance will change the color displayed on the Folder that the Count is set to.

The following example demonstrates how to create a Counter for Folder to display the number of its Sub-Folders.

---

## Example

1. Navigate to a **Designer****Project**and select CREATE FLOW, from the top Action bar.
  1. Select **Flow**, provide **Name**, then click CREATE.
2. Navigate to the **Properties**tab.
3. Under SETTINGS **> Behavior Type**, select**Folder Count Flow**. ![](https://cdn.document360.io/6ef8bcc1-6489-4486-9ad1-83acff7e5df0/Images/Documentation/2025-06-20_09h33_59.png)
4. Navigate to COUNTER SETUP**> Counter Type**, and select **ForFolderType**or **ForFolder**.
  1. If ForFolderType, select the desired Folder Type from the dropdown.Selecting a Folder Type will display a counter on all Folders of the defined Type.

![](https://cdn.document360.io/6ef8bcc1-6489-4486-9ad1-83acff7e5df0/Images/Documentation/2025-06-25_10h57_08.png)
  2. If ForFolder, PICK the desired **Folder**to display the counter on.![](https://cdn.document360.io/6ef8bcc1-6489-4486-9ad1-83acff7e5df0/Images/Documentation/2025-06-25_10h57_54.png)
5. Under Change Type, select either OnTimer or OnFolderChange. (For this example, select On Folder Change.Change Type options behave as follows:

  - On Timer: Uses Change Time to define a TimeSpan to run this Flow.![](https://cdn.document360.io/6ef8bcc1-6489-4486-9ad1-83acff7e5df0/Images/Documentation/2025-06-25_10h58_17.png)
  - On Folder Change: Uses Folder Change and refresh to adjust the counter.

![](https://cdn.document360.io/6ef8bcc1-6489-4486-9ad1-83acff7e5df0/Images/Documentation/2025-06-25_10h58_43.png)
6. From the INTEGRATION > INTERNAL SERVICES > FOLDERSERVICE category of the **Toolbox**tab, add a **GetSubFolders**step to the **Done**path of the **Start**step.
7. Navigate to the GetSubFolders' Properties tab; under INPUTS, **Select****From****Flow**map **Folder.FolderID** to **id**.

The FolderID value will pertain to the Folder selected in the Flow's Properties earlier.

![](https://cdn.document360.io/6ef8bcc1-6489-4486-9ad1-83acff7e5df0/Images/Documentation/2025-06-25_11h00_26.png)
8. Connect the GetSubFolders step to the **End**step; then, select the End step to navigate to its Properties tab. ![](https://cdn.document360.io/6ef8bcc1-6489-4486-9ad1-83acff7e5df0/Images/Documentation/2025-06-25_11h01_32.png)
  1. Map **GetSubFolders1_Output.Count** to **Folder****Count**, and **Constant**map **Important**as **True**.

Defining Important as True will change the background color to Orange. Leaving it as False will set the Counter's background to grey.
9. **Save**the Flow, then close via **X**.
10. Refresh the Portal.

After refreshing the Portal, a counter will display beside the configured Folder in the Folder tree. 

![](https://cdn.document360.io/6ef8bcc1-6489-4486-9ad1-83acff7e5df0/Images/Documentation/2024-08-14_14h10_22.png)
