Hi All,
I'm trying to get a value from a Sharepoint List and looking to filter down the data set using ODATA filters.
This does'nt seem to be as intuitive as the rest of the flow structure.
I'm getting an error stating the expression is not valid. I can only presume that my query ont he column name is wrong as the data value i'm testing for is correct.
Can anyone help?
Header:
Hi,
Am Facing the same issue.
Does anyone know how to resolve this?
It was working before
how to compare persons or group fields in OData Query. i am getting the error as below.
"status": 400,
"message": "The expression \"DelegationFrom eq i:0#.f|membership|venkat@infyevonik.onmicrosoft.com\" is not valid.\r\nclientRequestId: 638efdb5-b91a-4009-8cfd-20a0c3beec48\r\nserviceRequestId: 6127959e-d0b6-0000-128e-3c5f386ffa78"
Hi @BenDaneliuk and @WiggityZwiggity
I use in most of my flows the GetItens action in SharePoint and this realy works!
Somethimes i and my team wrong the rest filter and the solution for us if before put in flow test in browser using the following url
https://SHAREPOINT SITE URL/_api/web/lists/getByTitle('LIST NAME')/items?$filter=FILTER
if the result in browser is ok, tou can put the FILTER inside the field in MSFlow and see the magic 🙂
A MSDN page can help you if u need about using rest in SharePoint
Regards,
Gustavo Moraes
Hi @WiggityZwiggity,
Yes, it works.
Please add a condition, put the corresponding field dynamic content into the first Input Box, then click advanced mode, then you should be able to find the proper field identifier:
The field name here is Testing Text, while the workable column field is marked as 'haiz'
So if we would like to take use of this column to filter query, the formula should be:
haiz eq 'TextValue'
For the value part, it is the actual text, no need to replace the Space with other charactor.
Regards,
Michael
Curious if you have gotten this to work. I have tried every permutation imaginable and have not been able to get this to work
Field Name eq 2 Part Value
Field Name eq 2%20Part%20Value
Field Name eq "2%20Part%20Value"
Field Name eq '2%20Part%20Value'
Field Name eq "2 Part Value"
Field Name eq '2 Part Value'
Field_x0020__Name eq 2 Part Value
Field_x0020__Name eq "2 Part Value"
Field_x0020__Name eq '2 Part Value'
Field_x0020__Name eq 2%20Part%20Value
Field_x0020__Name eq "2%20Part%20Value"
Field_x0020__Name eq '2%20Part%20Value'
Every single one has been tried, none of them work, so do Odata filters really work?
Thanks Michael,
Was hoping to keep the control all within flow rather than drop out into SP designer to develop the REST commands.
Understand the ODATA filters aren't working for all connectors. Thanks to the info.
I'll have a dabble with the conditions, but may have to bite the bullet and use the SP designer to create this work flow.
Thanks
Ben
Hi @BenDaneliuk,
Would it be available to filter the SharePoint lists with Condition under Microsoft Flow?
Currently OData filters are not implemented yet by all connectors.
See the response from SameerCh in the following thread:
ODATA Filters - are these implemente
But the filter query works for SharePoint lists.
Currentlly the Filter Query under the Action Act as the
$filter in OData Query,
The Order By act as the:
There is no $select query implemented under the Action.
So if you would like to return special fields from the SharePoint list (See OData reference for SharePoint REST query), you may consider submit this as an idea, to add the $Select as an available Query under the Get Items Action.
https://powerusers.microsoft.com/t5/Flow-Ideas/idb-p/FlowIdeas
Regards,
Michael
WarrenBelz
146,524
Most Valuable Professional
RandyHayes
76,287
Super User 2024 Season 1
Pstork1
65,906
Most Valuable Professional