Skip to main content
ms-sharepoint icon

Microsoft SharePoint Connector

Sourcenpm · v0.5.0API DocsAPI ChangelogConnector Changelog

Description​

Microsoft SharePoint is a web-based document management and collaboration platform that integrates with Microsoft 365. This component enables managing sites, drives, files, and lists within SharePoint.

API Documentation​

This component was built using the Microsoft Graph Rest API v1.0

Connections​

Certificate Credentials​

key: certificateCredentials

Prerequisites​

  • A licensed instance of Microsoft SharePoint
  • Permission to create an app registration and grant admin consent in the Microsoft Entra tenant
  • A certificate that meets these requirements:
    • Issued by a Certificate Authority (CA) for production, or self-signed for development
    • RSA key size: minimum 2048 bits (4096 bits recommended)
    • X.509 format
    • Public key formats: .cer, .pem, or .crt
    • Private key in PEM or PKCS#12 format

Setup Steps​

  1. Create an app registration in Microsoft Entra by following the steps in the OAuth 2.0 (Deprecated) connection guide
  2. Configure the following Microsoft Graph Application permissions:

Site Operations:

  • Sites.Read.All - Read items in all site collections
  • Sites.ReadWrite.All - Read and write items in all site collections
  • Sites.Manage.All - Create, edit, and delete items and lists in all site collections
  • Sites.FullControl.All - Full control of all site collections

File Operations:

  • Files.Read.All - Read files in all site collections
  • Files.ReadWrite.All - Read and write files in all site collections

List Operations:

  • Sites.ReadWrite.All - Required for list operations
  • Sites.Manage.All - For creating and managing lists

User and Group Access:

  • User.Read.All - Read all users' profiles
  • Group.Read.All - Read all groups
  1. Grant admin consent for all configured permissions
  2. Navigate to Certificates & Secrets in the app registration
  3. Select the Certificates tab
  4. Click Upload certificate
  5. Select the public certificate file (.cer, .pem, or .crt)
  6. Add an optional description
  7. Click Add to upload

After upload, note these values:

  • Certificate Thumbprint - SHA-1 hash (e.g., "931E8F84B98A4B5F93AD609FD5E8D0BA1AB90F87")
  • Start Date and Expiration Date
  • Certificate ID - Automatically generated

Configure the Connection​

Create a connection of type Certificate Credentials:

  • Base URL: Keep the default https://graph.microsoft.com, or enter the Microsoft Graph root endpoint for the national cloud the tenant uses
  • Microsoft Entra ID Endpoint: Keep the default https://login.microsoftonline.com, or enter the token service endpoint for the national cloud the tenant uses
  • Tenant: Directory (tenant) ID or tenant name from the app registration
  • Client ID: Application ID from app registration
  • Private Certificate: Certificate private key in PEM format
  • Certificate Thumbprint: SHA-1 thumbprint from uploaded certificate (remove spaces)
  • Scopes: https://graph.microsoft.com/.default for application permissions (the default)

Private Key Format​

The private key must be in PEM format with appropriate headers:

-----BEGIN PRIVATE KEY-----
[base64 encoded private key]
-----END PRIVATE KEY-----

Or for RSA keys:

-----BEGIN RSA PRIVATE KEY-----
[base64 encoded RSA private key]
-----END RSA PRIVATE KEY-----
InputNotesExample
Base URL

The base URL for the Microsoft Graph API. Depending on your cloud environment, you can choose the correct one here.

https://graph.microsoft.com
Private Certificate

Your X.509 private certificate.

Certificate Thumbprint

Thumbprint of the certificate.

Client ID

Client Id of your Azure application.

11111111-2222-3333-4444-555555555555
Microsoft Entra ID Endpoint

The Microsoft Entra ID endpoint for the Microsoft Graph API. You can find this in the Azure portal or here.

https://login.microsoftonline.com
Scopes

Microsoft Graph API Scopes.

https://graph.microsoft.com/.default
Tenant

The tenant ID or name for the Microsoft Graph API. This is the ID or name of the tenant that you are connecting to.

11111111-2222-3333-4444-555555555555

OAuth 2.0 (Deprecated)​

key: oauth
Deprecated

This connection is deprecated. Use the OAuth 2.0 Authorization Code connection instead.

This connection authenticates to Microsoft SharePoint with OAuth 2.0 through a Microsoft Entra app registration.

Prerequisites​

Setup Steps​

  1. Navigate to Microsoft Entra Identity > Applications > App registrations
  2. Select New registration
  3. Configure the basic settings:
    • Name: Provide a descriptive name for the application
    • Supported account types: Select Accounts in any organizational directory (Any Azure AD directory - Multitenant)
    • Redirect URI: Select Web platform and add https://oauth2.prismatic.io/callback
  4. Click Register to create the app registration
  5. On the Overview page, copy the Application (client) ID. Note the Directory (tenant) ID as well; single-tenant apps and the client credentials and certificate connections require it.
  6. Navigate to API Permissions and click Add a permission
  7. Select Microsoft Graph, choose Delegated permissions, and select the permissions the integration requires (listed below)
  8. Click Add permissions, then click Grant admin consent to activate the permissions
  9. Navigate to Certificates & Secrets, select the Client secrets tab, and click New client secret
  10. Provide a description, select an expiration period, and click Add
  11. Copy the secret Value immediately; it cannot be retrieved later

Essential Scopes:

  • offline_access - Required for refresh tokens (without this, users re-authenticate every hour)

Site Operations:

  • Sites.Read.All - Read items in all site collections
  • Sites.ReadWrite.All - Read and write items in all site collections
  • Sites.Manage.All - Create, edit, and delete items and lists in all site collections
  • Sites.FullControl.All - Full control of all site collections

File Operations:

  • Files.Read.All - Read all files the signed-in user can access
  • Files.ReadWrite.All - Read and write all files the signed-in user can access

List Operations:

  • Sites.ReadWrite.All - Required for list item operations
  • Sites.Manage.All - For creating and managing lists

User Profile:

  • User.Read.All - Read all users' profiles
  • User.ReadBasic.All - Read all users' basic profiles

Configure the Connection​

Create a connection of type OAuth 2.0 (Deprecated):

  • Base URL: Keep the default https://graph.microsoft.com, or enter the Microsoft Graph root endpoint for the national cloud the tenant uses
  • Authorize URL and Token URL: Keep the defaults for a multitenant app. For a single-tenant app registration, replace them with https://login.microsoftonline.com/{tenant-id}/oauth2/v2.0/authorize and https://login.microsoftonline.com/{tenant-id}/oauth2/v2.0/token
  • Scopes: Space-separated permission scopes. The default is Sites.ReadWrite.All Sites.Manage.All offline_access; add others the integration requires
  • Client ID: The Application (client) ID from the app registration
  • Client Secret: The client secret value created above

Microsoft requires Azure AD app registrations used in multi-tenant deployments to complete a publisher verification process. This review confirms the app developer's identity, giving end users confidence that they are authorizing a legitimate, verified application.

Azure AD app registrations have two distinct verification concepts that affect how users experience the authentication flow.

Publisher Verification​

Complete publisher verification before deploying to end users. Without it, the Microsoft consent screen displays "Unverified" next to the app name. This reduces user trust and may prevent users in organizations with strict Azure AD policies from being able to authorize the app at all.

To verify the publisher:

  1. Ensure the organization has a Microsoft Partner Network (MPN) account
  2. In the Microsoft Entra Admin Center, open the app registration
  3. Under Branding & properties, click Add a verified publisher
  4. Enter the MPN ID and confirm

Once verified, the consent screen displays the organization name with a verified badge instead of "Unverified."

Apps requesting application permissions (permissions that act without a signed-in user) or high-privilege delegated permissions require admin consent before any user in a Microsoft 365 tenant can authenticate. Without admin consent, users see a "Need admin approval" error. Delegated permissions rarely need admin consent unless classified as high privilege; see the Microsoft Graph permissions reference to check which do.

A tenant administrator can grant consent using either method:

Method 1: Admin Consent URL

Navigate to the following URL, replacing {tenant} with the Directory tenant ID and {client_id} with the Application client ID:

https://login.microsoftonline.com/{tenant}/adminconsent?client_id={client_id}

Method 2: Microsoft Entra Admin Center

  1. Navigate to Microsoft Entra Admin Center → Enterprise applications
  2. Select the app registration
  3. Under Permissions, click Grant admin consent for [organization name]
InputNotesExample
Authorize URL

The OAuth 2.0 authorization endpoint of the Microsoft identity platform. Replace common with the directory (tenant) ID to restrict sign-in to one tenant. Find it on the app registration's Endpoints page in the Microsoft Entra admin center; see Endpoints.

https://login.microsoftonline.com/common/oauth2/v2.0/authorize
Base URL

The base URL for the Microsoft Graph API. National cloud deployments use a different root endpoint; see Microsoft Graph national cloud deployments.

https://graph.microsoft.com
Client ID

The Application (client) ID shown on the app registration's Overview page in the Microsoft Entra admin center; see Register an application.

Client Secret

The client secret value generated under Certificates & secrets on the app registration in the Microsoft Entra admin center; see Add a client secret.

Scopes

Space-separated Microsoft Graph permission scopes to request. Add each scope under API permissions on the app registration in the Microsoft Entra admin center; see the Microsoft Graph permissions reference.

