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 Automate
Suggested Answer

Filter not working

(2) ShareShare
ReportReport
Posted on by 112
Hello! 
 
I am trying to do a starts with filter in my flow. In my filter query I have a startswith(fieldname, "HiringNumber6") It is working but I have several hiring numbers that are like HiringNumber6-1 for example and it is only pulling one value. How do I get it to pull all of the values including the ones that have additional numbers? 
Categories:
I have the same question (0)
  • Suggested answer
    abm abm Profile Picture
    32,979 Most Valuable Professional on at
    Hi
     
    Comparisons are case sensitive.
     
    Try
     
    startswith(tolower(fieldname), 'hiringnumber6')
     
    If you have large number of data sets then set the pagination threshold.
     
    Thanks
     
     
  • Suggested answer
    Valantis Profile Picture
    1,044 on at
     
    Your filter startswith(fieldname, "HiringNumber6") is too specific. It's only matching the exact prefix "HiringNumber6" without the hyphen.
     

    Change it to: startswith(fieldname, "HiringNumber6-")

    This will pull all records like HiringNumber6-1, HiringNumber6-2, HiringNumber6-10, etc.

    The startswith() function matches character-by-character, so including the hyphen captures all the variants you need.

    If you also want records with just "HiringNumber6" (no hyphen), use:

    startswith(fieldname, "HiringNumber6-") or fieldname eq 'HiringNumber6'
    
     

    Give it a try and let me know how it works.

  • Valantis Profile Picture
    1,044 on at
     

    Just wanted to check in and see if everything is working now. If you still need any help, feel free to let me know.

    Also, if the issue is resolved, it would be great if you could mark the answer as solved so others with the same question can find it easily.

     

    Thanks and have a great day!

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…

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
trice602 Profile Picture

trice602 248 Super User 2026 Season 1

#2
David_MA Profile Picture

David_MA 207 Super User 2026 Season 1

#3
Power Platform 1919 Profile Picture

Power Platform 1919 101 Super User 2026 Season 1

Last 30 days Overall leaderboard