Skip to content

SharePoint - Upload File

Upload one HighLevel File Upload value to an approved SharePoint document library, preserving the original filename when File Name is left blank.

Current published action version 1.5

When to use it

  • Save a file submitted through HighLevel into SharePoint.
  • Move a workflow file into the organization's Microsoft 365 document system without creating vendor file storage.

Before you start

  • A connected Microsoft 365 connection for this HighLevel Location.
  • The Drive ID of the approved SharePoint document library.
  • Exactly one HighLevel File Upload download value.
  • A file no larger than 250 MiB; existing destination names are not overwritten.

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

Enter these values in the action
InputHow 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: b!exampleDocumentsDriveId

Destination Folder Path
destination_folder_pathOptional · string

Destination folder inside the selected document library, for example Archive/2026. Do not include the document library name. Leave empty to use the document library root.

Example: Archive/2026

File Upload Value
fileRequired · string

Map one HighLevel File Upload custom field using the Custom Value Picker, or supply its LeadConnector HTTPS download link. One file; maximum 250 MiB.

Example: Select one File Upload field in the Custom Value Picker

File Name
file_nameOptional · string

Optional. Leave blank to preserve the original uploaded filename.

Example: Leave blank to preserve the original name

Practical workflow

Example workflow
  1. Intake form submits one file

    Ensure a supported File Upload value and an existing customer destination.

  2. Upload File

    Map the File Upload custom field; Destination Folder Path: Clients/Example Client/Deliverables; leave File Name blank.

  3. Notify with the saved document

    Map Web URL into an internal notification and keep Item ID with the Drive ID.

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

Outputs from a successful action
OutputMeaning and use
Success
successboolean

Confirms that the action completed successfully. Use as a completion checkpoint before relying on other outputs.

Example valuetrue
Item ID
item_idstring

Microsoft Graph DriveItem ID of the uploaded file. Map into Get Item, Move Item, Rename Item, Delete Item, or other ID-based steps.

Example valueexample-uploaded-file-id
Item Name
item_namestring

Current name of the file or folder. Use for confirmation, messages, or later naming logic.

Example valueExample.png
Item Size
item_sizenumerical

Verified uploaded item size in bytes. Use to confirm the resulting uploaded size.

Example value68
Web URL
web_urlstring

SharePoint web link for the resulting file or folder. Use when a later step or staff member needs the SharePoint link.

Example valuehttps://contoso.sharepoint.com/sites/Retail/Documents/Example.png
Parent Item ID
parent_item_idstring

DriveItem ID of the resulting parent folder. Use when later logic needs the resulting parent folder ID.

Example valueexample-parent-folder-id

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

  • One file per action; source must be a HighLevel LeadConnector HTTPS documents/download link. Arbitrary URLs, SharePoint browser links and multi-file arrays are not supported.
  • Blank File Name preserves the original filename when source metadata supplies it. Otherwise provide a valid name including its extension; maximum 255 characters and no invalid/reserved SharePoint names.
  • Existing destination names fail rather than overwrite or auto-rename. Destination must already be a folder in the selected library.
  • Implementation ceiling: 250 MiB (262,144,000 bytes), with 20 MiB transfer ranges. The 250 MiB maximum has not been live acceptance-tested end to end.
  • Upload bytes transit a stateless Merxence-operated Cloudflare relay without persistent file storage. Metadata/session calls remain direct to Graph. The current relay accepts tenant.sharepoint.com destinations; other Microsoft cloud namespaces are outside this implementation.

The HighLevel action does not automatically rerun. Within its transfer budget, the relay makes at most two retries per upstream request for HTTP 429/5xx responses. Timeouts and ambiguous completion still require inspecting the destination before manually retrying.

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 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.
409
A destination name or state conflicts with an existing SharePoint item. Inspect the destination and choose the intended duplicate/conflict behavior before retrying.
429
Microsoft Graph throttled the request. Retry later and avoid high-volume loops without bounds.
413 / unsupported source / uncertain transfer
File exceeds 250 MiB, source is unavailable, or upload verification did not complete. Use one valid HighLevel File Upload value, inspect the destination, and follow upload troubleshooting before rerunning.

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 write 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 →

Version and reference review

Current published action: 1.5. 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.