SharePoint Online - Get Delta Changes

Overview

The SharePoint Online - Get Delta Changes Snap tracks changes such as create, update, or delete in the metadata of items (files, folders, or lists) from the SharePoint Online document library using delta queries for efficient data synchronization.

Delta queries enable you to retrieve changes without repeatedly fetching the entire dataset. Learn more about retrieving delta changes.



Prerequisites

  • Valid SharePoint Online tenant and associated site.
  • Valid Azure application with all the required API permissions.

Snap views

Type Description Examples of upstream and downstream Snaps
Input

This Snap has at most one document input view.

An input document contains the metadata of the item to be retrieved, such as site, item name, and so on.

Output

This Snap has exactly one document output view.

An output document contains the metadata information of an item.

Learn more about Error handling.

Snap settings

Note: Learn about the common controls in the Snap settings dialog.
Field/Field set Description
Label*

String

Specify a unique name for the Snap. Modify this to be more appropriate, especially if more than one of the same Snaps is in the pipeline.

Default value: SharePoint Online - Get Delta Changes

Example: SharePoint Online - Get Delta Changes

Delta type

Dropdown list
Choose the delta type to fetch the changes. Available options are:
  • Delta Link
  • Document Library
  • List

Default value: Document Library

Example: List

Site

String/Expression
Specify the name of a site that contains metadata for a SharePoint site.

Default value: N/A

Example: MySite

Custom site path

Checkbox
Select this checkbox if your site URL contains a custom path that deviates from the default site URL. Default site path always has a prefix sites/ before the sitename. A custom site can contain the prefix teams/ or it can have no prefix.

Default value: Deselected

Delta link

String/Expression
This field appears only when Delta Type is set to Delta Link. Specify the link to fetch the delta changes.

Default value: N/A

Example: https://graph.microsoft.com/v1.0/sites/{site-id}/lists/{list-id}/items/delta?token={delta-token}

Document library

String/Expression/ Suggestion
This field appears only when Delta Type is set to Document Library. Specify the drive representing the top-level container for a file system, such as OneDrive or SharePoint document libraries. This field is populated dynamically from different sites in the suggestion dropdown list. You can either choose a document library from the suggestion dropdown list or enter the entity name manually.
Note: If you enable the Site property as an expression, then the document library is not suggested, resulting in an exception.

Default value: N/A

Example: Shared Documents

List name

String/Expression/ Suggestion
This field appears only when Delta Type is set to List. Specify the resource containing the top-level properties of the list in a site, including template and field definitions. This field will be populated dynamically from different sites from the suggestion drop-down list. You can either choose a list name from the suggestion drop-down list or enter the entity name manually.
Note: If you enable the Site property as an expression, then the list name is not suggested, resulting in an exception.

Default value: N/A

Example: Shared Lists

Select fields

String/Expression
Enter the comma-separated properties to be written to the output view.

Default value: N/A

Example: id, email, roles

Expand

String
Enter the comma-separated properties to retrieve from the fields section of a list. This is an optional field that appears only when the Delta Type is set to List.

Default value: N/A

Auto pagination

Checkbox
Select this checkbox to retrieve all matching records as a paginated list.

Default value: Deselected

Connection details Use this field set to specify connection properties to the SharePoint Online APIs.
Connection timeout*

Integer
Specify the duration (in seconds) for which the Snap should attempt to connect to SharePoint Online. If the connection fails within this duration, the Snap times out, logs the event, and waits for the defined Retry Interval before retrying.

Default value: 30

Example: 40

Number of retries*

Integer
Specify the maximum number of reconnection attempts the Snap must perform in case of a connection failure or timeout.

Default value: 3

Example: 5

Retry interval (seconds)*

Integer
Specify the duration (in seconds) the Snap must wait between reconnection attempts, until the maximum number of retries is reached.

Default value: 10

Example: 11

Snap execution

Dropdown list
Choose one of the three modes in which the Snap executes. Available options are:
  • Validate & Execute. Performs limited execution of the Snap and generates a data preview during pipeline validation. Subsequently, performs full execution of the Snap (unlimited records) during pipeline runtime.
  • Execute only. Performs full execution of the Snap during pipeline execution without generating preview data.
  • Disabled. Disables the Snap and all Snaps that are downstream from it.

For more information on how to retrieve details of an item in the SharePoint for a delta operation, refer to the Microsoft Graph API ListItem-Delta and DriveItem-Delta.

Troubleshooting

Error Cause Resolution
HTTP Response Code: 404 Entered item not found in the document library. Provide a valid item path to get the metadata.
Forbidden exception: 403 The user or the app doesn't have sufficient permissions to read the metadata for the document library. Provide the desired permissions both at the user and application levels.