cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Tango
Helper IV
Helper IV

Where to add the filter

Hi, I have a SharePoint list that will be used to store when alerts need to be sent. This will be based on a column called AlertDate.

 

I plan to schedule the flow to run once a day to look for Items that have an AlertDate equal to today.

 

Question is what would be best practice regarding where to put the query? Would it be inside a get items or before that be in say a condition?

 

 Thanks in advance

 

Todd

1 ACCEPTED SOLUTION

Accepted Solutions
Pstork1
Dual Super User
Dual Super User

The best place to do a filter like that would be in the Get Items itself as an OData query, but that can be difficult to do.  The next best place to put it would be in a filter array action after the data is retrieved in the Get Items.  There is no way to add it to a condition before you get the data in the Get Items.



-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

View solution in original post

4 REPLIES 4
Pstork1
Dual Super User
Dual Super User

The best place to do a filter like that would be in the Get Items itself as an OData query, but that can be difficult to do.  The next best place to put it would be in a filter array action after the data is retrieved in the Get Items.  There is no way to add it to a condition before you get the data in the Get Items.



-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

Thanks @Pstork1 

Thanks for your post.

 

what about doing the filtering in the view inside SharePoint and selecting that view in limit columns by view?

Pstork1
Dual Super User
Dual Super User

That will limit the columns returned, but doesn't do anything for filtering and sorting the data returned.  Power Automate only uses the views to get the list of columns to retrieve.



-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

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.

New Ideas Forum MPA.jpg

A new place to submit your Ideas for Power Automate

Announcing a new way to share your feedback with the Power Automate Team.

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.

MPA Licensing.jpg

Ask your licensing questions at the Power Automate AMA!

Join Priya Kodukula and the licensing team, super users and MVPs to find answers to your questions on Power Automate licensing.

Users online (4,077)