Hi @critski
Please see the screenshot below:
By events list, I am assuming that you have created a calendar app and the list is the name of that. So in the Get Items, that list will not show up in the drop down. You have to add a custom value and enter the name of the list over here.
The Yes/No columns of SP are of type boolean and so I am filtering only those items that have the value as Yes in the Get items action only. (CustCol is my Yes/No column on the Event list).
Now in the apply to each i am iterating on all the events recieved from the get items action and then checking if the start time is before two weeks from now.
The exprfessions used are:
Left : ticks(formatDateTime(items('Apply_to_each')?['EventDate'],'dd-MM-yyyy'))
Operator: Lesser than
Right: ticks(formatDateTime(addDays(utcNow(),14),'dd-MM-yyyy'))
You might want to convert the timezone for acurate values.
Edit: Please change the filter query to CustCol eq 1.
In SP Yes/No column, the values are No- 0, Yes- 1.
Hope this Helps!
If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!