cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
NigelP
Kudo Kingpin
Kudo Kingpin

Problems with Filters

Hi

 

I am using the Get Items action.

 

I am trying to use a filter :-

 

equals(['Test-Text-Record-ID'],['Identifier'])

 

I have also tried equals(['Test-Text-Record-ID'], String(['Identifier']))

 

Where Test-Text-Record-ID is a text column (field) in my list and Identifier is the ID column.

 

When I hit OK when creating the expression I get an error "This Site says Invalid Expression", but it does not say what is wrong.

 

What is wrong with my filter ?

 

Could we have better diagnostics please ?

 

Regards

 

Nigel

1 ACCEPTED SOLUTION

Accepted Solutions
v-xida-msft
Community Support
Community Support

Hi @NigelP,

 

Could you please share a screenshot of your flow's configuration?

Do you add a "Get items" action of SharePoint connector within your flow?

Further, how do you filter items from the output of the "Get items" action? Using OData query within Filter Query field of the "Get items" action or adding a "Filter array" action to filter items?

 

If you want to filter items from the output of the "Get items" action using OData query within Filter Query field of the "Get items" action, I afraid that there is no way to achieve your needs in Microsoft Flow currently.

 

If you want to filter items from the output of the "Get items" action via adding a "Filter array" action, please take a try with the following workaround:

  • Add a proper trigger, here I use Flow Button trigger.
  • Add a "Get items" action, specify Site Address and List Name.
  • Add a "Filter array" action, From set to output of the "Get items" action. Within Condition box, left input box set to Test-Text-Record-ID dynamic content of the "Get items" action, right input box set to following formula:
string(item()?['ID'])

10.JPG

Or you could click "Edit in advanced mode", type the following formula:

@equals(item()?['Test_x002d_Text_x002d_Record_x00'], string(item()?['ID']))

11.JPG

 

Note: The Test-Text-Record-ID column is a Single line of text type column in my SharePoint list. 

 

Image reference:9.JPG

The flow works successfully as below:12.JPG

 

 

Best regards,

Kris

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

View solution in original post

2 REPLIES 2
v-xida-msft
Community Support
Community Support

Hi @NigelP,

 

Could you please share a screenshot of your flow's configuration?

Do you add a "Get items" action of SharePoint connector within your flow?

Further, how do you filter items from the output of the "Get items" action? Using OData query within Filter Query field of the "Get items" action or adding a "Filter array" action to filter items?

 

If you want to filter items from the output of the "Get items" action using OData query within Filter Query field of the "Get items" action, I afraid that there is no way to achieve your needs in Microsoft Flow currently.

 

If you want to filter items from the output of the "Get items" action via adding a "Filter array" action, please take a try with the following workaround:

  • Add a proper trigger, here I use Flow Button trigger.
  • Add a "Get items" action, specify Site Address and List Name.
  • Add a "Filter array" action, From set to output of the "Get items" action. Within Condition box, left input box set to Test-Text-Record-ID dynamic content of the "Get items" action, right input box set to following formula:
string(item()?['ID'])

10.JPG

Or you could click "Edit in advanced mode", type the following formula:

@equals(item()?['Test_x002d_Text_x002d_Record_x00'], string(item()?['ID']))

11.JPG

 

Note: The Test-Text-Record-ID column is a Single line of text type column in my SharePoint list. 

 

Image reference:9.JPG

The flow works successfully as below:12.JPG

 

 

Best regards,

Kris

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

View solution in original post

Marvin2
Regular Visitor

Hi, 

Actually my flow didnt register any error upon running but rather IT didn't Worked as expected... 

 

This is the screenshot that the flow worked correctly.

 

Marvin2_0-1598524557526.png

 

Now, this is the flow that didn't worked as expected but didn't have errors in runtime.

 

Marvin2_2-1598524824153.png

 

Hope to receive feedback from fellow flow users. thank you!

Helpful resources

Announcements
Process Advisor

Introducing Process Advisor

Check out the new Process Advisor community forum board!

MPA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

V3_PVA CAmpaign Carousel.png

Community Challenge - Giveaways!

Participate in the Power Virtual Agents Community Challenge

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.

Carousel April Dunnam Updated 768x460.jpg

Urdu Hindi D365 Bootcamp

Dont miss our very own April Dunnam’s The Developer Guide to the Galaxy! Find out what the Power Platform has to offer for the traditional developer.

Users online (2,235)