cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
PeterhW
Regular Visitor

Apply to each applied twice

Hello,

 

I'm a novice to all this flow, but i found it quite efficient. But a problem have occur which make me unable to use my flow.
it make the apply each inside the apply each so now i receive a lots of mails instead, of what i use to, BUT I didn't change anything since Friday on it, but when i look at it for debugging i see now these apply each twice, and no matter what i do i cant get rid of the second one, to no avail. Why have this happen?

 

My Flow is as such : Manually trigger a flow -> List rows present in table -> Filter array ( From Values contains "X" ) -> Apply to each (body) emty -> Apply to each  Send email
have a flow 

Hope some can shed some light on this - Thanks

1 ACCEPTED SOLUTION

Accepted Solutions

Hi @PeterhW ,

 

Could you please explain more details about your requirement?

The Apply to each in your screenshot is apply to each item from the Body output, and the Apply to each 2 in your screenshot is apply to each item from the excel table.

 

Do you want to filter rows from the excel table, and send an email to the Email column in the table?

If yes, you couldn't choose the EMAIL dynamic content from the list rows action, you could only use the expression for the EMAIL from the Body output,please refer to screenshot below to create the flow:

1.png

Expression from the EMAIL column as below:

items('Apply_to_each')?['EMAIL']

 

Best regards,

Alice       

 

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

View solution in original post

3 REPLIES 3
PeterhW
Regular Visitor

Okay its seems to be a error on the Microsoft Flow side. As i have tested this flow (build a exact copy) with another account (user) i no problems at all. So why does is automatically creates a apply to each 2 when i put in the subject value etc.  (see image)Image.png

Hi @PeterhW ,

 

Could you please explain more details about your requirement?

The Apply to each in your screenshot is apply to each item from the Body output, and the Apply to each 2 in your screenshot is apply to each item from the excel table.

 

Do you want to filter rows from the excel table, and send an email to the Email column in the table?

If yes, you couldn't choose the EMAIL dynamic content from the list rows action, you could only use the expression for the EMAIL from the Body output,please refer to screenshot below to create the flow:

1.png

Expression from the EMAIL column as below:

items('Apply_to_each')?['EMAIL']

 

Best regards,

Alice       

 

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

@v-alzhan-msft 
Huge thank this solve the problem 😁👍
Due to the holidays i haven't have the time to look at your fine answer, but again thanks for the time and explanation, still learning this Flow stuff.

Helpful resources

Announcements
MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

New Process Advisor Capabilities carousel.png

Read the blog for the latest news

Read the latest about new experiences and capabilities in the Power Automate product blog.

PA Survey Carousel Image.png

We want to hear from you!

If you are a small business ISV/Reseller, share your thoughts with our research team.

Users online (3,671)