web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details
Power Automate - Building Flows
Answered

pull current index from the current apply to each for an array

Like (0) ShareShare
ReportReport
Posted on 17 Feb 2020 18:05:20 by

Ok, so I'm passing an array in of emails to an apply to each. there is a correlated answer field in a SharePoint list that is correlated to each email by where they are in the array.

EX:

Array[1] = "Dudebro@gmail.com"

Answer_1 = "dudebro's answer"

 

so what I'm trying to do in the apply to each is find what the current index is and do something like

"Answer_" + Index

I have the same question (0)
  • Verified answer
    RezaDorrani Profile Picture
    12,141 on 17 Feb 2020 at 18:19:12
    Re: pull current index from the current apply to each for an array

    Hi @Anonymous 

     

    IterationIndexes will provide you the current index of the for loop

    https://docs.microsoft.com/en-us/azure/logic-apps/workflow-definition-language-functions-reference#iterationIndexes

     

    --------------------------------------------------------------------------------
    If this post helps answer your question, please click on “Accept as Solution” to help other members find it more quickly. If you thought this post was helpful, please give it a Thumbs Up.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Tom Macfarlan – Community Spotlight

We are honored to recognize Tom Macfarlan as our Community Spotlight for October…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 707 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 499 Moderator

#3
chiaraalina Profile Picture

chiaraalina 312

Last 30 days Overall leaderboard