Welcome to deBUG.to Community where you can ask questions and receive answers from Microsoft MVPs and other experts in our community.
0 like 0 dislike
134 views
in Power Automate by 35 40 48
In Power Automate, how can I extract specific elements from an array based on their index? For instance, how do I retrieve the first, second, and subsequent elements from a given array?

1 Answer

2 like 0 dislike
by 48 54 93
selected by
 
Best answer

How to Access array elements by index in Power Automate?

You can extract specific elements from an array based on their index by following these steps:

  1. Add a "Compose" action to your flow. This action is where you'll write the expression to access the array element by index.
  2. In the "Compose" action, use the item() function to access a specific element of the array by its index. The syntax for the item() function is:

    item(variables('YourArrayName'), Index)
    

For more details, please check how to split string to array in Power Automate

by 35 40 48
0 0
Thanks Heba for your usual support, it's clear and the link is very helpful!
If you don’t ask, the answer is always NO!
...