Forum Discussion

shebibn2020's avatar
shebibn2020
Copper Contributor
Aug 30, 2019
Solved

Get Sharepoint list with pending status and include in an email

Hi All,

 

I need some help with Flows. I'm trying to create a flow where the requirement is that, all Items with 'pending' status in on the list, gets picked up and sent to a reviewer or specific email address on every Monday morning. The list items can be either as a table on the email body or as an attachment to the email being sent.

 

Any idea if this is possible? I already have flows in place to inform individual task owners regarding their pending status. However, im not clear how to get all the list items into one mail attachment or on the body and set it as a recurring flow periodicallyAll leads would be appreciated.

  • Hi shebibn2020  yes this is quite straightforward to do. See the images below. The steps are:

     

    • For your trigger you need a recurrence schedule set to run every 1 week on Monday at 9am.
    • Then assuming your list is in SharePoint you add a SharePoint Get items action and set the Filter query to Status eq 'Pending' . In my example I have set it to 'In Progress' but that's just my list.
    • Then add a Create HTML table action, set the columns to Custom and add your header and value items.
    • Then add a Send an Email (v2) action to send the email with the output of the Create HTML table action.

    Rob
    Los Gallardos

    Microsoft Flow Community Super User

     

5 Replies

  • RobElliott's avatar
    RobElliott
    Silver Contributor

    Hi shebibn2020  yes this is quite straightforward to do. See the images below. The steps are:

     

    • For your trigger you need a recurrence schedule set to run every 1 week on Monday at 9am.
    • Then assuming your list is in SharePoint you add a SharePoint Get items action and set the Filter query to Status eq 'Pending' . In my example I have set it to 'In Progress' but that's just my list.
    • Then add a Create HTML table action, set the columns to Custom and add your header and value items.
    • Then add a Send an Email (v2) action to send the email with the output of the Create HTML table action.

    Rob
    Los Gallardos

    Microsoft Flow Community Super User

     

    • Can_make_it's avatar
      Can_make_it
      Copper Contributor

      RobElliott 

      What if there are 2 values?

      As in Sharepoint list column value is 'Pending' or 'N.A' then trigger to send recurrence email?

      Does filter query supports 2 or more values?

      • RobElliott's avatar
        RobElliott
        Silver Contributor

        Can_make_it yes you can have multiple conditions in a filter query: here's an example of one of mine with 3:

         

         

        Rob
        Los Gallardos
        Microsoft Power Automate Community Super User

Resources