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

Community site session details

Session Id :
Power Automate - Building Flows
Answered

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!

I have the same question (0)
  • Paulie78 Profile Picture
    8,418 Moderator on at
    Re: GetItems ODATA compare two SharePoint list number columns

    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
    Re: GetItems ODATA compare two SharePoint list number columns

    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
    Re: GetItems ODATA compare two SharePoint list number columns

    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,418 Moderator on at
    Re: GetItems ODATA compare two SharePoint list number columns

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

  • C_Crow Profile Picture
    19 on at
    Re: GetItems ODATA compare two SharePoint list number columns

    Anything is appreciated, video is spot on 👍
    Thank you

  • Verified answer
    Paulie78 Profile Picture
    8,418 Moderator on at
    Re: GetItems ODATA compare two SharePoint list number columns

    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
    Re: GetItems ODATA compare two SharePoint list number columns

    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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Chiara Carbone – Community Spotlight

We are honored to recognize Chiara Carbone as our Community Spotlight for November…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 691 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 431 Moderator

#3
developerAJ Profile Picture

developerAJ 266

Last 30 days Overall leaderboard