Help Centre › Building Processes
On each pass of a loop, the current item is put in the loop variable you named, so your steps can use it. How you reach that data depends on what you're looping over. For how to build a loop, see Working with loops in RPAs; for variable syntax, see Working with variables in RPAs.
1. Looping over files
Each pass binds the current file to your loop variable (if you named it file, read its fields as {file::name}, {file::path}, and so on):
name | File name (e.g. invoice.pdf) |
path | Full file path |
folder | Parent directory path |
extension | File suffix including the dot (e.g. .pdf) |
date | Modified date, YYYY-MM-DD |
datetime | Modified date and time, e.g. 2026-06-16 14h30 |
size | Size in bytes |
timestamp | Modified time as epoch seconds |
in use | Whether the file is currently locked or open |
password protected | Whether the file is encrypted |
Two of these fields contain a space, so you must quote or bracket them to reach them: {file::"in use"} or {file["password protected"]}.
2. Looping over folders
Folder records carry: name, path, folder (parent), date, datetime and timestamp. They have no extension, size, in use or password protected fields.
If you loop over a templated path such as /clients/[client]/invoices, the captured segment is also available as a field, e.g. {folder::client}.
3. Looping over spreadsheet rows or API results
If you opened an Excel spreadsheet or called an API before the loop, each pass exposes that row's columns by name. For a sheet with columns Nr1, Nr2 and Sum:
{Nr1}: the first column's value for the current row{Sum}: the Sum column's value for the current row
When data comes back as a JSON record, drill in with separators and indexes: for a list of members, {members::0::age} reaches the first member's age. See Working with variables in RPAs for the full nested-access rules.
4. Looping over emails
A loop over unread emails binds each email to your loop variable. If you named it email, read the subject as {email::subject} and the sender's address as {email::sender}. Inside the loop, {subject} and {sender} also work.
Use the exact field name: a field that does not exist makes a loop filter row fail. Compare a field such as {email::sender}, not the whole {email}. sender, sender_name, has_attachments and total_attachments need bot 6.6.8 or later. For every field, see Email fields.