0

I have a scenario where a Logic App will be scheduled to run at 11 am everyday and will move file from one SFTP to another SFTP, which I have done.

I want to add a condition if the first time the file is not present on SFTP then it should check again after 5 min for 3 retry attempts.

Thanks in advance.

Joel Cochran
  • 7,139
  • 2
  • 30
  • 43

1 Answers1

0

I want to add a condition if the first time the file is not present on SFTP then it should check again

In order to check if the file is present or not, you can use List files in folder action.

enter image description here

Then you can check for file's existance by looping through files inside that folder using DisplayName Variable.

enter image description here

I want to add a condition if the first time the file is not present on SFTP then it should check again after 5 min for 3 retry attempts.

Whereas For the above requirement, when you want to retry you can use until Action of Control Connector.

enter image description here

Then set its count to 3 from Change Limits. Below is the flow in my Logic app

enter image description here

In the next step you can use Delay action and set its limits to 5 minutes. So that for every 5 minutes the flow is going to check whether the file is present or not in sftp for 3 times.

enter image description here

Below is the whole flow that satisfies your requirement.

enter image description here

SwethaKandikonda
  • 7,513
  • 2
  • 4
  • 18