cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
bryanc78
Helper III
Helper III

Filter Query - can it be used with a calculated column in a SharePoint list?

I have a calculated column in SharePoint that I use to determine when an item from the SP list should be archived.  It's called Archive 2.  Basically, when that column is today's date or older, I want my flow to run to delete that item.  This list has close to 5000 items in it so I want to use a filter so the flow only looks at those items that meet that criteria.  Here is what I have so far and the error I'm getting

 

Archive_x0020_2  le'utcNow()'

 

The field 'Archive_x0020_2' of type 'Calculated' cannot be used in the query filter expression.
clientRequestId: 2e30342f-df32-4d1a-84b8-027e3a8f1c3a
serviceRequestId: 2e30342f-df32-4d1a-84b8-027e3a8f1c3a

 

Any ideas?

 

1 ACCEPTED SOLUTION

Accepted Solutions
Mira_Ghaly
Dual Super User II
Dual Super User II

@bryanc78 

Unfortunately you can't use the Calculated Columns with the OData Filter , so what you need to do the calculation in the flow itself so for example you have a calculated column duedate which is 30 days from created on date

So in your flow to Get 30 days in the Past from Today using the Get Past Time and then in your flow add a filter

created eq OutputfromtheGetpasttime

Hope this gives you an idea!

If this post helps you with your problem, please mark your as Accepted solution.If you like my response, please give it a Thumbs Up.

Blog: here

View solution in original post

2 REPLIES 2
Mira_Ghaly
Dual Super User II
Dual Super User II

@bryanc78 

Unfortunately you can't use the Calculated Columns with the OData Filter , so what you need to do the calculation in the flow itself so for example you have a calculated column duedate which is 30 days from created on date

So in your flow to Get 30 days in the Past from Today using the Get Past Time and then in your flow add a filter

created eq OutputfromtheGetpasttime

Hope this gives you an idea!

If this post helps you with your problem, please mark your as Accepted solution.If you like my response, please give it a Thumbs Up.

Blog: here
bryanc78
Helper III
Helper III

Thank you

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.

May UG Leader Call Carousel 768x460.png

June User Group Leader Call

Join us on June 28 for our monthly User Group leader call!

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.

Power Automate Designer Feedback_carousel.jpg

Help make Flow Design easier

Are you new to designing flows? What is your biggest struggle with Power Automate Designer? Help us make it more user friendly!

Top Solution Authors
Top Kudoed Authors
Users online (1,346)