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 / SQL GetRows Filter Get...
Power Automate
Answered

SQL GetRows Filter GetSubStringof

(0) ShareShare
ReportReport
Posted on by 34

The objective of my flow is as follows:

  • Get user input through an MS form.
  • Query on a text value entered in the form, which will be a substring of the value in the database table field. (eg: user enters: "192876", field contains "019287632584  ")

Tried using "substringof" in the "filter Query option", but the Flow throws an error stating:

"message": "An unknown function with name 'substringof' was found

substringof.GIF

What am I doing wrong?
 
Categories:
I have the same question (0)
  • v-alzhan-msft Profile Picture
    Microsoft Employee on at

    Hi @NazIM ,

     

    The 'substringof' isn't an exist function in microsoft flow, do you want to use the substring function as link below?

    https://docs.microsoft.com/en-us/azure/logic-apps/workflow-definition-language-functions-reference#substring

     

    Also if you want to filter items from the sql table, you need to enter the expression in the Filter array field with type as below:

    Title eq 'Dynamic content from the form'

     

    I suggest that you could take a try with the "Filter array" action since it is easier, please refer to screenshot below:

    1.png

     

    Best regards,

    Alice       

     

    Community Support Team _ Alice Zhang
    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

     

  • NazIM Profile Picture
    34 on at

    I don't think that is necessary. The filter does work (I have tried the part just before the AND and it works). This (https://veenstra.me.uk/2018/11/12/microsoft-flow-filter-queries-in-sharepoint-get-items/) blog states that substringof is a valid function for the filter query.

     

    Dont know what Im missing here.

  • Verified answer
    v-alzhan-msft Profile Picture
    Microsoft Employee on at

    Hi @NazIM ,

     

    I have made a test on my side, when use the substringof function in the Get row action of SQL Server connector, the flow would run failed with thw same error message as yours.

    The substringof function is not supported in the Filter Query in SQL Server currently, as is discussed in the link below:

    https://powerusers.microsoft.com/t5/General-Flow-Discussion/ODATA-substringof-not-valid-in-GET-ROWS/td-p/314529

     

    So please take a try with my solution in my first reply to use the "Filter Array" action to achieve your requirement, please let me know if your problem could be solved.

     

    Best regards,

    Alice       

     

    Community Support Team _ Alice Zhang
    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

  • paulhaagsefa Profile Picture
    39 on at

    I don't know if this has changed since this question was originally asked, but while "substringof" does not work, "contains" does (https://skyvia.com/blog/odata-cheat-sheet).

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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Valantis Profile Picture

Valantis 482

#2
11manish Profile Picture

11manish 280

#3
David_MA Profile Picture

David_MA 268 Super User 2026 Season 1

Last 30 days Overall leaderboard