SharePoint - Find or Create Folder
What it does
Return a matching direct child folder when it exists, or create it when it does not.
This is the safer choice for repeatable onboarding workflows. The Created output tells you whether the folder was created during the current run or already existed.
When to use it
- Make repeated workflows safe when the same folder may already exist.
- Get a stable Folder ID without treating an existing folder as an error.
Make repeated workflows safe when the same folder may already exist.
Requirements
- A connected Microsoft 365 connection for this HighLevel Location.
- The Drive ID of the approved SharePoint document library.
- The direct child folder name to find or create.
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 |
Folder Name | string | Yes | Direct child folder name to find or create. | Contracts |
Example values
- Document Library (Drive ID)
b!exampleDriveId123- Parent Folder Path
Customers/Example Client- Folder Name
Contracts
Example workflow
- HighLevel workflow trigger
The business event that starts the workflow.
- SharePoint - Find or Create Folder
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 → Find or Create Folder → map Folder ID into Upload File or another later step.
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. |
Created | boolean | Whether this run created the folder instead of finding an existing one. | false | Use for reporting or branching between newly created and already-existing folders. |
Folder ID | string | Microsoft Graph DriveItem ID of the folder. | example-folder-id | Map into a later step that needs this folder's Item ID. |
Folder Name | string | Folder name returned by SharePoint. | Example Folder | Use in messages, audit text, or later naming logic. |
Web URL | string | SharePoint web link for the resulting file or folder. | https://example.invalid/Example%20Folder | Use when a later step or staff member needs the SharePoint link. |
How to use outputs in later HighLevel steps
Success: Use as a completion checkpoint before relying on other outputs.Created: Use for reporting or branching between newly created and already-existing folders.Folder ID: Map into a later step that needs this folder's Item ID.Folder Name: Use in messages, audit text, or later naming logic.Web URL: Use when a later step or staff member needs the SharePoint link.
Use Created for reporting or branching. Use Folder ID and Web URL for later automation steps.
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 write 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 write 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.2
- Implementation reference
- Integration commit 8440a0f · src/modules/workflows/actions/sharepoint-find-or-create-folder.json · code/sharepoint_find_or_create_folder.1.2.js