Search K
Appearance
Appearance
The Get Sharepoint File node retrieves a file from a SharePoint document library using Microsoft Graph API. This node connects to a SharePoint site via a configured Autodesk service account, accesses a specified file by its path, and stores the retrieved file metadata in the workflow context.
This node is commonly used to fetch files for processing, sharing, or logging in subsequent workflow steps.
task
Get Sharepoint File
mdi mdi-file-download
Label | Type | Description |
---|---|---|
Sharepoint File | text | The SharePoint file path, including the site and library, used to locate the file. This should follow the internal path format (e.g. Sites/ProjectX/Shared Documents/myfile.pdf ). |
Upon successful execution, the node stores the downloaded file metadata as an object in the workflow variable SharepointFile
. This object contains properties returned by Microsoft Graph DriveItem
, such as the file name, size, and last modified date.
Validation The node checks for the presence of the Sharepoint File
input. If missing, execution halts with an error.
Authentication Retrieves Autodesk-linked service account credentials using the ThirdParty-Autodesk
key and obtains a valid Microsoft Graph access token.
Path Parsing Parses the file path into site
, document library
, and folder path
using the helper function GetSharePointLocations
.
File Retrieval Calls the SPGraphService.GetFileByPathAsync()
method to retrieve the file metadata from SharePoint.
Output Assignment Replaces the Sharepoint File
input with a SharepointFile
output in the taskParameters.data
dictionary.
Error Handling Returns detailed failure messages for token errors, path issues, or file retrieval failures.
This node is useful in workflows where a SharePoint-hosted document must be processed, validated, or attached to an external communication (e.g., sending via email or uploading to another system).
Example sequence:
GetSharepointFile
ConvertToPDF
(uses file from SharepointFile
)SendEmailWithAttachment