cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
marcgiag
Resolver I
Resolver I

Can't filter out excel table using another excel table from previous step

Good morning… I am stuck on a project

I have 2 EXCEL Tables

 

Table 1 has a ID column, Name and Email Addresses (👍 I am able to get “List Rows Present in a Table” from this table)

marcgiag_0-1652882886673.png

 

Table 2 also has an ID Column with multiple rows with the ID

marcgiag_1-1652882886679.png

 

  1. My goal is to Apply to each from table 1
  2. Capture all records from table 2 where the Vendor ID = Vendor ID <--- this is failing 👎

The execution of template action 'Apply_to_each' failed: the result of the evaluation of 'foreach' expression '@items('Apply_to_each_2')?['Vendor']' is of type 'String'. The result must be a valid array.

 

marcgiag_2-1652883220656.png

 

After I get past B I will

  1. Create a html table
  2. Send email

Any help would be appreciated

1 ACCEPTED SOLUTION

Accepted Solutions
v-yujincui-msft
Community Support
Community Support

Hi @marcgiag ,

 

Do you want to get the records in Table 2 where the value of the Vendor ID column is contained in the Vendor ID column in Table 1?

 

I have made a test for your reference.

1. Here are my Tables.

vyujincuimsft_0-1653030093163.png

vyujincuimsft_2-1653030994950.png

2. Here is my Flow.

union(variables('VendorIDArray'),variables('VendorIDArray'))
items('Apply_to_each_2')

vyujincuimsft_3-1653032214962.png

vyujincuimsft_4-1653032334765.png

vyujincuimsft_5-1653032544561.pngvyujincuimsft_6-1653032693726.png

Result Screenshot:

vyujincuimsft_7-1653032786506.png

 

 

Best Regards,
Charlie Choi

View solution in original post

1 REPLY 1
v-yujincui-msft
Community Support
Community Support

Hi @marcgiag ,

 

Do you want to get the records in Table 2 where the value of the Vendor ID column is contained in the Vendor ID column in Table 1?

 

I have made a test for your reference.

1. Here are my Tables.

vyujincuimsft_0-1653030093163.png

vyujincuimsft_2-1653030994950.png

2. Here is my Flow.

union(variables('VendorIDArray'),variables('VendorIDArray'))
items('Apply_to_each_2')

vyujincuimsft_3-1653032214962.png

vyujincuimsft_4-1653032334765.png

vyujincuimsft_5-1653032544561.pngvyujincuimsft_6-1653032693726.png

Result Screenshot:

vyujincuimsft_7-1653032786506.png

 

 

Best Regards,
Charlie Choi

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.

May UG Leader Call Carousel 768x460.png

June User Group Leader Call

Join us on June 28 for our monthly User Group leader call!

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.

Power Automate Designer Feedback_carousel.jpg

Help make Flow Design easier

Are you new to designing flows? What is your biggest struggle with Power Automate Designer? Help us make it more user friendly!

Top Solution Authors
Top Kudoed Authors
Users online (1,139)