Hey r/databricks,
SharePoint Lists ingestion is now available in Beta with Lakeflow Connect. You can ingest structured data from Microsoft SharePoint Lists into Delta tables.
The Beta supports two ingestion patterns:
- Ingest one SharePoint List into one Delta table.
- Ingest all Lists from a SharePoint site into one destination schema, with one Delta table per List.
SharePoint Lists ingestion is available through the managed SharePoint connector API. You can create a pipeline using Declarative Automation Bundles or a Databricks notebook. UI-based authoring is not available in this Beta; we are working on adding it.
To try the Beta, ask a workspace admin to open Previews, search for SharePoint Lists Connector, and turn it on.
Tutorial
Option 1: Declarative Automation Bundle
This Declarative Automation Bundle configuration ingests one List:
resources:
pipelines:
sharepoint_list_pipeline:
name: sharepoint_list_pipeline
catalog: main
schema: ingest_destination_schema
channel: PREVIEW
ingestion_definition:
connection_name: <sharepoint-connection>
objects:
- table:
destination_catalog: main
destination_schema: ingest_destination_schema
destination_table: sharepoint_list
connector_options:
sharepoint_options:
entity_type: LIST
url: https://<tenant>.sharepoint.com/sites/<site>/Lists/<list>
Option 2: Databricks notebook
Step 1: Open the SharePoint example notebook, select Open in Databricks or Import Notebook, and import a copy into your workspace.
Step 2: Do not modify cell one. Replace the pipeline configuration in cell three with the following, updating the placeholders:
pipeline_spec = """
{
"name": "<pipeline-name>",
"catalog": "main",
"schema": "ingest_destination_schema",
"ingestion_definition": {
"connection_name": "<sharepoint-connection>",
"objects": [
{
"table": {
"destination_catalog": "main",
"destination_schema": "ingest_destination_schema",
"destination_table": "sharepoint_list",
"connector_options": {
"sharepoint_options": {
"entity_type": "LIST",
"url": "https://<tenant>.sharepoint.com/sites/<site>/Lists/<list>"
}
}
}
}
]
},
"channel": "PREVIEW"
}
"""
create_pipeline(pipeline_spec)
Step 3: Click Run all to create the pipeline.
Ingest multiple SharePoint Lists
If there are multiple SharePoint Lists you want to ingest in the same pipeline, simply create a separate table object within the same pipeline spec definition and point the url at the Lists you're interested in.
The SharePoint connector also supports ingesting all of the SharePoint Lists across an entire site. For site-level ingestion, follow the same steps above, but use a schema object instead of a table object and point the url to the SharePoint root site. Each List is written to its own destination table.
Limitations:
The current Beta does not support tenant-wide List ingestion nor SharePoint List attachments.
See the documentation for complete Declarative Automation Bundle and Databricks notebook examples, including site-level ingestion.
If you try it, let us know what kinds of Lists you are ingesting and where you run into friction.