Actions17
- File Actions
- Folder Actions
- Share Actions
Folder → List Contents
AI-generatedSummary
Lists the contents (files, folders, or trashed files) of a specified Zoho WorkDrive folder.
Inputs
- region — Must match the region selected in your WorkDrive credential. Options: au, ca, com, eu, in, jp. Default: com.
- folderId (required) — The ID of the folder whose contents to list.
- folderLocation — Whether the folder resides in your personal My Folders or a shared Team Folder. Options: myfolders, teamfolder. Default: teamfolder.
- listType — What to list inside the folder. Options: files, folders, trashedfiles. Default: files.
- listOptions — Pagination and result‑size options. Ignored when returnAll is true.
Output shape
Array of WorkDrive API item objects (each containing attributes like id, name, type, etc.).
If no items match the criteria, returns a single object with a message property explaining that no items were found.
Examples
Example 1: List the first 20 files in a Team Folder
folderId = 'abc123', folderLocation = 'teamfolder', listType = 'files', listOptions.returnAll = false, listOptions.limit = 20, listOptions.offset = 0
Example 2: List all subfolders in a My Folders folder
folderId = 'xyz789', folderLocation = 'myfolders', listType = 'folders', listOptions.returnAll = true