Skip to main content
Community site session details

Community site session details

Session Id :
Power Automate - Building Flows
Unanswered

Flow Question

(0) ShareShare
ReportReport
Posted on by 1,135

I have a Flow that compares 'VehNo' from two arrays "ListVehNo" and "InspVehNo" and then appends non-common results to a third array "MissVehNo".  ListVehNo and InspVehNo are populated via Get items and append to array variables.

 

I now need to collect VehNo related info from "ListVehNo" (i.e., 'Supervisor') to send emails.  My first thought was to run a Get items where the SP List VehNo equals the MissVehNo.  I would then "Apply to each" these values and append to another array MissVehNoSupv.  values would include the VehNo and Supervisor.

{
"MVehNo": @{items('Apply_to_each_4')?['Title']},
"Supervisor": @{items('Apply_to_each_4')?['field_3']}
}

Is this the best method to accomplish retrieving the Supervisor field or is there a more efficient way?

  • hrangel-gg Profile Picture
    173 on at
    Re: Flow Question

    If the SP list used to populate the ListVehNo is the same that has the Supervisor information you can add all needed information to the ListVehNo and then into MissVehNo upon comparison.

     

    If the lists are different you need to use get items again. You could create a filter string and run once or get all supervisors and cache it or run get items for each ListVehNo. It all depends on how many records you have.

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

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June 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 > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 497 Super User 2025 Season 1

#2
David_MA Profile Picture

David_MA 436 Super User 2025 Season 1

#3
Riyaz_riz11 Profile Picture

Riyaz_riz11 244 Super User 2025 Season 1