Showing results for 
Search instead for 
Did you mean: 
New Member

Error get sql rows and trying to send mail


 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: 





"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.



Community Support
Community Support

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:


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.



Please feel free reply if you need more help.


Best regards,
Mabel Mao


Community Support Team _ Mabel Mao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

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

Helpful resources

Process Advisor

Introducing Process Advisor

Check out the new Process Advisor community forum board!

MPA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

V3_PVA CAmpaign Carousel.png

Community Challenge - Giveaways!

Participate in the Power Virtual Agents Community Challenge

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Users online (2,149)