You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Check if this search ID has a failed attempt in the last 4 hours
23
+
$failedEntity=Get-CIPPAzDataTableEntity@FailedDownloadsTable-Filter "PartitionKey eq '$TenantFilter' and SearchId eq '$SearchId' and Timestamp ge datetime'$($fourHoursAgo.ToString('yyyy-MM-ddTHH:mm:ssZ'))'"
24
+
25
+
if ($failedEntity) {
26
+
$message="Skipping search ID: $SearchId for tenant: $TenantFilter - Previous attempt failed within the last 4 hours"
0 commit comments