web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / I can't send email to ...
Power Automate
Answered

I can't send email to multiple users from PAD

(0) ShareShare
ReportReport
Posted on by 31

Hello, 

 

I'm new to Power Automate so forgive me if I don't use the correct terms. I'm trying to create a send email workflow with data connected from SQL table. I have created the flow see below 

SimonSeez_0-1630348051140.png

This is the result of my second SQL Qeuery 

SimonSeez_1-1630348229533.png

 

But my currentitem variable returns just one item. the last email 

SimonSeez_2-1630348283794.png

Hence my email gets sent this way only dinesh.kumar receives the mail 

SimonSeez_3-1630348554146.png

 

Kindly help. 

 

Best Regards,

Simon

 

 

I have the same question (0)
  • Verified answer
    MichaelAnnis Profile Picture
    5,727 Moderator on at

    Do you want your send email inside the For Each Loop?  So each %CurrentItem% gets an e-mail.  If so, it needs to be below "For Each" and above "End"  What I am envisioning is, the For Each runs with nothing in it, so it does:

     

    For Each 'CurrentItem=1' #Do nothing

    For Each 'CurrentItem=2' #Do nothing

    For Each 'CurrentItem=3' #Do nothing

    End For Each

     

    Now do something with CurrentItem...#but CurrentItem now =3, so you only get 3.

     

    It's possible I'm reading your question wrong, but that is what I got from up above.

     

    I would have to see your SendEmail parameters to be able to help further if this is not the issue.

     

    Best of luck!

  • Verified answer
    Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hi @SimonSeez 

    Not sure If I got your question correctly, but CurrentItem is used to loop into a list, retrieving one item at a time. That's why it's returning the last value of your list.

    If you want to send one email to each address of your list, you have to put the 'Send email' action inside your 'For each' loop, with To: %CurrentItem%

    If you want to send one email to all in your list, use 'Replace text' in your list, replace \n with ; or , (depending on your regional config). 'Use regular expressions for find and replace' must be activated. It will give you %Replaced% as variable produced. Use it as 'To:' in your 'Send email' action.

  • SimonSeez Profile Picture
    31 on at

    Hello @Anonymous 

     

    Thank you very much for your feedback. Adding the 'Send email' action inside the 'For each' loop resolved the issue.

     

    Appreciate.  

  • SimonSeez Profile Picture
    31 on at

    Hello @MichaelAnnis 

     

    You described the issue correctly as well. Placing the "send email" between For Each and End solved the issue. Thank you very much. 

     

    Best Regards, 

    Simon

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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 378

#2
Valantis Profile Picture

Valantis 329

#3
David_MA Profile Picture

David_MA 283 Super User 2026 Season 1

Last 30 days Overall leaderboard