I am using Power Automate for the first time. I want to create a flow that will send me a reminder 3 days before the due date of an item from Microsoft Lists. I am getting this message:
The input parameter(s) of operation 'Foreach' contains invalid expression(s). Fix invalid expression(s) for the input parameter(s) of operation 'Foreach'.
In the flow:
1. Recurrence: (once per day).
2. Get items (): from my personal Sharepoint site, List Name of Current Tasks chosen from dropdown.
3. For each: body/value from previous steps is chosen as Output from previous steps.
My understanding is that body/value means pull in everything from my list items. How can that be invalid? Weirdly, when I copied the steps described by -dun-, the flow ran just fine. The Flow Checker found no issues, and I was able to successfully execute a test flow. Then I changed the -1 to a -3 so I'd get a reminder 3 days in advance. And somehow that seems to be breaking the earlier Foreach step, which is very confusing. Reverting the -3 to a -1 does not fix the error, even though the flow is identical to the state it was in when it worked.
Before trying to copy what -dun- provided, I tried creating the condition myself. And asking the built-in Copilot assistant to create a condition did what I needed. And asking copilot to build a whole flow from scratch that would accomplish my task. And asking Chat GPT to walk me through the steps. In all cases, it always tells me my input parameters contain invalid expressions and no further detail is provided.
Any insight or advice you can provide would be greatly appreciated.