Sites.ReadWrite.All Sites.Manage.All offline_access
SourceSharePoint
Token URL

The OAuth 2.0 token endpoint of the Microsoft identity platform. Replace common with the directory (tenant) ID to restrict sign-in to one tenant. Find it on the app registration's Endpoints page in the Microsoft Entra admin center; see Endpoints.

https://login.microsoftonline.com/common/oauth2/v2.0/token

OAuth 2.0 Client Credentials​

key: oauthClientCredentials

Prerequisites​

  • A licensed instance of Microsoft SharePoint
  • Permission to create an app registration and grant admin consent in the Microsoft Entra tenant

Setup Steps​

  1. Create an app registration in Microsoft Entra by following the steps in the OAuth 2.0 (Deprecated) connection guide
  2. Configure the following Microsoft Graph Application permissions for app only authentication:

Site Operations:

  • Sites.Read.All - Read items in all site collections
  • Sites.ReadWrite.All - Read and write items in all site collections
  • Sites.Manage.All - Create, edit, and delete items and lists in all site collections
  • Sites.FullControl.All - Full control of all site collections

File Operations:

  • Files.Read.All - Read files in all site collections
  • Files.ReadWrite.All - Read and write files in all site collections

List Operations:

  • Sites.ReadWrite.All - Required for list operations
  • Sites.Manage.All - For creating and managing lists

User and Group Access:

  • User.Read.All - Read all users' profiles
  • Group.Read.All - Read all groups
  1. Grant admin consent for all configured permissions
  2. Navigate to Certificates & Secrets in the app registration
  3. Select the Client secrets tab
  4. Click New client secret
  5. Provide a description and select expiration period
  6. Click Add
  7. Copy the secret Value immediately; it cannot be retrieved later

Configure the Connection​

Create a connection of type OAuth 2.0 Client Credentials:

  • Base URL: Keep the default https://graph.microsoft.com, or enter the Microsoft Graph root endpoint for the national cloud the tenant uses
  • Microsoft Entra ID Endpoint: Keep the default https://login.microsoftonline.com, or enter the token service endpoint for the national cloud the tenant uses
  • Tenant: Directory (tenant) ID or tenant name from the app registration
  • Client ID: Application ID from app registration
  • Client Secret: Secret value created above
  • Scopes: https://graph.microsoft.com/.default for application permissions (the default)
InputNotesExample
Base URL

The base URL for the Microsoft Graph API. Depending on your cloud environment, you can choose the correct one here.

https://graph.microsoft.com
Client ID

Client Id of your Azure application.

11111111-2222-3333-4444-555555555555
Client Secret

Client Secret generated under 'Certificates & Secrets' in your Azure application.

11111111-2222-3333-4444-555555555555
Microsoft Entra ID Endpoint

The Microsoft Entra ID endpoint for the Microsoft Graph API. You can find this in the Azure portal or here.

https://login.microsoftonline.com
Scopes

Microsoft Graph API Scopes.

https://graph.microsoft.com/.default
Tenant

The tenant ID or name for the Microsoft Graph API. This is the ID or name of the tenant that you are connecting to.

11111111-2222-3333-4444-555555555555
Token URL

Provide a tenant specific OAuth 2.0 token endpoint.

