Skip to main content

SharePoint actions

The SharePoint extension provides actions for retrieving files and folders from SharePoint within Workforce Flows. Use these actions to access drive item metadata via SharePoint share links as part of your automated content processes.

You can install this action extension from the Workforce integration marketplace.

Tip

These action descriptions cover the most commonly used inputs and outputs. When designing flows, you may also notice additional input and output variables.

Prerequisites
Link copied!

The SharePoint extension uses Microsoft Graph authentication. Configure the following environment variables before using the action.

VariableTypeRequiredDescription
MICROSOFT_GRAPH_TENANT_IDstringYesThe tenant ID for Microsoft Graph API authentication.
MICROSOFT_GRAPH_CLIENT_IDstringYesThe client ID for Microsoft Graph API authentication.
MICROSOFT_GRAPH_CLIENT_SECRETstringYesThe client secret for Microsoft Graph API authentication. This value is write-only.

For details of how to obtain the credentials you need to configure the SharePoint action extension, see:

Retrieves file or folder information from SharePoint using a share link.

Inputs

InputTypeRequiredDescription
linkstringYesThe share link to a SharePoint file or folder

Outputs

OutputTypeDescription
driveItemsarrayA list of drive item objects. See Drive item object below

Drive item object

Each entry in the driveItems array contains the following fields:

FieldTypeDescription
idstringUnique identifier of the drive item in Microsoft Graph
namestringName of the drive item
webUrlstringURL to view the item in a web browser
sizenumberSize of the item in bytes
createdDateTimestringDate and time the item was created
lastModifiedDateTimestringDate and time the item was last modified
eTagstringETag for the item, used for change detection
cTagstringContent tag for the item, used to detect content changes
isAuthoritativebooleanWhether this item is the authoritative version
odata.contextstringOData context URL for the response
microsoft.graph.downloadUrlstringURL to download the file directly
createdBy.user.emailstringEmail address of the user who created the item
createdBy.user.displayNamestringDisplay name of the user who created the item
lastModifiedBy.user.emailstringEmail address of the user who last modified the item
lastModifiedBy.user.displayNamestringDisplay name of the user who last modified the item
parentReference.driveTypestringType of drive containing the item (e.g. documentLibrary)
parentReference.driveIdstringUnique identifier of the drive
parentReference.idstringUnique identifier of the parent folder
parentReference.namestringName of the parent folder
parentReference.pathstringPath to the parent folder within the drive
parentReference.siteIdstringUnique identifier of the SharePoint site
file.mimeTypestringMIME type of the file. Present only when the item is a file
file.fileExtensionstringFile extension. Present only when the item is a file
file.hashes.quickXorHashstringQuick XOR hash of the file for integrity verification. Present only when the item is a file
fileSystemInfo.createdDateTimestringDate and time the item was created on the file system
fileSystemInfo.lastModifiedDateTimestringDate and time the item was last modified on the file system
imageobjectImage metadata. Present only when the item is an image
photoobjectPhoto metadata. Present only when the item is a photo
shared.scopestringScope of sharing (e.g. users, organization, anonymous)

Example output

{
"driveItems": [
{
"id": "01ABCDEF123456789",
"name": "example.pdf",
"webUrl": "https://example.sharepoint.com/:b:/s/site/...",
"microsoft.graph.downloadUrl": "https://...",
"lastModifiedDateTime": "2026-04-29T10:00:00Z",
"file": {
"fileExtension": "pdf",
"mimeType": "application/pdf"
}
}
]
}

Adding actions to flows

Inputs, outputs and ports

Input field variables

Developing extensions