I have a Flow that triggers when an item is created in a SharePoint list (Shop Attendance). If the column "Delay90Days" value is "yes" it gets items from another SharePoint list (Employee Roster) to find their start date. It then formats their Start Date to add 90 days. Once it grabs the date 90 days from their start date, it delays until then and updates the originally created item to give them vacation time (on the Shop Attendance site). I am getting an error on my Compose step where the formatDateTime expression is.
Error: "The template validation failed: 'The repetition action(s) 'Get items' referenced by 'inputs' in action 'StartDatePlus90' are not defined in the template.'."
Here is the Expression I'm using: formatDateTime(addDays(items('Get items')?['Start%5Fx0020%5FDate']),90,'yyyy-MM-dd')
I think maybe the error is telling me I have this part wrong: "items('Get items')?['Start%5Fxoo20%5FDate'])"??
If anyone knows how I should update this expression or maybe another way to accomplish the same goal, I'd appreciate the help.
Screenshot of the Flow attached.