{{#entraIdEndpoint}}/{{#tenant}}/oauth2/v2.0/token

OAuth 2.0 Authorization Code​

key: sharepointTemplatedOauth

The templated OAuth flow enables user authentication with SharePoint to access data on their behalf.

Prerequisites​

Setup Steps​

  1. Create an app registration in Microsoft Entra by following the steps in the OAuth 2.0 (Deprecated) connection guide
  2. Configure Microsoft Graph Delegated permissions in the app registration:
    • Select all permissions required for the integration
    • Grant admin consent for the organization
    • Include offline_access scope for refresh token support
  3. Navigate to Certificates & Secrets in the app registration
  4. Click New client secret
  5. Provide a description and select expiration period
  6. Click Add
  7. Copy the secret Value (not the Secret ID)

Configure the Connection​

Create a connection of type OAuth 2.0 Authorization Code:

  • Base URL: Keep the default https://graph.microsoft.com, or enter the Microsoft Graph root endpoint for the national cloud the tenant uses
  • Tenant URL: For single-tenant apps, set Tenant URL to login.microsoftonline.com/{tenant-id} (default login.microsoftonline.com/common).
  • Scopes: Space-separated permission scopes. The default is Sites.ReadWrite.All Sites.Manage.All offline_access
  • Client ID: Application ID from app registration
  • Client secret value: Secret value created above
  • Additional Authorization Parameters: Optional query string parameters appended to the authorization URL, such as prompt=consent

Microsoft requires Azure AD app registrations used in multi-tenant deployments to complete a publisher verification process. This review confirms the app developer's identity, giving end users confidence that they are authorizing a legitimate, verified application.

Azure AD app registrations have two distinct verification concepts that affect how users experience the authentication flow.

Publisher Verification​

Complete publisher verification before deploying to end users. Without it, the Microsoft consent screen displays "Unverified" next to the app name. This reduces user trust and may prevent users in organizations with strict Azure AD policies from being able to authorize the app at all.

To verify the publisher:

  1. Ensure the organization has a Microsoft Partner Network (MPN) account
  2. In the Microsoft Entra Admin Center, open the app registration
  3. Under Branding & properties, click Add a verified publisher
  4. Enter the MPN ID and confirm

Once verified, the consent screen displays the organization name with a verified badge instead of "Unverified."

Apps requesting application permissions (permissions that act without a signed-in user) or high-privilege delegated permissions require admin consent before any user in a Microsoft 365 tenant can authenticate. Without admin consent, users see a "Need admin approval" error. Delegated permissions rarely need admin consent unless classified as high privilege; see the Microsoft Graph permissions reference to check which do.

A tenant administrator can grant consent using either method:

Method 1: Admin Consent URL

Navigate to the following URL, replacing {tenant} with the Directory tenant ID and {client_id} with the Application client ID:

https://login.microsoftonline.com/{tenant}/adminconsent?client_id={client_id}

Method 2: Microsoft Entra Admin Center

  1. Navigate to Microsoft Entra Admin Center → Enterprise applications
  2. Select the app registration
  3. Under Permissions, click Grant admin consent for [organization name]
InputNotesExample
Authorize URL

The OAuth 2.0 Authorization URL for Microsoft's Graph API.

login.microsoftonline.com/common
Base URL

The base URL for the Microsoft Graph API. Depending on your cloud environment, you can choose the correct one here.

https://graph.microsoft.com
Client ID

Client Id of your Azure application.

11111111-2222-3333-4444-555555555555
Client secret value

Client Secret generated under 'Certificates & Secrets' in your Azure application.

11111111-2222-3333-4444-555555555555
Additional Authorization Parameters

Query string parameters to append to the OAuth authorization URL. Common parameters include prompt=consent to force the consent screen or login_hint=user@example.com to pre-fill the login email.

prompt=consent
Scopes

Microsoft Graph API permission scopes are set on the OAuth application.

Sites.ReadWrite.All Sites.Manage.All offline_access
SourceSharePoint
Tenant URL

The tenant URL for the Microsoft Graph API. This is the URL of the tenant that you are connecting to. You can find this in the Azure portal or here.

login.microsoftonline.com/common
Token URL

The OAuth 2.0 Token URL for Microsoft's Graph API.

login.microsoftonline.com/common

Triggers​

Drive Item Changes​

Checks for new and updated items in a specified SharePoint drive on a configured schedule. | key: drivePollingTrigger

InputNotesExample
Connection

The Microsoft SharePoint connection to use.

Drive ID

The unique identifier of a SharePoint drive.

b!WumF-zsD8ku93Y0QqhKM9jVTjPefo6RGrpVCkPpe547Qrf38sox_TYIFuj9sqJhv
Site ID

The unique identifier of a SharePoint site.

contoso.sharepoint.com,2c712604-1370-44e7-a1f5-426573fda80a,2d2244c3-251a-49ea-93a8-39e1c3a060fe

Checks for new and updated items in a specified SharePoint drive on a configured schedule.

This trigger monitors a single drive for file and folder changes using Microsoft Graph's delta tracking. For monitoring all drives in a site, use the Site Item Changes trigger. For monitoring a specific folder within a drive, use the Folder Item Changes trigger.

How It Works​

  1. Run on the configured schedule (e.g., every 5 minutes)
  2. Query the Microsoft Graph delta endpoint for the specified drive
  3. Categorize items as "added", "updated", or "deleted" based on their properties and timestamps
  4. Maintain delta tracking state automatically to efficiently track changes between polls

The trigger uses Microsoft Graph's delta query functionality to track changes efficiently without scanning all items on each poll.

On the first recurrence there is no stored delta link, so Microsoft Graph returns the full current state and the trigger emits every existing item once. There is no history to seed, so the trigger has no look-back input. Later recurrences emit only changes since the previous one.

Batching

Batching is enabled per flow on this trigger: each changed record is dispatched as its own execution, or grouped by the configured batch size. Batch size and batch concurrency can both be overridden per instance. Raising concurrency increases the request volume sent to Microsoft Graph.

To turn it on, select the flow's trigger, open the Flow control tab, and switch on Enable Batching. Under Batch Size, keep Trigger default or choose Custom batch size. Batch Concurrency is optional; leave it blank for no batch-level limit.

With batching on, the trigger reads one page of the drive's delta feed per round and is called again until the walk is complete, so a large first recurrence is delivered over several rounds instead of in one payload. The new delta link is stored only once the last page has been read, and the position reached is saved after every round, so a recurrence that stops partway resumes where the walk stopped. Microsoft Graph can return the same item on more than one page, so with batching on an item can occasionally arrive in two executions, the later one carrying its newer state. With batching on, if Microsoft Graph can no longer serve a stored delta link or page (HTTP 410 Gone), the trigger restarts the walk from the beginning, which emits every existing item again, as on the first recurrence. With batching off, each recurrence still reads every page in one execution.

With batching off, a downstream step reads body.data.deleted, body.data.added and body.data.updated. With batching on those fields do not exist: each execution receives one { "changeType": "deleted" | "added" | "updated", "record": <drive item> } item, or an array of them when the batch size is greater than 1. Any step reading the older shape must be updated before batching is enabled. Because batching is enabled per flow, the change is scoped to that flow rather than to the component or to other flows using the same trigger.

Returned Data​

With batching off, the trigger returns changes with separate arrays for added, updated, and deleted items. Fields shown are representative. The full response object includes additional properties.

Example Response
{
"data": {
"added": [
{
"id": "01BYE5RZ6QN3ZWBTUFOFD3GSPGOHDJD36K",
"name": "NewReport.xlsx",
"createdDateTime": "2024-12-09T10:30:00Z",
"lastModifiedDateTime": "2024-12-09T10:30:00Z",
"size": 25600,
"file": {
"mimeType": "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"
},
"parentReference": {
"driveId": "b!WumF-zsD8ku93Y0QqhKM9jVTjPefo6RGrpVCkPpe547Qrf38sox_TYIFuj9sqJhv",
"id": "01BYE5RZROOT",
"path": "/drive/root:"
},
"webUrl": "https://contoso.sharepoint.com/Shared Documents/NewReport.xlsx"
}
],
"updated": [
{
"id": "01BYE5RZ5MYLM2SMX75ZBIPQZIHT93ZEPC",
"name": "ProjectPlan.docx",
"createdDateTime": "2024-12-08T09:15:00Z",
"lastModifiedDateTime": "2024-12-09T14:22:00Z",
"size": 45200,
"file": {
"mimeType": "application/vnd.openxmlformats-officedocument.wordprocessingml.document"
},
"parentReference": {
"driveId": "b!WumF-zsD8ku93Y0QqhKM9jVTjPefo6RGrpVCkPpe547Qrf38sox_TYIFuj9sqJhv",
"id": "01BYE5RZROOT",
"path": "/drive/root:"
},
"webUrl": "https://contoso.sharepoint.com/Shared Documents/ProjectPlan.docx"
}
],
"deleted": [
{
"id": "01BYE5RZ7H3LGDF7C5FJHMLBN22O3ORUIX",
"deleted": {}
}
]
}
}
Example Payload for Drive Item Changes⤓
Loading…

Drive Subscription​

Receive webhook notifications from SharePoint drives. Automatically creates and manages a webhook subscription when the instance is deployed, and removes the subscription when the instance is deleted. Supports scheduled renewal to keep the subscription active. | key: instanceDeployWebhook

InputNotesExample
Change Type

The type of changes that should generate notifications. Common values: updated, created, deleted.

updated
Client State

Optional validation token sent with each notification. Use to verify notifications originate from Microsoft Graph.

client-specific string
Connection

The Microsoft SharePoint connection to use.

Expiration Date Time

Optional expiration date/time for the subscription. If not provided, defaults to about 7 days from now. Set a schedule on the trigger to renew the subscription before it expires. Maximum is just under 30 days (42,300 minutes) for SharePoint/OneDrive resources.

2018-01-01T11:23:00.000Z
Resource

The Microsoft Graph resource path to monitor. Examples: /me/drive/root, /sites/{site-id}/drive/root, /drives/{drive-id}/root

/me/drive/root

SharePoint supports webhook notifications through the Microsoft Graph API with automatic subscription lifecycle management. This trigger automatically creates and manages webhook subscriptions, eliminating the need for manual subscription creation.

When an integration instance is deployed, the trigger creates a webhook subscription with Microsoft Graph. When the instance is deleted, the subscription is automatically removed. When the trigger runs on a schedule, it renews the subscription before it expires, extending it to the 42,300-minute maximum. This lifecycle management ensures subscriptions stay synchronized with active integrations.

For manual webhook configuration without automatic lifecycle management, use the Webhook trigger instead.

Configuration​

Configure the trigger using these inputs:

  • Connection: Microsoft SharePoint connection for authentication
  • Resource: The Microsoft Graph resource path to monitor for changes
    • Examples: /me/drive/root, /sites/{site-id}/drive/root, /drives/{drive-id}/root
  • Change Type: The type of changes to monitor. Drive root items and lists support only updated.
  • Client State: Optional validation token included in each notification to verify the source
  • Expiration Date Time: Optional expiration for the subscription (defaults to about 7 days if not provided)
    • Maximum is just under 30 days (42,300 minutes) for SharePoint and OneDrive resources
    • Set a schedule on the trigger to renew the subscription before it expires (see Keeping the Subscription Active)

How It Works​

The trigger manages webhook subscriptions through a complete lifecycle:

On Instance Deploy:

  1. Creates a webhook subscription using the Microsoft Graph Subscriptions API
  2. Subscribes to the specified resource path with the configured change types
  3. Sets the subscription expiration: about 7 days by default, and at most just under 30 days (42,300 minutes) for SharePoint resources
  4. Registers the flow's webhook URL for Microsoft Graph lifecycle notifications
  5. Microsoft validates the webhook endpoint by sending a validation token
  6. The trigger responds with the token to complete subscription creation

On a redeploy, the trigger creates a new subscription from the current inputs and connection, then removes the previous one, so a changed Resource, Change Type, Client State, or connection takes effect. If Microsoft Graph refuses to delete the previous subscription, for example because it belongs to another account than the new connection, both subscriptions deliver notifications until the old one is deleted: the trigger retries the delete on every later deploy and when the instance is deleted, and Microsoft Graph removes the old subscription when it expires.

On Webhook Notification:

  • Microsoft posts notification payloads when monitored resources change
  • The trigger validates the clientState (if configured) and logs a warning on a mismatch
  • Notifications are routed to the appropriate branch for processing

On Scheduled Execution:

  • Extends the subscription expiration to 10 minutes under the Microsoft Graph maximum for drive and list resources (42,300 minutes, just under 30 days)
  • Creates a new subscription if the previous one has already expired

On Lifecycle Notification:

  • Renews the subscription to just under the 42,300-minute maximum when Microsoft Graph asks for reauthorization, and creates a replacement subscription if that renewal fails
  • Creates a new subscription if Microsoft Graph reports that the subscription was removed
  • Passes missed notices to the flow so it can run a delta query
  • For drive and list resources Microsoft Graph currently sends only reauthorizationRequired; the trigger also handles subscriptionRemoved and missed if they arrive
  • A lifecycle notice whose clientState does not match the configured Client State is acknowledged with HTTP 202, but the trigger takes no action on it

On Instance Deletion:

  • Automatically deletes the webhook subscription from Microsoft Graph
  • Cleans up all subscription resources to prevent orphaned subscriptions

Keeping the Subscription Active​

Microsoft Graph subscriptions expire. Without renewal, notifications stop about 7 days after deployment, or at the configured expiration. To keep notifications flowing:

  1. Configure the trigger with a schedule (for example, daily)
  2. Scheduled executions route to the Scheduled Renewal branch
  3. The trigger extends the subscription to just under the 42,300-minute maximum on each run, so any schedule shorter than that keeps it active, and recreates the subscription if it has already lapsed

Microsoft Graph also sends reauthorizationRequired lifecycle notifications to the flow's webhook URL, which the trigger answers by renewing the subscription. Microsoft documents that these notifications do not replace renewal, so the schedule remains the reliable way to keep a subscription active.

Event Types​

Available Events (1)
EventBranchDescription
updatedNotificationSent when an item in the monitored drive or list changes. Drive root items and lists support only this change type.
Lifecycle Events (3)
EventBranchDescription
reauthorizationRequiredLifecycle EventMicrosoft Graph asks for the subscription to be reauthorized. The trigger renews it, or creates a replacement if the renewal fails.
subscriptionRemovedLifecycle EventMicrosoft Graph removed the subscription. The trigger creates a new one.
missedLifecycle EventSome change notifications were not delivered. The trigger passes the notice to the flow; run a delta query to catch up.

For drive and list resources Microsoft Graph currently sends only reauthorizationRequired; the other two are handled if they arrive. See the lifecycle notifications guide.

Branches​

The trigger uses four branches to handle different webhook events:

URL Validation - Handles Microsoft's endpoint validation:

  • Triggered when Microsoft validates the webhook endpoint during subscription creation
  • Extracts the validationToken query parameter
  • Returns the token in a plain text response (required by Microsoft)

Notification - Handles actual change notifications:

  • Triggered when SharePoint sends change event payloads
  • Validates clientState if configured (logs a warning on mismatch; the notification still reaches this branch)
  • Passes the payload to the integration flow for processing

Scheduled Renewal - Handles scheduled executions:

  • Triggered when the trigger runs on its configured schedule
  • Renews the subscription, or creates a new one if none remains
  • No steps are required on this branch

Lifecycle Event - Handles Microsoft Graph lifecycle notifications:

  • Triggered when Microsoft Graph posts a lifecycle notice. For drive and list resources Graph currently sends only reauthorizationRequired; subscriptionRemoved and missed are handled if they arrive
  • Renews or recreates the subscription as needed, then responds with HTTP 202
  • A notice whose clientState does not match the configured Client State is acknowledged with HTTP 202 and reaches this branch, but the trigger does not renew or recreate the subscription for it. It never reaches the Notification branch
  • Passes the lifecycle payload to the flow; a missed notice means some change notifications were not delivered and a delta query should be run

Returned Data​

The trigger returns the raw webhook payload containing change notifications:

Example Notification Payload
{
"value": [
{
"subscriptionId": "7f105c7d-2dc5-4530-97cd-4e7ae6534c07",
"subscriptionExpirationDateTime": "2024-12-15T18:23:45.9356913Z",
"changeType": "updated",
"resource": "drives/{drive-id}/root",
"resourceData": {
"@odata.type": "#Microsoft.Graph.driveItem",
"@odata.id": "drives/{drive-id}/items/{item-id}",
"id": "{item-id}"
},
"clientState": "optional-validation-token"
}
]
}

On the Lifecycle Event branch, the payload describes the subscription rather than a changed resource:

Example Lifecycle Notification Payload
{
"value": [
{
"subscriptionId": "7f105c7d-2dc5-4530-97cd-4e7ae6534c07",
"subscriptionExpirationDateTime": "2024-12-15T18:23:45.9356913Z",
"tenantId": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"clientState": "optional-validation-token",
"lifecycleEvent": "reauthorizationRequired"
}
]
}

Best Practices​

  • Subscription Renewal: Subscriptions expire after about 7 days by default and after just under 30 days (42,300 minutes) at most. Configure the trigger with a schedule (for example, daily) so it renews the subscription before it expires. Each renewal extends the subscription to the 42,300-minute maximum, so any schedule shorter than that keeps it active.
  • Client State Validation: Configure a unique Client State value. Lifecycle notices with a mismatched value are ignored, and change notifications with a mismatched value are logged as a warning.
Example Payload for Drive Subscription⤓
Loading…

Folder Item Changes​

Checks for new and updated items in a specified folder within a SharePoint drive on a configured schedule. | key: folderPollingTrigger

InputNotesExample
Connection

The Microsoft SharePoint connection to use.

Drive ID

The unique identifier of a SharePoint drive.

b!WumF-zsD8ku93Y0QqhKM9jVTjPefo6RGrpVCkPpe547Qrf38sox_TYIFuj9sqJhv
Folder ID

The ID of the folder to monitor for changes.

01Q7VXAXZW7LCB32ODBRCKZNSJIC544FXU
Include Subfolders

When true, changes in subfolders will also be tracked recursively.

false
Site ID

The unique identifier of a SharePoint site.

contoso.sharepoint.com,2c712604-1370-44e7-a1f5-426573fda80a,2d2244c3-251a-49ea-93a8-39e1c3a060fe

Checks for new and updated items in a specified folder within a SharePoint drive on a configured schedule.

This trigger monitors a single folder for file and folder changes using Microsoft Graph's delta tracking. For monitoring an entire drive, use the Drive Item Changes trigger. For monitoring all drives in a site, use the Site Item Changes trigger.

How It Works​

  1. Run on the configured schedule (e.g., every 5 minutes)
  2. Query the Microsoft Graph delta endpoint for the specified drive
  3. Filter results to include only items within the specified folder (direct children or the folder itself)
  4. Categorize items as "added", "updated", or "deleted" based on their properties and timestamps
  5. Maintain delta tracking state automatically to efficiently track changes between polls

The trigger uses Microsoft Graph's delta query functionality to track changes efficiently. Although delta queries operate at the drive level, this trigger filters results to return only changes within the specified folder.

On the first recurrence there is no stored delta link, so Microsoft Graph returns the full current state and the trigger emits every existing item in the folder once. There is no history to seed, so the trigger has no look-back input. Later recurrences emit only changes since the previous one.

Batching

Batching is enabled per flow on this trigger: each changed record is dispatched as its own execution, or grouped by the configured batch size. Batch size and batch concurrency can both be overridden per instance. Raising concurrency increases the request volume sent to Microsoft Graph.

To turn it on, select the flow's trigger, open the Flow control tab, and switch on Enable Batching. Under Batch Size, keep Trigger default or choose Custom batch size. Batch Concurrency is optional; leave it blank for no batch-level limit.

With batching on, the trigger reads one page of the drive's delta feed per round, keeps the items in the folder, and is called again until the walk is complete, so a large first recurrence is delivered over several rounds instead of in one payload. The new delta link is stored only once the last page has been read, and the position reached is saved after every round, so a recurrence that stops partway resumes where the walk stopped. Microsoft Graph can return the same item on more than one page, so with batching on an item can occasionally arrive in two executions, the later one carrying its newer state. With batching on, if Microsoft Graph can no longer serve a stored delta link or page (HTTP 410 Gone), the trigger restarts the walk from the beginning, which emits every existing item again, as on the first recurrence. With batching off, each recurrence still reads every page in one execution.

With batching off, a downstream step reads body.data.deleted, body.data.added and body.data.updated. With batching on those fields do not exist: each execution receives one { "changeType": "deleted" | "added" | "updated", "record": <drive item> } item, or an array of them when the batch size is greater than 1. Any step reading the older shape must be updated before batching is enabled. Because batching is enabled per flow, the change is scoped to that flow rather than to the component or to other flows using the same trigger.

Returned Data​

With batching off, the trigger returns changes with separate arrays for added, updated, and deleted items. Fields shown are representative. The full response object includes additional properties.

Example Response
{
"data": {
"added": [
{
"id": "01BYE5RZ6QN3ZWBTUFOFD3GSPGOHDJD36K",
"name": "NewReport.xlsx",
"createdDateTime": "2024-12-09T10:30:00Z",
"lastModifiedDateTime": "2024-12-09T10:30:00Z",
"size": 25600,
"file": {
"mimeType": "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"
},
"parentReference": {
"driveId": "b!WumF-zsD8ku93Y0QqhKM9jVTjPefo6RGrpVCkPpe547Qrf38sox_TYIFuj9sqJhv",
"id": "01BYE5RZ5MYLM2SMX75ZBIPQZIHT93ZEPC",
"path": "/drive/root:/Reports"
},
"webUrl": "https://contoso.sharepoint.com/Shared Documents/Reports/NewReport.xlsx"
}
],
"updated": [
{
"id": "01BYE5RZ5MYLM2SMX75ZBIPQZIHT93ZEPC",
"name": "Reports",
"createdDateTime": "2024-11-01T08:00:00Z",
"lastModifiedDateTime": "2024-12-09T10:30:00Z",
"folder": {
"childCount": 5
},
"parentReference": {
"driveId": "b!WumF-zsD8ku93Y0QqhKM9jVTjPefo6RGrpVCkPpe547Qrf38sox_TYIFuj9sqJhv",
"id": "01BYE5RZROOT",
"path": "/drive/root:"
},
"webUrl": "https://contoso.sharepoint.com/Shared Documents/Reports"
}
],
"deleted": [
{
"id": "01BYE5RZ7H3LGDF7C5FJHMLBN22O3ORUIX",
"deleted": {}
}
]
}
}
Example Payload for Folder Item Changes⤓
Loading…

Site Item Changes​

Checks for new and updated items across all drives in a SharePoint site on a configured schedule. | key: pollSiteChanges

InputNotesExample
Connection

The Microsoft SharePoint connection to use.

Site ID

The unique identifier of a SharePoint site.

contoso.sharepoint.com,2c712604-1370-44e7-a1f5-426573fda80a,2d2244c3-251a-49ea-93a8-39e1c3a060fe

Checks for new and updated items across all drives in a SharePoint site on a configured schedule.

This trigger monitors all drives within a site for file and folder changes using Microsoft Graph's delta tracking. For monitoring a specific drive or folder, use the Drive Item Changes or Folder Item Changes triggers instead.

How It Works​

  1. Run on the configured schedule (e.g., every 5 minutes)
  2. Retrieve all drives in the specified SharePoint site
  3. For each drive, query the Microsoft Graph delta endpoint to detect changes
  4. Categorize items as "added", "updated", or "deleted" based on their properties and timestamps
  5. Maintain delta tracking state automatically for each drive to efficiently track changes between polls

The trigger uses Microsoft Graph's delta query functionality to track changes efficiently without scanning all items on each poll.

On the first recurrence there is no stored delta link, so Microsoft Graph returns the full current state and the trigger emits every existing item once. There is no history to seed, so the trigger has no look-back input. Later recurrences emit only changes since the previous one.

Batching

Batching is enabled per flow on this trigger: each changed record is dispatched as its own execution, or grouped by the configured batch size. Batch size and batch concurrency can both be overridden per instance. Raising concurrency increases the request volume sent to Microsoft Graph.

To turn it on, select the flow's trigger, open the Flow control tab, and switch on Enable Batching. Under Batch Size, keep Trigger default or choose Custom batch size. Batch Concurrency is optional; leave it blank for no batch-level limit.

With batching on, the trigger reads one page per round from one drive at a time, moving through the site's drives in turn and passing over drives with no changes in the same round, and is called again until every drive's walk is complete, so a large first recurrence is delivered over several rounds instead of in one payload. Each drive keeps its own delta link. The new delta link is stored only once the last page has been read, and the position reached is saved after every round, so a recurrence that stops partway resumes where the walk stopped. Microsoft Graph can return the same item on more than one page, so with batching on an item can occasionally arrive in two executions, the later one carrying its newer state. With batching on, if Microsoft Graph can no longer serve a stored delta link or page (HTTP 410 Gone), the trigger restarts the walk from the beginning, which emits every existing item again, as on the first recurrence. With batching off, each recurrence still reads every page in one execution.

With batching off, a downstream step reads body.data, keyed by drive display name, where each value holds deleted, added and updated arrays. With batching on those fields do not exist: each execution receives one { "changeType": "deleted" | "added" | "updated", "record": <drive item> } item, or an array of them when the batch size is greater than 1. A batched item does not carry the drive display name; the record's parentReference.driveId identifies the drive. Any step reading the older shape must be updated before batching is enabled. Because batching is enabled per flow, the change is scoped to that flow rather than to the component or to other flows using the same trigger.

Returned Data​

With batching off, the trigger returns changes grouped by drive name, with separate arrays for added, updated, and deleted items. Fields shown are representative. The full response object includes additional properties.

Example Response
{
"data": {
"Documents": {
"added": [
{
"id": "01BYE5RZ6QN3ZWBTUFOFD3GSPGOHDJD36K",
"name": "NewReport.xlsx",
"createdDateTime": "2024-12-09T10:30:00Z",
"lastModifiedDateTime": "2024-12-09T10:30:00Z",
"size": 25600,
"webUrl": "https://contoso.sharepoint.com/sites/TeamSite/Documents/NewReport.xlsx"
}
],
"updated": [
{
"id": "01BYE5RZ5MYLM2SMX75ZBIPQZIHT93ZEPC",
"name": "ProjectPlan.docx",
"createdDateTime": "2024-12-08T09:15:00Z",
"lastModifiedDateTime": "2024-12-09T14:22:00Z",
"size": 45200,
"webUrl": "https://contoso.sharepoint.com/sites/TeamSite/Documents/ProjectPlan.docx"
}
],
"deleted": [
{
"id": "01BYE5RZ7H3LGDF7C5FJHMLBN22O3ORUIX",
"deleted": {}
}
]
},
"Archive": {
"added": [],
"updated": [
{
"id": "01BYE5RZ2OWGDLHOQ2JBHYOJH7CJEQK234",
"name": "Archive2024.zip",
"createdDateTime": "2024-11-15T08:00:00Z",
"lastModifiedDateTime": "2024-12-09T11:05:00Z",
"size": 1048576,
"webUrl": "https://contoso.sharepoint.com/sites/TeamSite/Archive/Archive2024.zip"
}
],
"deleted": []
}
}
}
Example Payload for Site Item Changes⤓
Loading…

Webhook​

Receive and validate webhook requests from SharePoint for manually configured webhook subscriptions. | key: webhook

SharePoint supports webhook notifications that can be manually configured using the Microsoft Graph API. This trigger receives and processes webhook requests from SharePoint, handling both URL validation and notification events.

For automatic webhook subscription management (recommended for most use cases), use the Drive Subscription trigger instead, which creates and manages subscriptions automatically.

Configuration​

Configure SharePoint webhooks manually using the Microsoft Graph Subscriptions API:

  1. Create a subscription using the Graph API by sending a POST request to /subscriptions
  2. Specify the resource to monitor (e.g., /sites/{siteId}/lists/{listId})
  3. Set the notificationUrl to the webhook URL provided by the integration instance
  4. Set changeType to updated (the only change type lists and drive root items support)
  5. Set an expiration date/time (maximum 42,300 minutes, under 30 days, for SharePoint lists and drive items)

Event Types​

Available Events (1)
EventDescription
updatedSent when an item in the monitored list or drive changes. Lists and drive root items support only this change type.

See the Microsoft Graph subscription resource for supported resources and subscription lifetimes.

How It Works​

The trigger processes incoming webhook requests on two branches:

URL Validation - When Microsoft validates the webhook endpoint:

  • Microsoft sends a validation request with a validationToken query parameter
  • The trigger extracts the token and returns it in a plain text response
  • This occurs during subscription creation and is required by Microsoft

Notification - When SharePoint sends change notifications:

  • Microsoft posts notification payloads containing change events
  • The trigger passes the payload to the integration flow for processing
  • Notifications include resource changes based on the subscription configuration

Returned Data​

The trigger returns the raw webhook payload, which varies based on the subscribed resource and change types:

Example Notification Payload
{
"value": [
{
"subscriptionId": "7f105c7d-2dc5-4530-97cd-4e7ae6534c07",
"subscriptionExpirationDateTime": "2024-12-15T18:23:45.9356913Z",
"changeType": "updated",
"resource": "sites/{siteId}/lists/{listId}",
"resourceData": {
"@odata.type": "#Microsoft.Graph.List",
"@odata.id": "sites/{siteId}/lists/{listId}",
"id": "{listId}"
},
"clientState": "optional-client-state-value"
}
]
}
Example Payload for Webhook⤓
Loading…

Data Sources​

List Drives​

A picklist of drives for a given site. | key: listDrives | type: picklist

InputNotesExample
Connection

The Microsoft SharePoint connection to use.

Site ID

The unique identifier of a SharePoint site.

contoso.sharepoint.com,2c712604-1370-44e7-a1f5-426573fda80a,2d2244c3-251a-49ea-93a8-39e1c3a060fe
Example Payload for List Drives⤓
Loading…

List Folders from Source​

A picklist of folders in the root of the specified drive. | key: listFolders | type: picklist

InputNotesExample
Connection

The Microsoft SharePoint connection to use.

Drive ID

The unique identifier of a SharePoint drive.

b!WumF-zsD8ku93Y0QqhKM9jVTjPefo6RGrpVCkPpe547Qrf38sox_TYIFuj9sqJhv
Example Payload for List Folders from Source⤓
Loading…

List Items in Site List​

A picklist of items in a given site list. | key: listItemsInSiteList | type: picklist

InputNotesExample
Connection

The Microsoft SharePoint connection to use.

List ID

The unique identifier of a SharePoint site list.

48bf81d7-2d37-40a9-b47b-c1d1960d0f87
Site ID

The unique identifier of a SharePoint site.

contoso.sharepoint.com,2c712604-1370-44e7-a1f5-426573fda80a,2d2244c3-251a-49ea-93a8-39e1c3a060fe
Example Payload for List Items in Site List⤓
Loading…

List Sites from SharePoint​

A picklist of sites in the tenant. | key: listSites | type: picklist

InputNotesExample
Connection

The Microsoft SharePoint connection to use.

Example Payload for List Sites from SharePoint⤓
Loading…

List Subscriptions​

A picklist of Microsoft Graph subscriptions for the connection. | key: listSubscriptions | type: picklist

InputNotesExample
Connection

The Microsoft SharePoint connection to use.

Example Payload for List Subscriptions⤓
Loading…

Select Drives from Sites​

Select one or many drives from the specified sites. | key: selectDrivesFromSites | type: objectSelection

InputNotesExample
Connection

The Microsoft SharePoint connection to use.

Site IDs

The SharePoint sites whose drives populate the list. Accepts a single site ID, a list of site IDs, or a selection of sites.

contoso.sharepoint.com,2c712604-1370-44e7-a1f5-426573fda80a,2d2244c3-251a-49ea-93a8-39e1c3a060fe
Example Payload for Select Drives from Sites⤓
Loading…

Select Folders from Drives​

Select one or many top-level folders from the specified drives. Each key is the drive ID and the folder ID joined by a colon. | key: selectFoldersFromDrives | type: objectSelection

InputNotesExample
Connection

The Microsoft SharePoint connection to use.

Drive IDs

The SharePoint drives whose top-level folders populate the list. Accepts a single drive ID, a list of drive IDs, or a selection of drives.

b!WumF-zsD8ku93Y0QqhKM9jVTjPefo6RGrpVCkPpe547Qrf38sox_TYIFuj9sqJhv
Example Payload for Select Folders from Drives⤓
Loading…

Select Site List​

A picklist of lists in a given site. | key: selectSiteList | type: picklist

InputNotesExample
Connection

The Microsoft SharePoint connection to use.

Site ID

The unique identifier of a SharePoint site.

contoso.sharepoint.com,2c712604-1370-44e7-a1f5-426573fda80a,2d2244c3-251a-49ea-93a8-39e1c3a060fe
Example Payload for Select Site List⤓
Loading…

Select Sites​

Select one or many SharePoint sites. | key: selectSites | type: objectSelection

InputNotesExample
Connection

The Microsoft SharePoint connection to use.

Example Payload for Select Sites⤓
Loading…

Actions​

Check Item Exists​

Check if a file or folder exists in a SharePoint drive. | key: checkItemExists

InputNotesExample
Connection

The Microsoft SharePoint connection to use.

Drive ID

Provide the id of the drive to check the item in.

b!WumF-zsD8ku93Y0QqhKM9jVTjPefo6RGrpVCkPpe547Qrf38sox_TYIFuj9sqJhv
Item Path

Provide the path to the file or folder, relative to the drive root.

MyFolder/example.txt
Site ID

Provide the id of the site to check the item in.

contoso.sharepoint.com,2c712604-1370-44e7-a1f5-426573fda80a,2d2244c3-251a-49ea-93a8-39e1c3a060fe
Example Payload for Check Item Exists⤓
Loading…

Create Folder​

Create a Folder in a Drive. | key: createFolder

InputNotesExample
Connection

The Microsoft SharePoint connection to use.

Drive ID

Provide the id of the drive to create the folder in.

b!WumF-zsD8ku93Y0QqhKM9jVTjPefo6RGrpVCkPpe547Qrf38sox_TYIFuj9sqJhv
Folder Name

Provide the name of the new folder.

MyFolder
Parent Item ID

Provide the id of the parent element to create the folder in.

root
Site ID

Provide the id of the site to create the folder in.

contoso.sharepoint.com,2c712604-1370-44e7-a1f5-426573fda80a,2d2244c3-251a-49ea-93a8-39e1c3a060fe
Example Payload for Create Folder⤓
Loading…

Create Item in Site List​

Create a new item inside the given site list. | key: createItemInSite

InputNotesExample
Connection

The Microsoft SharePoint connection to use.

Fields

Key-value pairs to set as properties on the list item. Each key represents a field name and its corresponding value.

List ID

The unique identifier of a SharePoint site list.

48bf81d7-2d37-40a9-b47b-c1d1960d0f87
Site ID

The unique identifier of a SharePoint site.

contoso.sharepoint.com,2c712604-1370-44e7-a1f5-426573fda80a,2d2244c3-251a-49ea-93a8-39e1c3a060fe
Example Payload for Create Item in Site List⤓
Loading…

Create Site List Subscription​

Create a Site List subscription for Microsoft SharePoint. | key: createSiteListSubscription

InputNotesExample
Allow Duplicates

When true, allows creating multiple subscriptions for the same endpoint.

false
Connection

The Microsoft SharePoint connection to use.

Expiration Date/Time

Expiration date/time for subscription. If unspecified the default will be the current date/time plus 29 days (close to the maximum permitted by the Graph API).

2026-01-01T11:23:00.000Z
List ID

The unique identifier of a SharePoint site list.

48bf81d7-2d37-40a9-b47b-c1d1960d0f87
Notification URL

The URL where Microsoft Graph will deliver webhook notifications when changes occur.

https://contoso.azurewebsites.net/api/webhook-receiver
Site ID

The unique identifier of a SharePoint site.

contoso.sharepoint.com,2c712604-1370-44e7-a1f5-426573fda80a,2d2244c3-251a-49ea-93a8-39e1c3a060fe
Example Payload for Create Site List Subscription⤓
Loading…

Create Subscription​

Create a subscription that sends notifications of changes to a resource. | key: createSubscription

InputNotesExample
Allow Duplicates

When true, allows creating multiple subscriptions for the same endpoint.

false
Change Type

The type of changes that should generate notifications. Common values: updated, created, deleted.

updated
Client State

An optional validation token included in each notification to verify the notification source.

client-specific string
Connection

The Microsoft SharePoint connection to use.

Expiration Date Time

The date and time when the subscription will expire if not updated or renewed.

2018-01-01T11:23:00.000Z
Notification URL

The URL where Microsoft Graph will deliver webhook notifications when changes occur.

https://contoso.azurewebsites.net/api/webhook-receiver
Resource

The Microsoft Graph resource path to monitor for changes.

/me/drive/root
Example Payload for Create Subscription⤓
Loading…

Delete All Instance Subscriptions​

Delete all SharePoint subscriptions pointed at this instance. | key: deleteAllInstanceSubscriptions

InputNotesExample
Connection

The Microsoft SharePoint connection to use.

Notification URL

The notification URL used when creating subscriptions for this instance. Only subscriptions with this URL will be deleted. If not provided, all subscriptions for this flow will be deleted.

https://contoso.azurewebsites.net/api/webhook-receiver
Example Payload for Delete All Instance Subscriptions⤓
Loading…

Delete Subscription​

Delete a Subscription by ID. | key: deleteSubscription

InputNotesExample
Connection

The Microsoft SharePoint connection to use.

Subscription ID

The unique identifier of the subscription to manage.

48bf81d7-2d37-40a9-b47b-c1d1960d0f87
Example Payload for Delete Subscription⤓
Loading…

Download File​

Download a file from the specified drive. | key: downloadFile

InputNotesExample
Connection

The Microsoft SharePoint connection to use.

Drive ID

The unique identifier of a SharePoint drive.

b!WumF-zsD8ku93Y0QqhKM9jVTjPefo6RGrpVCkPpe547Qrf38sox_TYIFuj9sqJhv
Item ID

The unique identifier of a SharePoint item.

01Q7VXROAW7LCB32ODBRCKZNSJIC544XAQ
List ID

The unique identifier of a SharePoint site list.

48bf81d7-2d37-40a9-b47b-c1d1960d0f87
Site ID

The unique identifier of a SharePoint site.

contoso.sharepoint.com,2c712604-1370-44e7-a1f5-426573fda80a,2d2244c3-251a-49ea-93a8-39e1c3a060fe
Example Payload for Download File⤓
Loading…

Get Current User​

Get the information and metadata of the user that is currently logged in. | key: getCurrentUser

InputNotesExample
Connection

The Microsoft SharePoint connection to use.

Example Payload for Get Current User⤓
Loading…

Get Drive​

Returns the information and metadata of a SharePoint drive. | key: getDrive

InputNotesExample
Connection

The Microsoft SharePoint connection to use.

Drive ID

The unique identifier of a SharePoint drive.

b!WumF-zsD8ku93Y0QqhKM9jVTjPefo6RGrpVCkPpe547Qrf38sox_TYIFuj9sqJhv
Site ID

The unique identifier of a SharePoint site.

contoso.sharepoint.com,2c712604-1370-44e7-a1f5-426573fda80a,2d2244c3-251a-49ea-93a8-39e1c3a060fe
Example Payload for Get Drive⤓
Loading…

Get File​

Get the content of a text or JSON file from a drive. For binary files, use the Download File action. | key: getFile

InputNotesExample
Connection

The Microsoft SharePoint connection to use.

Drive ID

The unique identifier of a SharePoint drive.

b!WumF-zsD8ku93Y0QqhKM9jVTjPefo6RGrpVCkPpe547Qrf38sox_TYIFuj9sqJhv
Item ID

The unique identifier of a SharePoint item.

01Q7VXROAW7LCB32ODBRCKZNSJIC544XAQ
List ID

The unique identifier of a SharePoint site list.

48bf81d7-2d37-40a9-b47b-c1d1960d0f87
Site ID

The unique identifier of a SharePoint site.

contoso.sharepoint.com,2c712604-1370-44e7-a1f5-426573fda80a,2d2244c3-251a-49ea-93a8-39e1c3a060fe
Example Payload for Get File⤓
Loading…

Get Item from Site List​

Returns the information and metadata of the given item. | key: getItemInSite

InputNotesExample
Connection

The Microsoft SharePoint connection to use.

Item ID

The unique identifier of a SharePoint item.

01Q7VXROAW7LCB32ODBRCKZNSJIC544XAQ
List ID

The unique identifier of a SharePoint site list.

48bf81d7-2d37-40a9-b47b-c1d1960d0f87
Opt In Fields

Comma-separated list of fields to return. Overrides the default result set.

name, description, id
Site ID

The unique identifier of a SharePoint site.

contoso.sharepoint.com,2c712604-1370-44e7-a1f5-426573fda80a,2d2244c3-251a-49ea-93a8-39e1c3a060fe
Example Payload for Get Item from Site List⤓
Loading…

Get Root Site​

Returns the information and metadata of the root SharePoint site in the tenant. | key: getRootSite

InputNotesExample
Connection

The Microsoft SharePoint connection to use.

Example Payload for Get Root Site⤓
Loading…

Get Site​

Returns the information and metadata of the given SharePoint site. | key: getSite

InputNotesExample
Connection

The Microsoft SharePoint connection to use.

Site ID

The unique identifier of a SharePoint site.

contoso.sharepoint.com,2c712604-1370-44e7-a1f5-426573fda80a,2d2244c3-251a-49ea-93a8-39e1c3a060fe
Example Payload for Get Site⤓
Loading…

Get Site List​

Returns the information and metadata of an existing site list. | key: getList

InputNotesExample
Connection

The Microsoft SharePoint connection to use.

List ID

The unique identifier of a SharePoint site list.

48bf81d7-2d37-40a9-b47b-c1d1960d0f87
Site ID

The unique identifier of a SharePoint site.

contoso.sharepoint.com,2c712604-1370-44e7-a1f5-426573fda80a,2d2244c3-251a-49ea-93a8-39e1c3a060fe
Example Payload for Get Site List⤓
Loading…

List Changes​

Track changes in a driveItem and its children over time. | key: listChanges

InputNotesExample
Connection

The Microsoft SharePoint connection to use.

Delta URL

The URL to track changes in a driveItem and its children over time. The @odata.nextLink or @odata.deltaLink from a previous response can also be pasted here to resume tracking changes.

/drives/{drive-id}/root/delta
Fetch All

When true, automatically fetches all pages of results using pagination.

false
Query Parameters

OData system query options to shape the delta query results.

Example Payload for List Changes⤓
Loading…

List Drives​

List all drives within any given SharePoint site. | key: listDrives

InputNotesExample
Connection

The Microsoft SharePoint connection to use.

Fetch All

When true, automatically fetches all pages of results using pagination.

false
Pagination

Page-size and page-token controls for paging through results.

Site ID

The unique identifier of a SharePoint site.

contoso.sharepoint.com,2c712604-1370-44e7-a1f5-426573fda80a,2d2244c3-251a-49ea-93a8-39e1c3a060fe
Example Payload for List Drives⤓
Loading…

List Files in Drive​

List all the files from a Drive. | key: getFilesFromDriveWithPagination

InputNotesExample
Connection

The Microsoft SharePoint connection to use.

Drive ID

The unique identifier of a SharePoint drive.

b!WumF-zsD8ku93Y0QqhKM9jVTjPefo6RGrpVCkPpe547Qrf38sox_TYIFuj9sqJhv
Fetch All

When true, automatically fetches all pages of results using pagination.

false
Pagination

Page-size and page-token controls for paging through results.

Recursive

When true, returns files from all subfolders in addition to the specified folder.

false
Site ID

The unique identifier of a SharePoint site.

contoso.sharepoint.com,2c712604-1370-44e7-a1f5-426573fda80a,2d2244c3-251a-49ea-93a8-39e1c3a060fe
Example Payload for List Files in Drive⤓
Loading…

List Folder Files in Drive​

List all the files inside of a folder from a Drive. | key: getFilesFromDriveFolderWithPagination

InputNotesExample
Connection

The Microsoft SharePoint connection to use.

Drive ID

The unique identifier of a SharePoint drive.

b!WumF-zsD8ku93Y0QqhKM9jVTjPefo6RGrpVCkPpe547Qrf38sox_TYIFuj9sqJhv
Fetch All

When true, automatically fetches all pages of results using pagination.

false
Folder ID

The unique identifier of a SharePoint folder. Leave empty to use root folder.

01Q7VXAXZW7LCB32ODBRCKZNSJIC544FXU
Pagination

Page-size and page-token controls for paging through results.

Site ID

The unique identifier of a SharePoint site.

contoso.sharepoint.com,2c712604-1370-44e7-a1f5-426573fda80a,2d2244c3-251a-49ea-93a8-39e1c3a060fe
Example Payload for List Folder Files in Drive⤓
Loading…

List Followed Sites​

List all Followed Sites. | key: listFollowedSites

InputNotesExample
Connection

The Microsoft SharePoint connection to use.

Fetch All

When true, automatically fetches all pages of results using pagination.

false
Pagination

Page-size and page-token controls for paging through results.

Example Payload for List Followed Sites⤓
Loading…

List Items​

List Items in a Folder. | key: listItems

InputNotesExample
Connection

The Microsoft SharePoint connection to use.

Drive ID

Provide the id of the drive to list the items in.

b!WumF-zsD8ku93Y0QqhKM9jVTjPefo6RGrpVCkPpe547Qrf38sox_TYIFuj9sqJhv
Folder ID

Provide the id of the folder to list the items in.

01Q7VXAXZW7LCB32ODBRCKZNSJIC544FXU
Site ID

The unique identifier of a SharePoint site.

contoso.sharepoint.com,2c712604-1370-44e7-a1f5-426573fda80a,2d2244c3-251a-49ea-93a8-39e1c3a060fe
Example Payload for List Items⤓
Loading…

List Items in Site List​

Return all items inside the given site list. | key: getListItemsInSite

InputNotesExample
Connection

The Microsoft SharePoint connection to use.

List ID

The unique identifier of a SharePoint site list.

48bf81d7-2d37-40a9-b47b-c1d1960d0f87
Opt In Fields

Comma-separated list of fields to return. Overrides the default result set.

name, description, id
Pagination

Page-size and page-token controls for paging through results.

Site ID

The unique identifier of a SharePoint site.

contoso.sharepoint.com,2c712604-1370-44e7-a1f5-426573fda80a,2d2244c3-251a-49ea-93a8-39e1c3a060fe
Example Payload for List Items in Site List⤓
Loading…

List Shared Documents​

Lists documents shared with the user. | key: listSharedDocuments

InputNotesExample
Connection

The Microsoft SharePoint connection to use.

Example Payload for List Shared Documents⤓
Loading…

List Site Lists​

List all Site Lists. | key: listSiteLists

InputNotesExample
Connection

The Microsoft SharePoint connection to use.

Fetch All

When true, automatically fetches all pages of results using pagination.

false
Site ID

The unique identifier of a SharePoint site.

contoso.sharepoint.com,2c712604-1370-44e7-a1f5-426573fda80a,2d2244c3-251a-49ea-93a8-39e1c3a060fe
Example Payload for List Site Lists⤓
Loading…

List Sites​

List all SharePoint sites. | key: listSites

InputNotesExample
Connection

The Microsoft SharePoint connection to use.

Fetch All

When true, automatically fetches all pages of results using pagination.

false
Pagination

Page-size and page-token controls for paging through results.

Example Payload for List Sites⤓
Loading…

List Subscriptions​

List all available Subscriptions. | key: listSubscriptions

InputNotesExample
Connection

The Microsoft SharePoint connection to use.

Show Instance Subscriptions

When true, filters results to show only subscriptions created by this instance.

true
Example Payload for List Subscriptions⤓
Loading…

Move File​

Move a File in a Drive. | key: moveFile

InputNotesExample
Connection

The Microsoft SharePoint connection to use.

Drive ID

Provide the id of the drive to move the file in.

b!WumF-zsD8ku93Y0QqhKM9jVTjPefo6RGrpVCkPpe547Qrf38sox_TYIFuj9sqJhv
Item ID

Provide the id of the file to move.

01Q7VXROAW7LCB32ODBRCKZNSJIC544XAQ
List ID

The unique identifier of a SharePoint site list.

48bf81d7-2d37-40a9-b47b-c1d1960d0f87
Destination Parent ID

Provide the Id of the destination parent element to move file to.

root
Site ID

The unique identifier of a SharePoint site.

contoso.sharepoint.com,2c712604-1370-44e7-a1f5-426573fda80a,2d2244c3-251a-49ea-93a8-39e1c3a060fe
Example Payload for Move File⤓
Loading…

Raw Request​

Send raw HTTP request to Microsoft SharePoint. | key: rawRequest

InputNotesExample
Connection

The Microsoft SharePoint connection to use.

Data

The HTTP body payload to send to the URL.

{"exampleKey": "Example Data"}
File Data

File Data to be sent as a multipart form upload.

[{key: "example.txt", value: "My File Contents"}]
File Data File Names

File names to apply to the file data inputs. Keys must match the file data keys above.

Form Data

The Form Data to be sent as a multipart form upload.

[{"key": "Example Key", "value": new Buffer("Hello World")}]
Header

A list of headers to send with the request.

User-Agent: curl/7.64.1
Max Retry Count

The maximum number of retries to attempt. Specify 0 for no retries.

0
Method

The HTTP method to use.

Query Parameter

A list of query parameters to send with the request. This is the portion at the end of the URL similar to ?key1=value1&key2=value2.

Response Type

The type of data you expect in the response. You can request json, text, or binary data.

json
Retry On All Errors

If true, retries on all erroneous responses regardless of type. This is helpful when retrying after HTTP 429 or other 3xx or 4xx errors. Otherwise, only retries on HTTP 5xx and network errors.

false
Retry Delay (ms)

The delay in milliseconds between retries. This is used when 'Use Exponential Backoff' is disabled.

0
Timeout

The maximum time that a client will await a response to its request

2000
URL

Input the path only (/me/followedSites), The base URL is already included (https://graph.microsoft.com/v1.0). For example, to connect to https://graph.microsoft.com/v1.0/me/followedSites, only /me/followedSites is entered in this field.

/me/followedSites
Use Exponential Backoff

Specifies whether to use a pre-defined exponential backoff strategy for retries. When enabled, 'Retry Delay (ms)' is ignored.

false
Example Payload for Raw Request⤓
Loading…

Rename Folder​

Rename a Folder in a Drive. | key: renameFolder

InputNotesExample
Connection

The Microsoft SharePoint connection to use.

Drive ID

Provide the id of the drive to rename the folder in.

b!WumF-zsD8ku93Y0QqhKM9jVTjPefo6RGrpVCkPpe547Qrf38sox_TYIFuj9sqJhv
Folder ID

Provide the id of the folder to rename.

01Q7VXAXZW7LCB32ODBRCKZNSJIC544FXU
Folder Name

Provide the new name of the folder.

MyFolder
Site ID

Provide the id of the site to rename the folder in.

contoso.sharepoint.com,2c712604-1370-44e7-a1f5-426573fda80a,2d2244c3-251a-49ea-93a8-39e1c3a060fe
Example Payload for Rename Folder⤓
Loading…

Renew Subscription​

Extend the expiration date of an existing SharePoint subscription. | key: renewSubscription

InputNotesExample
Connection

The Microsoft SharePoint connection to use.

Expiration Days

Number of days to extend the subscription (1-30). Renewals are capped at the Microsoft Graph maximum for SharePoint resources, just under 30 days.

3
Subscription ID

The unique identifier of the subscription to manage.

48bf81d7-2d37-40a9-b47b-c1d1960d0f87
Example Payload for Renew Subscription⤓
Loading…

Search Items​

Search for items across all drives in a SharePoint site. | key: searchItems

InputNotesExample
Connection

The Microsoft SharePoint connection to use.

Query

Provide the query to search for items by name.

Invoices
Site ID

Provide the id of the site to search the items in.

contoso.sharepoint.com,2c712604-1370-44e7-a1f5-426573fda80a,2d2244c3-251a-49ea-93a8-39e1c3a060fe
Example Payload for Search Items⤓
Loading…

Update File​

Update a file to the specified drive. | key: updateFile

InputNotesExample
Connection

The Microsoft SharePoint connection to use.

Drive ID

The unique identifier of a SharePoint drive.

b!WumF-zsD8ku93Y0QqhKM9jVTjPefo6RGrpVCkPpe547Qrf38sox_TYIFuj9sqJhv
File Data

The file content to upload to SharePoint. Reference a file from a previous step or provide file data.

Item ID

The unique identifier of a SharePoint item.

01Q7VXROAW7LCB32ODBRCKZNSJIC544XAQ
List ID

The unique identifier of a SharePoint site list.

48bf81d7-2d37-40a9-b47b-c1d1960d0f87
Site ID

The unique identifier of a SharePoint site.

contoso.sharepoint.com,2c712604-1370-44e7-a1f5-426573fda80a,2d2244c3-251a-49ea-93a8-39e1c3a060fe
Example Payload for Update File⤓
Loading…

Update Site List Subscription Expiration​

Update existing Site List subscription expiration for Microsoft SharePoint. | key: updateSiteListSubscriptionExpiration

InputNotesExample
Connection

The Microsoft SharePoint connection to use.

Expiration Date/Time

Expiration date/time for subscription. If unspecified the default will be the current date/time plus 29 days (close to the maximum permitted by the Graph API).

2026-01-01T11:23:00.000Z
Subscription ID

The unique identifier of the subscription to manage.

48bf81d7-2d37-40a9-b47b-c1d1960d0f87

Subscriptions have an expiration date/time provided upon creation. This can also be modified with the update API. This action will default to adding 29 days (close to the maximum value for SharePoint resources) to the current date/time unless a value is specified. This is useful for "touching" the subscription to ensure its expiration is extended.

Example Payload for Update Site List Subscription Expiration⤓
Loading…

Upload File​

Upload a file to the specified drive or folder's drive. | key: uploadFile

InputNotesExample
Connection

The Microsoft SharePoint connection to use.

Drive ID

The unique identifier of a SharePoint drive.

b!WumF-zsD8ku93Y0QqhKM9jVTjPefo6RGrpVCkPpe547Qrf38sox_TYIFuj9sqJhv
File Data

The file content to upload to SharePoint. Reference a file from a previous step or provide file data.

File Name

The name of the file including extension.

reports.csv
Folder ID

The unique identifier of a SharePoint folder. Leave empty to use root folder.

01Q7VXAXZW7LCB32ODBRCKZNSJIC544FXU
Site ID

The unique identifier of a SharePoint site.

contoso.sharepoint.com,2c712604-1370-44e7-a1f5-426573fda80a,2d2244c3-251a-49ea-93a8-39e1c3a060fe
Example Payload for Upload File⤓
Loading…

Changelog​

2026-11-20​

Fixed the Drive Subscription and Site Item Changes triggers, and updated the Delete Subscription result and connection validation:

  • Fixed the Drive Subscription trigger reusing its existing Microsoft Graph subscription on a redeploy, so a changed Resource, Change Type, Client State, or connection never took effect; a redeploy now creates a new subscription and removes the previous one, retrying a delete Microsoft Graph refuses on later deploys and when the instance is deleted
  • Fixed the Site Item Changes trigger dropping the changes of one of two drives that share a display name and tracking later recurrences against the wrong drive; changes from drives with the same name are now combined under that name
  • Updated the Delete Subscription action to return a record with success, id, and message instead of an empty response
  • Updated the connections to fail with a connection error when no access token is available, instead of sending the request to Microsoft Graph without one
  • Updated the component description to better summarize what the component does
  • Added an output schema to the Delete Subscription action for improved field mapping during configuration

2026-11-19​

Updated dependencies and refactored internal code:

  • tsdown 0.23.7

2026-11-16​

Fixed subscription renewal and moved file downloads off Microsoft's retiring pre-authenticated URL, added multi-select site, drive, and folder data sources, and improved the list actions and polling triggers:

  • Fixed the Drive Subscription trigger no longer receiving notifications once its Microsoft Graph subscription expired; when the trigger runs on a schedule it now renews the subscription on a Scheduled Renewal branch, extending it to just under the Microsoft Graph maximum and recreating it if it has lapsed, and it handles Graph lifecycle notices on a new Lifecycle Event branch
  • Updated the Download File action to use the official Microsoft Graph /content endpoint instead of the deprecated @microsoft.graph.downloadUrl property, which Microsoft stops pre-authenticating on April 1, 2027; the Get File description now points binary files to Download File
  • Fixed the Renew Subscription action treating Expiration Days as minutes instead of days; renewals are now capped at the Microsoft Graph maximum
  • Fixed the Raw Request action ignoring the connection's Base URL and always sending to the global Microsoft Graph endpoint
  • Fixed the List Items in Site List action ignoring Opt In Fields when no page size or page token was set
  • Added the Select Sites, Select Drives from Sites, and Select Folders from Drives data sources for selecting several sites, drives, and top-level folders in a configuration wizard; the drive and folder data sources take one or more parents (a single ID, a list, or the selection from the previous data source) and, when several are selected, skip a site or drive Microsoft Graph refuses or no longer has instead of failing the whole list, and each Select Folders from Drives key joins the drive ID and folder ID with a colon
  • Updated the Drive Item Changes and Folder Item Changes triggers to skip the flow when a recurrence finds no changes, as Site Item Changes already did
  • Updated the polling trigger labels from New and Updated Drive Items, New and Updated Folder Items, and New and Updated Site Items to Drive Item Changes, Folder Item Changes, and Site Item Changes; trigger keys are unchanged, so existing flows keep working
  • Updated List Drives, List Files in Drive, List Folder Files in Drive, List Followed Sites, List Items in Site List, and List Sites to group their page size and page token inputs into Pagination, and List Changes to group its delta query options into Query Parameters; Fetch All stays a top-level toggle where offered
  • Updated the actions that take Pagination to send no page size when Page Limit is blank, instead of a page size of 0
  • Added output schemas to 30 actions for improved field mapping during configuration
  • Added inline action calling support to 33 actions for improved example output during configuration

2026-11-11​

Refactored internal code

2026-11-10​

Refactored internal code

2026-11-09​

Updated spectral to 10.39.1

2026-11-06​

Updated dependencies:

  • spectral 10.38.5 in the shared ms-utils package

2026-11-05​

Updated spectral to 10.39.0

2026-11-03​

Published the component as an npm package, so code-native integrations can install it and call its actions, triggers and data sources from code with TypeScript types

2026-10-20​

  • Added opt-in batching to the New and Updated Drive Items, New and Updated Folder Items, and New and Updated Site Items triggers, dispatching each changed record individually or in configured batches so large backlogs drain in one recurrence; enabling it changes the shape a downstream step receives

2026-09-14​

Removed the List Files in Drive (Deprecated) and List Folder Files in Drive (Deprecated) actions that are no longer in use; use List Files in Drive and List Folder Files in Drive instead

2026-08-05​

Improved datasource filtering, drive scoping, and pagination consistency across drive actions and triggers:

  • Added Site ID and List ID datasource-scoping inputs so the Drive and Item dropdowns are pre-populated in the UI
  • Fixed the List Drives and List Folders datasources to query the correct SharePoint drive instead of defaulting to the user's personal OneDrive
  • Removed the unused Directory datasource input
  • Fixed the Fetch All option on the List Sites, List Followed Sites, List Site Lists, List Drives, List Files in Drive, and List Folder Files in Drive actions so results are returned in the same { value: [ ... ] } shape as a single-page response

2026-05-21​

Updated the List Site Lists action to include a search query parameter when fetching all lists, ensuring complete results when using delegated authentication

2026-04-30​

Updated spectral version

2026-02-26​

Added cross-component connection support for the Microsoft Excel component, enabling SharePoint connections to access Excel workbooks. Added inline data source for site lists to enable dynamic dropdown selection

2026-01-23​

Enhanced the New and Updated Folder Items trigger to support recursive subfolder monitoring. When the new Include Subfolders input is enabled, the trigger now detects changes in all nested subfolders within the specified folder.

2025-12-09​

Added webhook lifecycle features for managing SharePoint subscription creation, renewal, and deletion:

  • Drive Subscription trigger for receiving real-time SharePoint change notifications with automatic subscription management
  • Delete All Instance Subscriptions action for removing all subscriptions associated with an instance endpoint
  • Renew Subscription action to extend subscription expiration

2025-09-16​

Added new polling triggers for comprehensive SharePoint monitoring:

  • New and Updated Drive Items trigger for monitoring drive modifications
  • New and Updated Site Items trigger for tracking site updates
  • New and Updated Folder Items trigger for detecting folder content changes

Renamed the OAuth connection configuration key to improve clarity.

2025-07-21​

Added support for Microsoft Graph sovereign cloud endpoints, enabling SharePoint integration with government and regional cloud instances.

2025-07-15​

Added OAuth 2.0 Client Credentials connection type for server-to-server authentication scenarios where user delegation is not required.