Hello,
I have a Power App screen that filters a table based on different drop down menus using “= Blank()” to allow blank drop downs without affecting the filter in the table. I am trying to create an OData expression to be entered into the Filter Query field in the SP action step ‘Get Items’ that will filter the SP list based on the drop down inputs on the Power App the same way. I have been able to create one that will require a value in all the drop down fields, but not one that will allow blanks without affecting the filter (i.e. if I leave the Unit field blank, it will pull all records regardless of unit but filter based on the rank only).
This is what I have so far (I separated the “ands” to make it easier to see):
ExportFCPRosterbyUnit. Run (
"Unit eq ‘" & UnitDropdown_3.Selected.Value & “‘
and Rank eq ‘" & RankDropdown_2.Selected.Value & "'
and Marital_×0020_Status eq ‘" & MarritalStatusDropdown_2.Selected.Value & "’
and Mil_x0020_to_×0020_Mil_×0020_Sta eq ‘" & MiltoMiLDropdown_2.Selected.Value & "’
and FCP_×0020 Required eq ‘“ & FCPDropdown_2.Selected.Value & "' ")
How can I change the OData code to allow for the blank drop downs and not require a selection to return items in the Power Automate flow?