Skip to main content
Beta
This action is part of Loops, which are in beta and require the Developer Toolkit. To join the beta, email [email protected].

Load Loop Files

The Load Loop Files action copies the files saved on a loop onto the current run. Actions that take files, such as Send Email or the attachment actions, can then select them like any other file in the run.

When to Use This Action​

Use this action when:

  • You want to attach a file saved by an earlier run to an email or a ticket
  • You want to check a file that an earlier stage kept

The loop keeps its files; loading copies them. If the file is already part of this run, loading it again adds another copy.

Configuration​

FieldDescription
LoopThe ID of the loop. Optional in a loop stage or event: leave it empty to use the loop this run belongs to. Required everywhere else, including in a macro or AI action called from a loop run, because those do not see the calling loop. Supports text expressions.
File NameOptional. The action checks both the name (the file's label in the run) and the file name (such as bill.pdf). A match on either loads the file. Use * as a wildcard, and match the capitalization: *.pdf does not match BILL.PDF. Leave empty to load every file on the loop. Supports text expressions.

Returned Variables​

The action returns a list with one entry per loaded file. If the loop has no matching file, the list is empty. Select the result in a Files field of a later action, or select All Files.

VariableDescription
idThe ID of the file in this run
nameThe name of the file
filenameThe file name, for example bill.pdf
content_typeThe content type, for example application/pdf
size_bytesThe size of the file in bytes
sha256The SHA-256 checksum of the file's content

Notes​

  • The loop must belong to your account. An unknown loop ID fails the action.
  • You can load files from a closed loop.
  • The run history shows which files the action loaded, or why none matched.