How do I read the list of files returned by the List Files action?

The List Files for Record Flow action returns its results in filesJson, a JSON array supplied as a text string, alongside a fileCount number and the folderPath that was listed.

Each entry in the array has six keys: id (Dropbox item identifier), name, path (full Dropbox path), isFolder (true for folders), size (bytes, files only), and modified (last modified timestamp).

Flow cannot parse JSON natively, so pair the action with an Apex invocable or a formula to pull out the values you need. For simple branching, fileCount alone is often enough, for example checking whether a record has any files yet before creating folders or requesting documents.

Note: this action reports errors in errorMessage, not the message field every other Dropbox action uses. If your Flow's error handling reads message uniformly, it will silently miss list failures, so check errorMessage and success on this action specifically.

Related Articles

In This Article