SharePoint - List Folder Items
What it does
List the direct files and folders inside a SharePoint folder, with bounded pagination up to the configured maximum.
This action lists direct children only. It does not recursively list the contents of nested folders.
When to use it
- Inspect the direct contents of a known folder.
- Build a workflow that needs a bounded collection of files and folders without recursively scanning subfolders.
Inspect the direct contents of a known folder.
Requirements
- A connected Microsoft 365 connection for this HighLevel Location.
- The Drive ID of the approved SharePoint document library.
- An optional parent folder path; leave it empty for the library root.
Inputs
| Input | Type | Required | Description | Example value |
|---|---|---|---|---|
Document Library (Drive ID) | string | Yes | Microsoft Graph Drive ID for the SharePoint document library. The Drive ID identifies the library itself and can be reused across workflow actions. | b!exampleDriveId123 |
Parent Folder Path | string | No | Folder path inside the selected document library, for example Customers/Acme Ltd. Do not include the document library name. Leave empty to use the document library root. | Customers/Example Client |
Maximum Items | numerical | No | Maximum number of direct child items to return, from 1 through 500. | 200 |
Example values
- Document Library (Drive ID)
b!exampleDriveId123- Parent Folder Path
Customers/Example Client- Maximum Items
200
Example workflow
- HighLevel workflow trigger
The business event that starts the workflow.
- SharePoint - List Folder Items
Run the SharePoint operation with the approved Drive ID and action-specific inputs.
- Use the confirmed result
Map only the documented outputs required by the next workflow step.
A common pattern is: workflow trigger → List Folder Items → inspect Items and Item Count → route or map a selected result.
Outputs
| Output | Type | Description | Example value | Use in later steps |
|---|---|---|---|---|
Success | boolean | Confirms that the action completed successfully. | true | Use as a completion checkpoint before relying on other outputs. |
Item Count | numerical | Number of matching or listed items returned. | 1 | Use for no-result, single-result, or multi-result logic. |
Items | array | Array of normalized file/folder results. | [{"id":"example-item-id","name":"Example Folder","web_url":"https://example.invalid/Example%20Folder","item_type":"folder","size":0,"mime_type":null,"last_modified":"2026-09-22T20:00:00Z"}] | Use IDs and metadata from the returned collection in later workflow logic. |
Has More | boolean | Whether Microsoft reported more results beyond the bounded result set. | false | Use to detect that the configured bound did not cover every available result. |
Next Link | string | Microsoft next-page link when additional results exist. | Example value | Keep for diagnostics or advanced continuation logic; do not expose private URLs unnecessarily. |
How to use outputs in later HighLevel steps
Success: Use as a completion checkpoint before relying on other outputs.Item Count: Use for no-result, single-result, or multi-result logic.Items: Use IDs and metadata from the returned collection in later workflow logic.Has More: Use to detect that the configured bound did not cover every available result.Next Link: Keep for diagnostics or advanced continuation logic; do not expose private URLs unnecessarily.
Use Items for the returned collection. Has More and Next Link indicate that Microsoft reported additional results beyond the bounded result set.
Permissions required
- Microsoft Graph application permission Sites.Selected on the customer-owned Entra app.
- The SharePoint site containing the document library must grant the app at least read access for this operation.
- The action does not require tenant-wide SharePoint access merely for discovery or name matching.
Common errors
Authentication unavailable / 401- This HighLevel Location does not have a usable Microsoft connection. Verify the Location connection before changing SharePoint permissions.
403- The Entra app lacks access to the selected SharePoint site or the granted role is too narrow for the operation. Verify Sites.Selected consent and the site's read grant.
404- The Drive ID, folder path, or Item ID does not resolve in the connected tenant and approved site. Recheck the administrator's Drive ID map and the exact path or Item ID.
429- Microsoft Graph throttled the request. Retry later and avoid high-volume loops without bounds.
Related actions
Product/action version
- Product version
- Pre-launch technical release · 2026-10-04
- Action version
- 1.8
- Implementation reference
- Integration commit 8440a0f · src/modules/workflows/actions/sharepoint-list-folder-items.json · code/sharepoint_list_folder_items.1.8.js