Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Building Flows
Answered

How can I get values corresponding to an array ?

(1) ShareShare
ReportReport
Posted on by 6

Good evening everyone, 

 

I'm pretty much a Power Automate beginner and have succeeded in solving most of my issues thanks to this precious forum's passed messages, but there is one problem I cannot solve.

 

In the company I work in, we have a Sharepoint list in which each item is a user. Each user has several "Other MUs covered" that are attached to it, thanks to a multi-choice column that is filled manually.

l_lhomme_0-1720024567508.png

 

Each of these MU has a matching RU. We have a correspondence table in an Excel file stored in my personal OneDrive. It is pretty straightforward :

 

l_lhomme_1-1720025089091.png

 

I am trying to build a flow launched for a specific item from the Sharepoint list that would get every RU corresponding to each MU in the "Other MUs covered" and copy it in the "Other RUs covered" of this Sharepoint list. 

 

I have managed to do the basic stuff : "Get item" + "Select" action on the "Other MUs covered" column to get only the MU's names... but I don't know how to design the heart of the flow, which is to get the matching RU for every MU I get in this filtered array and update the "Other RUs covered" with the result. All my attempts have failed.

 

Anyone has an idea ? 😄

 

Best wishes

 

  • l_lhomme Profile Picture
    6 on at
    Re: How can I get values corresponding to an array ?

    Thanks @Pstork1, it's now working fine !

  • Verified answer
    Pstork1 Profile Picture
    66,824 Most Valuable Professional on at
    Re: How can I get values corresponding to an array ?
    1. Do a list rows on the Excel File to load the Table of RUs into memory.
    2. Then do an apply to each on the array of MUs in a record
    3. Inside the array use the Current MU to filter the list of RUs to get the matching RU and append that record to an array variable
    4. When you exit the list add array variable with the list of RUs to the record.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Michael Gernaey – Community Spotlight

We are honored to recognize Michael Gernaey as our June 2025 Community…

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard >