cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Frequent Visitor

Compare fields from Sharepoint in Odata filter

Hi there,

I'm trying to filter rows from a Sharepoint Online list which have different values in two columns.

ie: "Get items"-action with filterquery "Column1Name ne Column2Name"

Doesn't seem to be possible? The flow ends with a "Value does not fall within the expected range" error.

1 ACCEPTED SOLUTION

Accepted Solutions
Community Support
Community Support

Hi @SamVdv,

 

You could take a try with "Filter Array" action to achieve your needs:

Capture.PNG

 

Best regards,

Community Support Team _ Alice Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

4 REPLIES 4
Helper V
Helper V

Could you do something like the image below? Where you get all records from the list but only do something with that record if the are not equal using the Apply to each and condition.

 

FilterList.jpg

 

If this helped please mark as the solution.  

 

Thank you

Hi,

Your approach would certainly work, but because most items of the list have matching columns the filter would probably perform better.

I agree, I just don't think it is possible to do it the way you want.  We can see if someone else has a better solution.....

Community Support
Community Support

Hi @SamVdv,

 

You could take a try with "Filter Array" action to achieve your needs:

Capture.PNG

 

Best regards,

Community Support Team _ Alice Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Helpful resources

Announcements
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

Power Platform ISV Studio

Power Platform ISV Studio

ISV Studio is designed to become the go-to Power Platform destination for ISV’s to monitor & manage published applications.

Top Solution Authors
Top Kudoed Authors
Users online (14,009)