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 / Error get sql rows and...
Power Automate
Unanswered

Error get sql rows and trying to send mail

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

 

 I am trying to create a flow that takes information from 2 different tables, but when trying to select a field from different tables to send an email, I throw the following error: 

 

error.JPG

 

 

"This output is an array. An element for each can not be nested within another element for each."

 

  

Does anyone know what this error is about?

 

Beforehand thank you very much.

Regards!!!

 

Categories:
  • v-yamao-msft Profile Picture
    Microsoft Employee on at

    Hi RafaelCDev,

     

    It seems that currently we are not able to add a loop inside another loop. There is similar request on Flow Ideas Forum, the status of the idea has been changed to Started, please consider to vote the idea at here:
    https://powerusers.microsoft.com/t5/Flow-Ideas/Nested-loops-support/idi-p/19329

     

    For your scenario, If you want get information from two tables, please consider a temporary workaround by using “Add a parallel branch”. Then you could get information from two tables and send an email with a same trigger.

    It might be something likes below, hope it can be a reference for you.

    3.PNG

     

    Please feel free reply if you need more help.

     

    Best regards,
    Mabel Mao

     

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Thank you Mabel,

     

    One more question, the purpose of my flow is to read from my database a series of records, some of these records are composed of several items, my question is how can I group the various items in a single email? If you need more details to help me, please let me know.

    For your attention Thank you !!!

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 Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Automate

#1
Mohsin Ali Profile Picture

Mohsin Ali 377

#2
11manish Profile Picture

11manish 302 Super User 2026 Season 2

#3
Henil Profile Picture

Henil 130

Last 30 days Overall leaderboard