Skip to content

Get SharePoint Files by Folder

The Get SharePoint Files by Folder node retrieves all files from a specified folder in a SharePoint document library using Microsoft Graph API.

This node is commonly used in workflows that require further automation or processing of SharePoint-hosted files (e.g., metadata extraction, batch downloading, filtering, etc.).


Node Name

Get Sharepoint Files By Folder


Purpose

To retrieve a list of files stored in a SharePoint folder and make that list available in the workflow as an output variable (SharepointFiles).


Required Inputs

LabelTypeDescription
Sharepoint FolderTextThe full SharePoint folder reference, in the expected format used internally for parsing Site, Document Library, and Folder Path. Example: https://<tenant>.sharepoint.com/sites/<site>/Shared Documents/<folder>

Outputs

Output VariableDescription
SharepointFilesA collection of file objects (Microsoft Graph DriveItem) retrieved from the target folder.

Execution Details

This task will:

  1. Validate that the Sharepoint Folder input is provided.
  2. Retrieve the configured Autodesk service account credentials.
  3. Parse the SharePoint URL into site, docLib, and folderPath.
  4. Call the Microsoft Graph API to list all files in the given folder.
  5. Store the result (as a list of DriveItem objects) in the SharepointFiles output variable.

If any of the parsing steps or API calls fail, the task will return a failed status with the corresponding error message.


Example Use Case

Imagine a workflow where you need to:

  • Automatically retrieve all files in a SharePoint folder
  • Loop through the files to apply OCR or metadata extraction

This node allows you to fetch the list of files at runtime, making them available for further downstream actions in your automation.


Notes

  • Requires a valid ThirdParty-Autodesk service account to authenticate with Microsoft Graph API.
  • The folder path must be formatted in a way that is compatible with the helper method GetSharePointLocations(...).
  • This node does not download the files — it only retrieves metadata and references.

Troubleshooting

SymptomPossible Cause
"Failed to get Sharepoint locations"Malformed or unsupported SharePoint folder path
"Required Service Accounts not found"Missing or misconfigured service token for Microsoft Graph
"Failed to get files from Sharepoint"API failure or insufficient permissions

Tentech 2024