cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
solte98
Frequent Visitor

Sharepoint list Get Items query filter: The expression is not valid.

Hi,

 

I have an issue with a Flow Sharepoint Get Items action.

 

Its a very simple filter that tries to get an item of a sharepoint list (lets call it List A) based on a value from another sharepoint list (Lets call that List B).  The Value in Column Title List A is 'Sol'.  List B Title has unique values, so I want to filter it out and only get the items that has 'Sol' in the Title.

The query is as follows

 

Title eq 'Title'

 

Which is

 

Title eq 'Sol'

 

But I get a invalid expression

 

The expression "Title
 eq 'Sol'" is not valid.
clientRequestId: 9704f697-51c7-47de-972e-40d0f764ba7e
serviceRequestId: 5abf9f9e-d0d9-7000-fe72-a61f41d61aed

 

I tried manually enterting the string 'Sol' but still the same.

 

If I remove the fiilter, I can see that the value is there

 

{
  "value": [
    {
      "@odata.etag""\"5\"",
      "ItemInternalId""1",
      "ID"1,
      "Title""Sol",
      "Email_x0020_address""sol@it-x.co.uk",
      "Allocated_x0020_number_x0020_of_"40,
      

blah blah blah

 

Now, I do have a work around where I use a condition and not use a a filter, BUT would like to see if I can work with a simple filter

1 ACCEPTED SOLUTION

Accepted Solutions
v-yuazh-msft
Community Support
Community Support

Hi @solte98,

 

You should use expression:

Title eq 'Title dynamic content of the item in List A'

 

I have made a test on my side to create a flow as below:

Capture.PNG

And the expression in the Filter Array column as below:

Title eq '@{triggerBody()?['Title']}'

When an item is created in the List A and the Title is Sol, the flow would run successfully as below:

Capture.PNG

 

Best regards,

Alice

View solution in original post

1 REPLY 1
v-yuazh-msft
Community Support
Community Support

Hi @solte98,

 

You should use expression:

Title eq 'Title dynamic content of the item in List A'

 

I have made a test on my side to create a flow as below:

Capture.PNG

And the expression in the Filter Array column as below:

Title eq '@{triggerBody()?['Title']}'

When an item is created in the List A and the Title is Sol, the flow would run successfully as below:

Capture.PNG

 

Best regards,

Alice

View solution in original post

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Welcome Super Users.jpg

Super User Season 2

Congratulations, the new Super User Season 2 for 2021 has started!

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Top Solution Authors
Users online (1,536)