Logic app workflow for copy files

Sourav 120 Reputation points
2024-12-24T22:11:01.0666667+00:00

I am creating a workflow for copying files from SharePoint online to azure storage(adls) when a file is uploaded to SharePoint online and the status is approved.

1.Added when a SharePoint file is created or modified connector

2.Condition-

Status.Value=Approved

3.If true - Get file content (file identier)

4.Create blob (v2)

Folder path - how to pass container/folder?

Blobname- Name

Blob content - File content

There are multiple files which will be uploaded to the location, will it cause any issues if the file is processing and another file is added ?

Is there anything else I should add in the workflow to improve?

Please suggest.

Kindly don't provide generic or chatgpt response.

Thanks

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

1 answer

Sort by: Most helpful
  1. VenkateshDodda-MSFT 23,441 Reputation points Microsoft Employee
    2024-12-26T06:39:22.9266667+00:00

    @Sourav Thanks for posting your question in Microsoft Q&A, apologize for any inconvenience caused on this.

    You can write to multiple blobs at one time without any issues. 

    1. Regarding the file Name you need take the file name from the trigger body.
    2. For file folder path if you are planning to store all the files under different folders inside a single static container make sure the container exists and for folder names --> Using Create folder action try creating the folder (use any expressions based on your business requirement)
    3. If you are planning to store this files in dynamic container, dynamic folder Modify your workflow and use the below actions. 
    • Call this create Container -Rest api to create the container 
    • Once the container got container got created successfully use the above mentioned Create folder action to create the folder and further use the file Name from the trigger body.

    Hope this helps, let me know if you have any further questions on this.

    0 comments No comments

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.