title: Azure Logic App For Each loop sending multiple email each time. How to send only one email?
body: <p>Logic App 1 - I have an Azure Logic app <code>For Each</code> loop that loops through languages and outputs a Caption.vtt file for each language in a folder on OneDrive. 
  For example, if the user choose :English, Spanish, French. The <code>For Each</code> loop will iterate 3 times and output three vtt files on the "Transcript VTT file" OneDrive folder. </p>
  
  <p>Logic App 2 - After languages are outputted on the OneDrive folder, I created an action to check for any new files in that OneDrive folder. If there are any new files, I want to send those (vtt files) as an attachment to my user by e-mail. </p>
  
  <p>The problem I am having is that, the  Logic app is sending three separate emails to the user for each language . <strong><em>I was expecting the Logic app to send only ONE email to the user with three files as an attachments</em></strong>. I think the problem is that my "Create File" action is inside my <code>For Each</code> loop, which is why it is sending 3 separate emails.  But I am not sure how to moigy it, so that it sends only one email with three VTT file attachments. </p>
  
  <p>How to modify my Logic app so that it sends only one email to the user with all the VTT files as attachment?</p>
  
  <p>Here re the workflow of my Logic APPS:</p>
  
  <p>1st - Logic app
  <a href="https://i.stack.imgur.com/GAGPX.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/GAGPX.png" alt="enter image description here"></a>
  <a href="https://i.stack.imgur.com/OaVdl.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/OaVdl.png" alt="enter image description here"></a>
  <a href="https://i.stack.imgur.com/z10xk.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/z10xk.png" alt="enter image description here"></a></p>
  
  <p>Logic APP 2: </p>
  
  <p><a href="https://i.stack.imgur.com/E8BrN.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/E8BrN.png" alt="enter image description here"></a></p>