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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Need design help, Flow...
Power Automate
Answered

Need design help, Flow to get items from SP list, create an Excel file and then email

(0) ShareShare
ReportReport
Posted on by 310

I'm stuck on how best to design a flow for this use case.  

Objective

  1. scheduled flow once a week
  2. get items from a SharePoint list
  3. filter the items based on value in a choice column (eg. if choice columnA contains value 'Group1', include the item). The choice column permits multiple values for an item (eg. Group1, Group2 etc)
  4. create an Excel file with a table of the items
  5. send an email with the Excel file as an attachment

I know what actions are needed for objective 1, 2 and 5.  I'm not sure how to design objective 3 and 4 into an overall flow that performs well.  

 

Any help would be greatly appreciated.  

 

 

Categories:
  • Verified answer
    wskinnermctc Profile Picture
    6,519 Moderator on at

    For the Get Items from SharePoint, you can use the Filter Query field directly in the get items. 

     

    You have to write the filter query to get single selections or pairs however you want.

     

    Here is an example:

    Get Items - Filter QueryGet Items - Filter Query

     

    I have a SharePoint column named "GroupSelection" which is multi-choice.

     

    If I write the Filter Query with a single group name, it will get all rows that have that group even if it has additional groups.

     

    GroupSelection eq 'Group4'

     

     

    However, if I only wanted to return selections that had Group3 and Group4 I would put that into the filter query:

     

    (GroupSelection eq 'Group3' and GroupSelection eq 'Group4') or (GroupSelection eq 'Group1')

     

     

    This filter would return only rows which had both Group4 and Group4. It would also return any row that contained Group1.

     

    Here is a YouTube video for creating an Excel file.

    https://www.youtube.com/watch?v=RB_ySjhm9Sg 

     

    It would probably be easier to make a blank excel file with a table to use as a template. So you basically copy the file, then add rows to the table.

     

    But if you don't want to rely on a template, then  you can use the video.

  • allan_t Profile Picture
    310 on at

    @wskinnermctc Ah, I thought the filter query only worked with strings and integers.  I will try that, I didn't know the filter query would treat a choice column as a string column.   Any advice on how to put all of the items selected by the filter into a new Excel file?  

  • wskinnermctc Profile Picture
    6,519 Moderator on at

    Watch the youtube video I linked.

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Automate

#1
Mohsin Ali Profile Picture

Mohsin Ali 445

#2
11manish Profile Picture

11manish 345 Super User 2026 Season 2

#3
M Bilal Khan Profile Picture

M Bilal Khan 300

Last 30 days Overall leaderboard