title: How to iterate through all files in sftp folder in Microsoft Azure Logic App
body: <p>steps i already did using SFTP connector (how can i access files while looping through list files in folder in azure logic app):</p>
  
  <ol>
  <li>I added foreach loop</li>
  <li>I added list files in folder</li>
  <li>I passed Body as parameter in foreach loop</li>
  <li>then i added action to create new file with new name for all files.</li>
  <li>but i am not able to get file name and content while iterating sftp folder using foreach loop?</li>
  </ol>
  
  <p><a href="https://i.stack.imgur.com/y9sfR.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/y9sfR.png" alt="enter image description here"></a></p>