How to create large file into SharePoint library from Blob storage using HTTP connector in Logic Apps?

Suresh Kumar Chermadurai 20 Reputation points
2023-10-26T12:29:30.8733333+00:00

Trying to copy files from Azure blob storage to SharePoint library. Using HTTP connector for copying files since connecting SharePoint using 'Active Directory OAuth' through App authentication.

Small files are getting created in SharePoint using below REST api call in HTTP connector. _api/web/GetFolderByServerRelativeUrl('folder__path')/Files/add(url='filename',overwrite=true)

I have enabled allow chunking in the HTTP Connector but still it get failed for creating large files (more than 50 MB) into SharePoint. Any suggestions to create large files into SharePoint library using HTTP connector (REST API) in Logic Apps?

Azure Logic Apps
Azure Logic Apps
An Azure service that automates the access and use of data across clouds without writing code.
3,141 questions
SharePoint
SharePoint
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
10,715 questions
{count} votes

1 answer

Sort by: Most helpful
  1. ChengFeng - MSFT 5,020 Reputation points Microsoft Vendor
    2023-10-30T08:17:31.4433333+00:00

    Hi @Suresh Kumar Chermadurai

    Per my research

    The contents of the file. Pass the content parameter in the request body. The maximum size of a binary file that you can add by using the REST API is 2 GB.
    You can refer to the following document
    https://learn.microsoft.com/en-us/previous-versions/office/developer/sharepoint-rest-reference/dn450841(v=office.15)?redirectedfrom=MSDN#bk_FileCollectionAdd

    The option 4 doesn't limit size of files.Internal testing has shown that a chunk block size of 8 MB works best, but off course this depends on the network connection you're using


    If an Answer is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


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.