Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Building Flows
Answered

Apply to Each Not Running

(0) ShareShare
ReportReport
Posted on by 58

I'm very new to Power Automate, so please excuse me if I'm just being very stupid. 

 

I'm trying to create a flow that sends an email with 8 attachments which all come from a folder in Sharepoint. The flow will send the email, but it won't attach anything. I'll add screenshots to show how I've attempted to do this. The flow runs successfully, but the Apply to Each doesn't run at all. Can anyone help me with this? Thank you!email_flow_1.pngemail_flow_2.png

  • caitlink Profile Picture
    58 on at
    Re: Apply to Each Not Running

    Looking into it more, it looks like the Get Files action is not actually getting any files, so there's nothing to pass to the apply to each loop, which is why it isn't running. I'm just not sure why the Get Files action isn't returning anything, because I've double and triple checked the path. 

     

    Edit: I realised this was a problem with permissions or the site I was using. When I recreated the folder and the flow in a different site it worked just fine. Thank you so much for your help!

  • caitlink Profile Picture
    58 on at
    Re: Apply to Each Not Running

    Hi! Thank you so much for your help. Unfortunately, I still have the same problem. The apply to each action just doesn't run. Here's a screenshot from my last run. I used your video and followed the exact same procedure, but the apply to each simply doesn't execute. Screenshot 2021-08-30 101532.png

  • Verified answer
    DamoBird365 Profile Picture
    8,942 Microsoft Employee on at
    Re: Apply to Each Not Running

    Hi @caitlink 

     

    I think you’re almost there. The name value in your append to array needs to be encapsulated in “”. Content bytes doesn’t, which is correct. I’ve a video on this process https://youtu.be/9G9GNeknemg which might be of help.

     

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
    Cheers,
    Damien


    P.S. take a look at my new blog here and like & subscribe to my YouTube Channel thanks 😉

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Michael Gernaey – Community Spotlight

We are honored to recognize Michael Gernaey as our June 2025 Community…

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 566 Super User 2025 Season 1

#2
David_MA Profile Picture

David_MA 516 Super User 2025 Season 1

#3
stampcoin Profile Picture

stampcoin 492