For Each Entry
This activity runs the contained activities on each entry in a collection of entries. Learn about tokens this activity produces.
To set up this activity:
- Drag the activity from the toolbox pane and drop it in the Designer pane.
- In the properties pane, type a name and description of the activity.

- In the Connection Profile property box, select the repository you want the activity to use.
- In the Entries property box, select the collection of entries you want this activity to operate on by selecting the Edit button
, hovering over the activity you want to select the entry from, and selecting Output Entries. - In the Record Entries property box, select List the entries in the workflow's instance details if you want to list the entries in the instance report.
- Drag activities from the toolbox pane and drop them into this activity. These are the activities this activity will run.
You may want to disable activities if you only want to test specific sections of your workflow. To disable activities:
- Select an activity in the designer pane to highlight it.
- In the Description property box, clear Enable.
Tokens for For Each Entry Activity
This activity produces the following tokens:
| Name | Description | Sample Syntax |
|---|---|---|
| CurrentEntry_Name | The name of the current entry. | %(ForEachEntry_CurrentEntry_Name) |
| CurrentEntry_Id | The Laserfiche ID number of the current entry. | %(ForEachEntry_CurrentEntry_Id) |
| CurrentEntry_Path | The folder path of the current entry. | %(ForEachEntry_CurrentEntry_Path) |
| CurrentEntry_FullPath | The folder path of the current entry, including the entry's name. | %(ForEachEntry_CurrentEntry_FullPath) |
| CurrentEntry_Repository | The repository the current entry is in. | %(ForEachEntry_CurrentEntry_Repository) |
| Iteration | The number of times the For Each Entry activity has run. | %(ForEachEntry_Iteration) |
The "ForEachEntry" portion of the syntax changes to match the activity's name.
Note: All non-alphanumeric characters, except underscores, are removed from the name. For example, if you rename the activity "Apply [Settings] to Each", the syntax for the CurrentEntry_Id token is "%(ApplySettingstoEach_CurrentEntry_Id)".