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
Solved! Go to Solution.
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:
string(item()?['ID'])
Or you could click "Edit in advanced mode", type the following formula:
@equals(item()?['Test_x002d_Text_x002d_Record_x00'], string(item()?['ID']))
Note: The Test-Text-Record-ID column is a Single line of text type column in my SharePoint list.
Image reference:
The flow works successfully as below:
Best regards,
Kris
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:
string(item()?['ID'])
Or you could click "Edit in advanced mode", type the following formula:
@equals(item()?['Test_x002d_Text_x002d_Record_x00'], string(item()?['ID']))
Note: The Test-Text-Record-ID column is a Single line of text type column in my SharePoint list.
Image reference:
The flow works successfully as below:
Best regards,
Kris
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.
Now, this is the flow that didn't worked as expected but didn't have errors in runtime.
Hope to receive feedback from fellow flow users. thank you!
Dive into the Power Platform stack with hands-on sessions and labs, virtually delivered to you by experts and community leaders.
Watch Nick Doelman's session from the 2020 Power Platform Community Conference on demand!
User | Count |
---|---|
14 | |
14 | |
7 | |
6 | |
5 |
User | Count |
---|---|
24 | |
17 | |
10 | |
8 | |
6 |