Skip to content

SharePoint - Get Item

Get current metadata for a SharePoint file or folder when you already have its DriveItem ID.

Current published action version 1.1

When to use it

  • Refresh metadata for an item returned by an earlier action.
  • Retrieve the current name, type, size, link, and parent information for a known item.

Before you start

  • A connected Microsoft 365 connection for this HighLevel Location.
  • The Drive ID of the approved SharePoint document library.
  • The Item ID of the file or folder.

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

Item ID
item_idRequired · string

Microsoft Graph DriveItem ID of the SharePoint file or folder. Usually map this from a previous action such as Get Item By Path, Search Items, or List Folder Items.

Example: example-item-id

Practical workflow

Example workflow
  1. A workflow has an earlier uploaded Item ID

    Keep the ID together with the document-library Drive ID.

  2. Get Item

    Map Upload File → Item ID into Item ID; use the same Drive ID.

  3. Verify the document

    Check Item Name, Item Type and Size; use Web URL in an internal message.

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 resulting file or folder. Map into Get Item, Move Item, Rename Item, Delete Item, or other ID-based steps.

Example valueexample-item-id
Item Name
item_namestring

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

Example valueExample Document.pdf
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/Example%20Document.pdf
Item Type
item_typestring

Normalized item type such as file or folder. Use to distinguish file and folder results.

Example valuefile
Size
sizenumerical

Item size in bytes. Use for file-size checks or audit information.

Example value24576
MIME Type
mime_typestring

MIME type for a file when Microsoft returns one. Use when later logic depends on the returned file type.

Example valueapplication/pdf
Last Modified
last_modifieddate

Microsoft last-modified timestamp for the item. Use for audit or freshness checks.

Example value2026-09-22T20:00:00Z
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

  • Returns metadata for one file or folder; it does not download file contents.
  • An Item ID needs its corresponding Drive ID. It is not a SharePoint URL or a path.
  • Item Type is file, folder, or other. Missing metadata can be an empty string or zero; a folder Size is not an individual file size.

No automatic action retry. This read action can be rerun after a transient failure; the item may have changed between runs.

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 →

Version and reference review

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