Hi
I've tried to make some changes to a flow I have but I cant figure it out to make it work properly.
What it basically does is send out reminders for contracts when a specific date happens.
Now, we still want reminders but based on 2 columns.
So, it all works based on a sharepoint list;
Documents will be uploaded in this list and be
few important columns;
"Startdatum" -> Start date of contract
"Einde Triennaat" -> First reminder alert. Here they want a reminder 7 and 8 months before this date occurs
"Einde contract" -> Second reminder alert.Here they want a reminder 16 and 18 months before this date occurs
"ExtraEmail" -> Column they can insert an extra email address for the reminder

What I have now (before we made these column changes on top)

The current magic happens on the "Filter Array" (again, this is outdated based on the columns we had and want now)
In my Filter Array now;
@Or(
equals(addDays(item()?['Vervaldatum'], mul(int(string(coalesce(item()?['RemindMeXDaysBeforeExpire'], 9999))), -1), 'yyyy-MM-dd'), body('Convert_time_zone')),
equals(addDays(item()?['Vervaldatum'], -7, 'yyyy-MM-dd'), body('Convert_time_zone')),
equals(addDays(item()?['Vervaldatum'], -30, 'yyyy-MM-dd'), body('Convert_time_zone')),
equals(addDays(item()?['Vervaldatum'], -60, 'yyyy-MM-dd'), body('Convert_time_zone')),
equals(addDays(item()?['Vervaldatum'], -90, 'yyyy-MM-dd'), body('Convert_time_zone'))
)
Someone tried to help me before but I cant figure out what to exactly place where;
If this is useable, please guide me;
Replace the Filter Array by the following;

lessOrEquals(addDays(body('Convert_time_zone'), -210, 'yyyy-MM-dd'),'Einde Triennaat')
greaterOrEquals(addDays(body('Convert_time_zone'), -240, 'yyyy-MM-dd'),'Einde Triennaat')
lessOrEquals(addDays(body('Convert_time_zone'), -210, 'yyyy-MM-dd'),'Einde contract')
greaterOrEquals(addDays(body('Convert_time_zone'), -240, 'yyyy-MM-dd'),'Einde contract')
I'm not sure on what to place on the marked fields on top.
Also, the problem here was that it was spitting out reminder for documents that were not relevant and their date was much older.
I was getting spammed daily with multiple reminder about certain files on the list.
Thank you!!!