cancel
Showing results forย 
Search instead forย 
Did you mean:ย 
Data Engineering
Join discussions on data engineering best practices, architectures, and optimization strategies within the Databricks Community. Exchange insights and solutions with fellow data engineers.
cancel
Showing results forย 
Search instead forย 
Did you mean:ย 

Databricks file based trigger to sharepoint

abhishek0306
Visitor

Hi,

Can we create a file based trigger from sharepoint location for excel files from databricks. So my need is to copy the excel files from sharepoint to external volumes in databricks so can it be done using a trigger that whenever the file drops in sharepoint location a trigger is used to copy files. Also if a trigger cannot be used can we use any python code to do it. If cannot be done currently please let me know that we can only do the copy only schedule trigger.

2 REPLIES 2

pradeep_singh
Contributor III

I don't think that option is available with Sharepoint at the moment . You will have to use a scheduled jobs or streaming job with autoloader .

Thank You
Pradeep Singh - https://www.linkedin.com/in/dbxdev

balajij8
Contributor

@abhishek0306 

SharePoint does not natively support the event notifications required for Databricks File Arrival Triggers. You can use below

  • Azure Logic Apps - Create a workflow with "When a file is created in a folder" SharePoint trigger. The workflow copies the file to an ADLS Gen2 path. Once the file lands in ADLS, Databricks File Arrival Trigger can kick off automatically
  • Python Flow - You can use Python script to list files in SharePoint, compare them against a processed maintenance flow and download new files to ADLS Gen2 or Volumes. You can load the file using Auto Loader or Databricks File Arrival Trigger Flow.