Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Using Flows
Unanswered

Sub filter in Sharepoint List to reflect in HTML table

(0) ShareShare
ReportReport
Posted on by 62

Hi there,

 

I've created a flow in Power Automate that is working, but I need to apply another filter in the content of the Sharepoint List.

These are the columns in the HTML table that come from my Sharepoint List:

OwnerDateDescription of the TaskProduct Type

 

I've added the "Date" as the current filter in "Get Items", as I want to have the reference of the deadline date.

However, I need to send separate emails depending on different Product Types instead of having one HTML table in the body of the email with the same list of people and product types.

Can you please have a look into the below flow and let me know how can I accomplish the following: 

  1.  Send separate emails filtered by product type 
  2.  The HTML table in the body of those emails to be also filtered by product type 

Any help is much appreciated. 

Flow.PNG

 

Flow 2.PNGGet Items.png

  • vsvsardo Profile Picture
    62 on at
    Re: Sub filter in Sharepoint List to reflect in HTML table

    Hi Habsburg,

    I've made some changes and now I have a different error message (snip below for reference):

    vsvsardo_0-1686913106921.png

     

  • v-zhoqian-msft Profile Picture
    Microsoft Employee on at
    Re: Sub filter in Sharepoint List to reflect in HTML table

    Hi @vsvsardo ,

     

    There is no error in my test. According to the error message, it is the lack of quotation marks outside first(), but I noticed that the formula in the picture seems to have already added quotation marks.

     

     

     

     

     

     

    Best Regards,

    Habsburg Qian

    If this post helps, then please consider Accept it as the solution to help the other members find it.

  • vsvsardo Profile Picture
    62 on at
    Re: Sub filter in Sharepoint List to reflect in HTML table

    Hi @v-zhoqian-msft ,

     

    I managed to fix that issue but now it's showing me a different error message about the "filter query" in "Get Items" from Sharepoint List (snips attached for reference). As you can see, "Date" is a column in my Sharepoint List so I don't understand why the query says there isn't a column with that name.

    Would you be able to help on this?

     

    Thank you in advance.

     

  • v-zhoqian-msft Profile Picture
    Microsoft Employee on at
    Re: Sub filter in Sharepoint List to reflect in HTML table

    Hi @vsvsardo ,

     

    It is strange that there are two "Apply to each" with the same name in the picture.

     

     

     

     

     

     

    Best Regards,

    Habsburg Qian

    If this post helps, then please consider Accept it as the solution to help the other members find it.

  • vsvsardo Profile Picture
    62 on at
    Re: Sub filter in Sharepoint List to reflect in HTML table

    Hiya,

    Now, i get the following error message:

    Error message 3.PNG

  • v-zhoqian-msft Profile Picture
    Microsoft Employee on at
    Re: Sub filter in Sharepoint List to reflect in HTML table

    Hi @vsvsardo ,

     

    I didn't use filter query in my flow.

    If the format of due date is date without time, you could refer to the follow method:

    vzhoqianmsft_0-1682076369668.png

     

     

     

    Best Regards,

    Habsburg Qian

    If this post helps, then please consider Accept it as the solution to help the other members find it.

     

  • vsvsardo Profile Picture
    62 on at
    Re: Sub filter in Sharepoint List to reflect in HTML table

    Hiya,

     

    Thank you for your working on a solution for me.

    What was the filter query you've used in "Get Items"? This flow that I've created should send the email when it's 30 days before the due data (deadline date)

    filter query.PNG

  • v-zhoqian-msft Profile Picture
    Microsoft Employee on at
    Re: Sub filter in Sharepoint List to reflect in HTML table

    Hi @vsvsardo ,

     

    Based on your description, I have made a simple test for your reference.

     

    SharePoint list for test:

    vzhoqianmsft_0-1682048447697.png

     

    This is flow:

    I put the create HTML table last because it becomes difficult to filter after becoming an HTML table.

    vzhoqianmsft_1-1682048674811.png

    vzhoqianmsft_2-1682048786369.png

     

    Result:

    vzhoqianmsft_3-1682048921513.png

     

     

     

    Best Regards,

    Habsburg Qian

    If this post helps, then please consider Accept it as the solution to help the other members find it.

     

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

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,700 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 66,015 Most Valuable Professional

Leaderboard

Featured topics

Restore a deleted flow