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

Can I get index number in apply to each?

Hi,

      How can I get show no in action "Apply to each".

      I want to get no for send loop email such as.

            No. 1 is xxxxxxxxxx

            No. 2 is yyyyyyy

Thanks in advance.

Aor.

 

error_10.png

 

1 ACCEPTED SOLUTION

Accepted Solutions
v-alzhan-msft
Community Support
Community Support

Hi @Aor ,

 

Please refer to screenshot below to create the flow:

1.png

 

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

8 REPLIES 8
v-alzhan-msft
Community Support
Community Support

Hi @Aor ,

 

Please refer to screenshot below to create the flow:

1.png

 

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.

Aor
Helper I
Helper I

Hi,

        Solution is create outside variable and it can not get loop no in action "Apply to each".

Thank you very much for your information.

Aor

Hi @Aor ,

 

Have you take a try with the solution?

 

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.

Hi,

        This solution is working but I find out for other solution.

        Do you have any idea for get index no in loop not declare variable ?

Thank you very much for your support.

Aor.

 

Hi @Aor ,

 

There is no any other solution.

 

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.

Hi Alice,

        I accepted this solution.

       Thank you for your information.

Aor.

Anonymous
Not applicable

The suggested solution does not work inside an apply-to-each loop with concurrency set.  I can navigate through the index in the run log and see the data associated with each item, so the index should be possible!  When implementing the suggested solution the index count in the variable does not match the index of the run log.  The test I ran suggest it is randomly off the mark.

HEATFreight
Kudo Collector
Kudo Collector

This really ought to be possible without a variable! For instance, iterationIndexes() works in a Do Until loop. Why can't that same thing work in an Apply to Each loop?

Power Apps devs should fix this, as it's a sorely needed feature!

Helpful resources

Announcements
Microsoft 365 Conference – December 6-8, 2022

Microsoft 365 Conference – December 6-8, 2022

Join us in Las Vegas to experience community, incredible learning opportunities, and connections that will help grow skills, know-how, and more.

Difinity Conference 2022

Difinity Conference 2022

Register today for two amazing days of learning, featuring intensive learning sessions across multiple tracks, led by engaging and dynamic experts.

European SharePoint Conference

European SharePoint Conference

The European SharePoint Conference returns live and in-person November 28-December 1 with 4 Microsoft Keynotes, 9 Tutorials, and 120 Sessions.

Users online (2,014)