SharePoint - List Folder Items
List the direct files and folders inside a SharePoint folder, with bounded pagination up to the configured maximum.
Current published action version 1.8
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.
Before you start
- 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.
In the connected Location, open your workflow, add this named action, enter the values below, and save. Use the Custom Value Picker for dynamic inputs and earlier action outputs.
Inputs
| Input | How to configure it |
|---|---|
Document Library (Drive ID)drive_idRequired · string | Microsoft Graph Drive ID for the SharePoint document library. The Drive ID identifies the library itself and can be reused across workflow actions. Example: |
Parent Folder Pathparent_folder_pathOptional · string | 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. Example: |
Maximum Itemsmax_itemsOptional · numerical | Maximum number of direct child items to return, from 1 through 500. Default: 200. Example: |
Practical workflow
- Internal test contact receives a test tag
Use one approved library and a small existing folder.
- List Folder Items
Parent Folder Path: Clients/Example Client/Contracts; Maximum Items: 10.
- Check the inventory
Inspect Items and Item Count; Has More=true means the bounded list is incomplete.
Run with a dedicated test contact and non-sensitive SharePoint data. Inspect the action result and compare it with the intended library before enabling ordinary contacts. See the complete business recipes for end-to-end configuration.
Expected outputs
| Output | Meaning and use |
|---|---|
Successsuccessboolean | Confirms that the action completed successfully. Use as a completion checkpoint before relying on other outputs. Example valuetrue |
Item Countitem_countnumerical | Number of matching or listed items returned. Use for no-result, single-result, or multi-result logic. Example value1 |
Itemsitemsarray | Array of normalized file/folder results. Use IDs and metadata from the returned collection in later workflow logic. Example value[{"id":"example-item-id","name":"Example Folder","web_url":"https://contoso.sharepoint.com/sites/Retail/Example%20Folder","item_type":"folder","size":0,"mime_type":null,"last_modified":"2026-09-22T20:00:00Z"}] |
Has Morehas_moreboolean | Whether Microsoft reported more results beyond the bounded result set. Use to detect that the configured bound did not cover every available result. Example valuefalse |
Next Linknext_linkstring | Microsoft next-page link when additional results exist. Keep for diagnostics or advanced continuation logic; do not expose private URLs unnecessarily. Example valueExample value |
In a later step, select the named output from this action through HighLevel's Custom Value Picker. Retain the Drive ID with an Item/Folder ID. An array such as Items or Folders needs deliberate member selection; it is not a scalar Item ID. Output mapping guidance →
Limits and retry behavior
- Direct children only, not recursive. Maximum Items is 1–500, default 200.
- The action follows Graph pages until the limit or a conservative output guard is reached. Has More indicates unconsumed data; Next Link identifies the first unconsumed complete Graph page.
- Items is an array, not a scalar Item ID. Each entry exposes id, name, web_url, item_type, size, mime_type and last_modified. Some entry metadata can be null.
- No continuation input is exposed by this action. Raising the limit or using an advanced reviewed request is needed to examine additional data; Next Link is a Graph URL, not a browser page.
No automatic action retry. The action automatically paginates successful reads; pagination is not retry. A transient failed read can be rerun, but the list may change.
Common errors and recovery
- Missing or invalid input / 400
- A required dynamic value is blank or has an unsupported format. Inspect the resolved value on the enrolled contact; compare with the input format above before retrying.
- 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.
Failed requests stop the action; do not rely on Success=false as a returned error contract. Keep secrets and private URLs out of diagnostics. Troubleshooting →
Permissions and security
- 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.
Runtime access is app-only and does not mirror the permissions of the person enrolling a contact. A Drive ID selects a library inside a granted site; it is not a library-level security grant. Returned Web URLs require the reader's own Microsoft access. Security model →
Related actions
Version and reference review
Current published action: 1.8. Compare with the version in your existing workflow before adopting these fields; older published versions may differ.
Reference reviewed on against application commit 8440a0f. Published versions remain immutable.