Search code examples
azureazure-logic-apps

Use parameters with logic app for sftp connection is not working


I have created an logic app and added the action SFTP - List files in folder. When I create the connection to the SFTP server it connects succesfully.

Next I have to select the folder. I want to make use of parameters, that works fine with 1 level, but when I want to make use of /folder/subfolder then I am getting an error that the folder does not exist after running the logic app.

I have 2 questions

  1. is it possible to make use of /folder/subfolder?
  • if yes, how?
  1. What is/are the best practice(s) to manage a lot of connections for a set of logic apps?
  • In the future we will make use of more logic apps and more connections. Those connections will also be integrated in different logic apps. To manage or keep a good overview I want to know if there are best practices.

thank you all for your time.


Solution

  • Storage Container contains below folder structure:

    enter image description here

    is it possible to make use of /folder/subfolder? if yes, how?

    Yes, it is possible like using below connection deisgn:

    enter image description here

    With Parameters:

    enter image description here

    enter image description here

    Output:

    enter image description here

    Without Parameters:

    enter image description here

    Output:

    enter image description here

    There are no best practices as such, but one needs lot of connections as there may be lot of containers.

    You will get all connections when you click on change connection :

    enter image description here

    Try to use above design to get expected output.