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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Set a reminder filter ...
Power Automate
Answered

Set a reminder filter query syntax

(0) ShareShare
ReportReport
Posted on by 12

I have the standard 'Set a reminder' flow setup on a SP list. I would like to filter the list further. Example, region starts with "AZ". I'm just confused on the syntax. (OData is scary)

 

concat(concat('Proposed_x0020_Start',' ge ''''',outputs('Today_+_x_days')),'''',' and ', concat('Proposed_x0020_Start',' lt ','''', outputs('x_Days_+_1'),''''))
 
and startsWith(Region, 'AZ') ????
Categories:
I have the same question (0)
  • abm abm Profile Picture
    32,985 Most Valuable Professional on at

    Hi @andy10 

     

    Yes try extends with and startsWith(Region, 'AZ'). Are you getting any error?

  • andy10 Profile Picture
    12 on at

    Not sure what you mean by extends... I'm getting expression is invalid.

  • abm abm Profile Picture
    32,985 Most Valuable Professional on at

    Hi @andy10 

     

    Thanks for your quick reply. Is your concat expression works without the startsWith operator? If it works then try the below.

     

    startsWith(Region, 'AZ') and concat(concat('Proposed_x0020_Start',' ge ', '''',outputs('Today_+_x_days')),'''',' and ', concat('Proposed_x0020_Start',' lt ','''', outputs('x_Days_+_1'),''''))

  • andy10 Profile Picture
    12 on at

    Thanks. The concat expression works without startsWith.

     

    startsWith does not work before or after the expression. I get "expression is invalid."

  • Paulie78 Profile Picture
    8,424 Moderator on at

    You've made it much more complex than it needs to be with all the concatenation. You can just type into the odata filter query box and it will be concatenated automatically. This query does exactly what you are after.

     

    ProposedStart ge '@{addDays(utcNow(), variables('numberOfDays'))}' and ProposedStart lt '@{addDays(utcNow(),add(variables('numberOfDays'),1))}' and startswith(Region, 'UK') 

     

    FlowOData.PNG 

     

    Easier to read and does what you want.

  • abm abm Profile Picture
    32,985 Most Valuable Professional on at

    Hi @andy10 

     

    I just tried with the below and worked

     

    image.png

  • Verified answer
    abm abm Profile Picture
    32,985 Most Valuable Professional on at

    Hi @andy10 

     

    There was a case sensitive typo in my previous posts. The correct syntax is startswith

     

    Thanks

  • andy10 Profile Picture
    12 on at

    Thanks all.

     

    Yes, what I had was much too complicated, but that's what Microsoft generates from their standard template. 😄

     

     

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 873

#2
Valantis Profile Picture

Valantis 813

#3
Haque Profile Picture

Haque 526

Last 30 days Overall leaderboard