File movement from sharepoint Nested Subfolders using Microsoft Graph API to blob using ADF

Jagdev Sinder 0 Reputation points
2024-06-05T02:34:02.96+00:00

I am trying to copy files from sharepoint to Azure Blob Storage using Microsoft Graph API in ADF. I am able to do it when the sharepoint folder structure is flat. I am facing issue when the sharepoint has nested subfolders. Is there a way to get "@microsoftDownloadurl" for each file which are available in the nested subfolders on sharepoint.

Appreciate your help on this!

Thank You,

JD

Azure Blob Storage
Azure Blob Storage
An Azure service that stores unstructured data in the cloud as blobs.
2,578 questions
Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
11,269 questions
Azure Data Factory
Azure Data Factory
An Azure service for ingesting, preparing, and transforming data at scale.
10,027 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Amira Bedhiafi 18,741 Reputation points
    2024-06-05T15:59:34.0333333+00:00

    Implement a recursive function to navigate through the folder structure. For each item, check if it's a folder or a file. If it's a folder, make a recursive call to list its contents. If it's a file, retrieve the @microsoft.graph.downloadUrl.

    Once you have the download URLs, use Azure Data Factory to move the files to Azure Blob Storage.