cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Zachariah
Frequent Visitor

Stuck in how to use an array of indices to pull strings from another array

I am trying to work out how use an array of indexes to pull strings from the corresponding position in another array.

 

For example:

 

arrayIndices = [0,4,6]
StringArray = ["string 1", "string 2", "string 3", "string 4", "string 5", "string 6", "string 7"]

resultsArray = []

 

 

The desired result would be:

 

 

resultArray = ["string 1" "string 5", "string 7"]

 

 

I am not sure how to achieve this in PowerUltimate.  Could I achieve it via nesting an apply to each loop in another apply to each loop?

Would that be the best approach?

1 ACCEPTED SOLUTION

Accepted Solutions
Paulie78
Super User
Super User

Like this:

2022-07-04_16-39-22.png

Blog: tachytelic.net

YouTube: https://www.youtube.com/c/PaulieM/videos

If I answered your question, please accept it as a solution 😘

View solution in original post

1 REPLY 1
Paulie78
Super User
Super User

Like this:

2022-07-04_16-39-22.png

Blog: tachytelic.net

YouTube: https://www.youtube.com/c/PaulieM/videos

If I answered your question, please accept it as a solution 😘

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

New Ideas Forum MPA.jpg

A new place to submit your Ideas for Power Automate

Announcing a new way to share your feedback with the Power Automate Team.

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.

MPA Licensing.jpg

Ask your licensing questions at the Power Automate AMA!

Join Priya Kodukula and the licensing team, super users and MVPs to find answers to your questions on Power Automate licensing.

Users online (3,541)