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

Filter property cannot be empty #3

Open
Rick-Jongbloed opened this issue Dec 22, 2023 · 0 comments · May be fixed by #6
Open

Filter property cannot be empty #3

Rick-Jongbloed opened this issue Dec 22, 2023 · 0 comments · May be fixed by #6
Labels
bug Something isn't working

Comments

@Rick-Jongbloed
Copy link
Member

Rick-Jongbloed commented Dec 22, 2023

When the filter property is left empty, the script doesn't run. This is fixable by replacing the current code for the query around line 1350 by


	if (-not[String]::IsNullOrEmpty($exchangeMailboxesFilter)) {
		$exchangeQuerySplatParams = @{
			Filter               = $exchangeMailboxesFilter
			Properties           = $properties
			RecipientTypeDetails = "SharedMailbox"
			ResultSize           = "Unlimited"
		}
	} else {
		$exchangeQuerySplatParams = @{
			Properties           = $properties
			RecipientTypeDetails = "SharedMailbox"
			ResultSize           = "Unlimited"
		}
        }
@JeroenBL JeroenBL added the bug Something isn't working label Jun 5, 2024
@rhouthuijzen rhouthuijzen linked a pull request Feb 21, 2025 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
2 participants