web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Filter Array by variab...
Power Automate
Unanswered

Filter Array by variable list of values

(0) ShareShare
ReportReport
Posted on by 23

I have have a flow using SharePoint - Get Items.

 

I'd like to filter the resulting items by a variable list of item IDs and then output the filtered result to a single csv table (which will be emailed). Neither the Odata query abilities of Get Items nor the Filter Array action appear to allow this.

 

Is this possible?

 

I could of course use an Apply to Each on the array and Get Items separately for each ID, but how would I combine them into a single csv table?

 

Example:

 

Sharepoint list:

ID  ...other columns

___

1

2

3

4

5

 

ID Array:  [1,3,4]

 

Expected CSV table:

ID ...other columns

___

1

3

4

Categories:
I have the same question (0)
  • Verified answer
    v-yuazh-msft Profile Picture
    on at

    Hi @gmcanally

     

    I have made a test on my side, please refer to screenshot below to create the flow:

    Capture.PNG Capture.PNG

     

    The expression of the ID column in the "Create html table" action as below:

    item()['ID']

     

    The expression of the Title column in the "Create html table" action as below:

     

    item()['Title']

     

    The flow would run successfully as below:

    Capture.PNG

     

     

    Best regards,

    Alice

     

  • GabrielStJohn Profile Picture
    on at

    Hello, @gmcanally!

    Thank you for posting on the Flow Community Forum! Have you had an opportunity to apply @v-yuazh-msft‘s recommendation to adapt your Flow? If yes, and you find that solution to be satisfactory, please go ahead and click “Accept as Solution” so that this thread will be marked for other users to easily identify!

    Thank you for being an active member of the Flow Community!

    -Gabriel
    Flow Community Manager

  • gmcanally Profile Picture
    23 on at

    Thanks! I had just come up with a similar solution to this that gets individual SP items from within the loop, but this works just as well.

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 462 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 456 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard