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
    Valantis Profile Picture
    698 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.

  • Suggested answer
    abm abm Profile Picture
    32,971 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
     
     

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
David_MA Profile Picture

David_MA 245 Super User 2025 Season 2

#2
trice602 Profile Picture

trice602 228 Super User 2025 Season 2

#3
Expiscornovus Profile Picture

Expiscornovus 188 Most Valuable Professional

Last 30 days Overall leaderboard