Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Simplify global variables so numbers can be better utilized by users without doing filtering themselves #5

Open
PrzemyslawKlys opened this issue Apr 18, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@PrzemyslawKlys
Copy link
Member

        EmailList {
            EmailListItem -Text "Found users matching rule to send emails: ", $SummaryUsersEmails.Count
            EmailListItem -Text "Sent emails to users: ", ($SummaryUsersEmails | Where-Object { $_.Status -eq $true }).Count
            EmailListItem -Text "Couldn't send emails because of no email: ", ($SummaryUsersEmails | Where-Object { $_.Status -eq $false -and $_.StatusError -eq 'No email address for user' }).Count
            EmailListItem -Text "Couldn't send emails because other reasons: ", ($SummaryUsersEmails | Where-Object { $_.Status -eq $false -and $_.StatusError -ne 'No email address for user' }).Count
            EmailListItem -Text "Sent emails to managers: ", $SummaryManagersEmails.Count
            EmailListItem -Text "Sent emails to security: ", $SummaryEscalationEmails.Count
        }
@PrzemyslawKlys PrzemyslawKlys added the enhancement New feature or request label Mar 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant