cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Helper II
Helper II

Apply to each first 3

Hi,

 

I have a flow that collects data from a form and adds rows to an excel file. In the form there is a multiple choice question with 10 values, for each value chosen in that question, a new row is added to the excel file up to the limit of 3.

 

My question is, how do I define the limit of 3 in the Apply to each? 

 

I leave here the flow structure...

 

Capture.JPG

 

1 ACCEPTED SOLUTION

Accepted Solutions
Super User II
Super User II

Hi @skindu,

 

You could add a integer count variable and an increment variable action and count to 3.

 

Updated my solution a bit. On second thought it might be easier just using a condition action within the apply to each instead 😁

You can also add a do until (which has the condition Count is greater than 3).

 

condition_count.png

 

Hope this helps a bit?

 

View solution in original post

2 REPLIES 2
Super User II
Super User II

Hi @skindu,

 

You could add a integer count variable and an increment variable action and count to 3.

 

Updated my solution a bit. On second thought it might be easier just using a condition action within the apply to each instead 😁

You can also add a do until (which has the condition Count is greater than 3).

 

condition_count.png

 

Hope this helps a bit?

 

View solution in original post

@Expiscornovus

 

It helped a lot!

Helpful resources

Announcements
Microsoft Ignite

Microsoft Ignite

Join digitally, March 2–4, 2021 to explore new tech that's ready to implement. Experience the keynote in mixed reality through AltspaceVR!

New Super Users

Meet the Power Automate Super Users!

Many congratulations to the Season 1 2021 Flownaut Crew!

Microsoft Ignite

Microsoft Power Platform: 2021 Release Wave 1 Plan

Power Platform release plan for the 2021 release wave 1 describes all new features releasing from April through September 2021.

MPA Community Blog

Power Automate Community Blog

Check out the community blog page where you can find valuable learning material from community and product team members!

Users online (43,643)