Hi All
I have an issue trying to filter a sharepoint list using Get Items.
The scenario is the following:
- I have a sharepoint list with a monthly budget. The list defines the date range with a StartDate and EndDate column and a BudgetType Column. There are two budget types, so each date range is repeated two times.
- The flow starts when an item is created. Then I need to filter a list trying to get the correct budget using the date it started ('run date' greater or equal than StartDate AND less or equal than EndDate AND UPSType = 'InputItemUPSType')
Example. Dates are defined as Dates, no strings.
| ExpYear | ExpMonth | StartDate | EndDate | UPSType | BudgetAvailable |
| 2021 | March | 3/7/2021 | 4/3/2021 | On Going | 25,000 |
| 2021 | March | 3/7/2021 | 4/3/2021 | New | 50,000 |
So when the flow runs, I need to save the date it started and go to the list to try to get the correct budget based in which date range it falls in and which type it is.
See below how I am filtering the list. The expression I am using is
formatDateTime(utcNow(),'yyyy-MM-dd')
But I receive this Error.
The expression "2021-03-26 ge StartDate AND 2021-03-26 le EndDate AND UPSType eq {"@odata.type":"#Microsoft.Azure.Connectors.SharePoint.SPListExpandedReference","Id":0,"Value":"On Going"}" is not valid. Creating query failed.
I truly do not know how I fail. If I just filter StartDate ge '2021-03-26' it doesnt throw an error but thats not what I need.
How can I fix this?
