How to move multiple files at once from Logic App (from SFTP to Azure File share)?

Anonymous
2022-06-17T21:52:24.397+00:00

I have a Logic App that is working fine when it moves one file from SFTP to Azure File share.
But I am not sure how to modify this Logic App so that it could move multiple files whenever there is/are update from source area (SFPT).

This is what I have in Logic app:
212578-image.png

There is going to be average 2 new files moving into a SFTP folder from third party on a daily basis.
I guess I could try by running every 12 hours, but I am not sure that is only solution.

What I am trying to do is, run once a day and grab everything (at least 2 new files) at once.
How do I go about doing this?

Also, I am curious how does Logic App understand/recognize which one is a new file? What is the technology behind which one to grab?

@MayankBargali-MSFT I am putting your attention here just in case.

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

2 answers

Sort by: Most helpful
  1. Kamlesh Kumar 3,866 Reputation points
    2022-06-20T13:00:27.463+00:00

    Hi @KingJava ,

    Did you try to get the list of files and then using the loop create files to Azure File Share?

    Something like below flow it should work.

    212966-image.png


  2. Anonymous
    2022-06-27T17:33:24.547+00:00

    @MayankBargali-MSFT

    Thank you so much for your help.
    As per your chat, this was the reason that my previous pipeline did not work.
    https://learn.microsoft.com/en-us/azure/connectors/connectors-sftp-ssh#polling-behavior

    215473-image.png

    This is configuration that I modified (uncheck/disable "Preserver timestamp") in Winscp.
    215328-image.png

    This is current pipeline that works: (I did not have to use Loop).
    215400-image.png

    This is setting (no need to change anything, just leave as Default on Concurrency):
    215484-image.png

    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.