How to connect to SharePoint Online from Azure Logic App or Azure Data Factory?

King Java 790 Reputation points
2025-03-18T21:49:42.83+00:00

I am trying to connect to SharePoint online (from Azure Logic App or Azure Data Factory), and I am stuck.

What is most common way of doing this?

Thank you.

Azure Logic Apps
Azure Logic Apps
An Azure service that automates the access and use of data across clouds without writing code.
3,542 questions
{count} votes

Accepted answer
  1. Anonymous
    2025-03-20T16:57:54.41+00:00

    Hello @King Java,

    since it is a small data movement, Azure Logic App might be a better option.

    Yes, as your requirement is only a small data movement, logic app is the better approach here.

    Do I use "Copy blob" for getting a file from Blob storage?

    What is object for SharePoint folder (destination)?

    If you need to copy a newly uploaded file daily, you can use the below approach.

    First create a Blob storage connection using your desired authentication. Now, take a trigger When a blob is added or modified (properties only) (V2) and as only you need to copy one file, set the Number of blobs to return as 1.

    enter image description here

    You can set the trigger time as well here. This will check for newly uploaded/modified files for every given time and will trigger the logic app

    Then, use Get blob content (V2) to extract the blob content. Here, open the expression at the file path and select List of Files Path from the previous step as shown below.

    enter image description here

    Now, search for SharePoint connector and take Create file action. After giving the connection, give your site URL and your folder path. In the file name, select the List of Files Name option from the first step.

    enter image description here

    In the File content, select the File Content from the previous step.

    enter image description here

    Whenever a file uploaded/modified in the Blob storage location, it will be copied to the SharePoint location.

    enter image description here

    If don't need the dynamic copy of newly loaded files or if you can hardcode the filepath with manual run, you can follow the same process from the second step with a HTTP request.

    For more information, you can go through these references:

    Connect to Azure Blob Storage from workflows in Azure Logic Apps

    Logic app with Sharepoint

    Hope this helps.

    If the answer is helpful, please click Accept Answer and kindly upvote it. If you have any further questions about this answer, please click Comment.

    1 person found this answer helpful.

1 additional answer

Sort by: Most helpful
  1. Nandan Hegde 36,146 Reputation points MVP Volunteer Moderator
    2025-03-19T05:37:32.3133333+00:00

    Assuming it is Sharepoint online list that you need to access, then Sharepoint online list linked service supports only Service principal authentication.

    And Certificate authentication is more secure way than key because they are harder to compromise and manage, and they offer better security features like non-exposability and the ability to use conditional access policies. 

    Link : https://learn.microsoft.com/en-us/answers/questions/883982/why-are-certificates-more-secure-than-secrets

    How to create service principal :
    https://learn.microsoft.com/en-us/entra/architecture/service-accounts-principal
    https://learn.microsoft.com/en-us/entra/identity-platform/howto-create-service-principal-portal

    https://learn.microsoft.com/en-us/cli/azure/azure-cli-sp-tutorial-3

    In case if you want to access data from sharepoint library, then you need to use REST API end point :

    https://learn.microsoft.com/en-us/azure/data-factory/connector-sharepoint-online-list?tabs=data-factory#copy-file-from-sharepoint-online


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.