Power Automate Odata Filter Query Startswith

Are you aware of using an OData filter query startswith in a Power Automate flow? In this tutorial, I will demonstrate how to use Power Automate SharePoint ‘Get items’ filter query startswith condition inside a flow.

To fetch items from a SharePoint list using Power Automate Odata Filter Query Startswith, a user can apply a filter query condition in a Power Automate ‘Get items’ flow action to filter out the data. Example: startswith(Title, ‘SharePoint’) and CourseDelivery eq ‘Fulltime’.

Power Automate Filter Query Startswith String

Microsoft provides filter query parameters in the ‘Get items‘ and ‘Get rows‘ actions where it can filter and limit the data from a data source like a SharePoint list or SharePoint document library.

Power Automate string function i.e.’ starts with ‘filters the rows or items that have a value starting with a given string in the filter query of get items action.

To get the items from a data source, we can also use the startsWith() function instead of a filter query.

Syntax: startswith(fieldname,’startvalue’)

Follow the below instructions or steps to build a Power Automate flow:

  1. Create an Instant cloud flow in Power Automate.
  2. Add Get items action under the trigger.
  3. After that, add a create HTML table.
  4. Save and Test the Power Automate flow.
  5. Output of the Filter Query.

To do that, I will use a SharePoint list named ‘Course Enrollment Form‘ with ‘Course to Enroll’ as a Single line of text (Title column) datatype as displayed below.

Power Automate Using starts with to filter a SharePoint list

Recently, I was required to filter out the number of persons who have enrolled for the course ‘SharePoint’ along with course delivery being equal to ‘Fulltime‘.

Step: 1

  • To create an instant cloud flow, log into Power Automate with your Microsoft credentials.
  • Then, click on + Create and select Instant cloud flow.
Power Automate filter query using startswith to filter a SharePoint list
  • In the next window, select “Manually trigger a flow” and click on Create.
OData filter query startswith in SharePoint get items in a flow

Step: 2

  • In a Power Automate flow studio, add the ‘Get items’ flow action under the trigger and provide the below-given properties:
    • Site address: Set a specific SharePoint site from a drop-down.
    • List Name: Select a SharePoint list name from the drop-down.
    • Filter Query: Provide the filter query syntax like below based on SharePoint list columns.
startswith(Title,'SharePoint') and CourseDelivery eq 'Fulltime'


Power Automate filter query condition ‘notstartswith‘ is restrictive and not supported to filter out the data. And, this condition will get the error as ‘Fetching items failed. Possible invalid string in filter query’.
Example: not(startswith(My_x0020_Text_x0020_Column,’myText’)) – Not valid
notstartsWith(My_x0020_Text_x0020_Column,’myText’) – doesn’t work – Not valid

Where ‘Course Enrolled’ is the Title column and ‘eq’ means equals to in the Power Automate filter query syntax like the below screenshot.

Power Automate OData startswith function

Step: 3

  • In the next step, add Create HTML table and set the below details in it:
    • From: Take value from dynamic content.
    • Columns: Select a Custom table from the drop-down.
  • Then, add custom table values manually, as shown in the table:
Course Enrolled
Full Name
Date of Enrolling
Course Delivery
Select values from the dynamic content of a Get items output.
Power Automate Flow OData startswith function

Step: 4

  • Now, the flow is ready to save and test. Click on Save and Test Manually.
  • Then the flow will run successfully and display a notification as ‘ Your flow ran successfully ‘ as shown below:
Power Automate OData startswith returning all SharePoint items

Step: 5

  • The Body of an HTML table lists items that satisfy the condition as the course starts with ‘SharePoint’ along with the course delivery ‘ Fulltime’.
Power Automate odata filter query startswith

This is how to work with the Power Automate OData filter query startswith function.


I hope I have provided clear steps on how to use Power Automate SharePoint get items filter query starts with condition. Through this Power Automate tutorial, you will be able to understand the functionality of the Odata filter query inside a flow.

You may also like: