Hi all,
I am using PA, Sharepoint, teams, etc to make a time off request process and have most of it done now working on some formatting stuff. I would like to add a column to mark when the requests (sharepoint items) have overlapping start or end dates. I have my items in an array that look like the following in Powerautomate.
[
{
"id": "231",
"start_date": "2024-09-26",
"end_date": "2024-10-02",
"rank": "S7"
},
{
"id": "267",
"start_date": "2024-09-23",
"end_date": "2024-10-01",
"rank": "S6"
},
{
"id": "133",
"start_date": "2024-07-29",
"end_date": "2024-08-02",
"rank": "S12"
},
{
"id": "236",
"start_date": "2024-07-01",
"end_date": "2024-07-12",
"rank": "S9"
},
{
"id": "223",
"start_date": "2024-07-01",
"end_date": "2024-07-05",
"rank": "S2"
},
{
"id": "248",
"start_date": "2024-03-12",
"end_date": "2024-03-12",
"rank": "S12"
}
]
I was trying to do a for each on this array, see if there were items with overlapping dates and if so add them to another array (to then mark the formatting column as true). For example, the first two entries in the list above have overlapping days from Sept 26 to October 1. I thought I could do this with filter array, but I can't seem to figure out the UI on this..
How could I find the overlapping dates using Powerautomate??

