web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / GetItems ODATA compare...
Power Automate
Unanswered

GetItems ODATA compare two SharePoint list number columns

(0) ShareShare
ReportReport
Posted on by 19

I have a materials catalogue and two of the columns are StockHeld and MinStock. These are both number columns in a SharePoint list. I'm trying to create a flow that will grab all items where the StockHeld is less than the MinStock.

 

On GetItems I am using the Filter Query of;

StockHeld lt MinStock

 

It returns an error of 'Fetching items failed. Possible invalid string in filter query.'

I've double checked the column names and that all rows have a number entered etc. Just cannot seem to jiggle the query about to work! 

 

Any help is appreciated!

Categories:
I have the same question (0)
  • Paulie78 Profile Picture
    8,422 Moderator on at

    Although what you want to do seems like a really simple objective if you have used a normal database system of any kind, but I do not believe it is possible to do what you want to do in the oData query.

     

    Instead, you would have to return the list, and then pass it through a "Filter Array" action to reduce the rows down to the ones that have StockHeld less than minimum stock.

     

    Do you know what I mean or would you like a demonstration? 

  • C_Crow Profile Picture
    19 on at

    Thank you for your response

    I did attempt a filter array but I didn't get very far with it! A demonstration would be most appreciated

     

    Thanks in advance

  • C_Crow Profile Picture
    19 on at

    Probably also worth mentioning the goal was to have the results pull into a HTML table that will be emailed out to my team 

  • Paulie78 Profile Picture
    8,422 Moderator on at

    Would you mind a video demo? It would just be quicker for me to produce.

  • C_Crow Profile Picture
    19 on at

    Anything is appreciated, video is spot on 👍
    Thank you

  • Verified answer
    Paulie78 Profile Picture
    8,422 Moderator on at

    Here is how you can do it, I didn't edit the video or make it polished etc. But you should get the point. You could do a lot worse than subscribe to my YouTube channel while you are there! 😁 Let me know how you get on.

     

    https://www.youtube.com/watch?v=qC2AgRuiZHc

     

  • C_Crow Profile Picture
    19 on at

    Amazing, that was great thanks!

    The Select addition was very helpful as I can think of a few flows I can use that function

     

    Many thanks and I've subscribed to YT! 

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 462 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 456 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard