Update Get-MessageTrackingReport.md #12583
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
When you do something like:
You are storing several instances in the $Temp variable (which means $Temp is essentially a collection).
When running this next command:
You're providing multiple MessageTrackingReportIds at once—but this particular cmdlet expects just one identity at a time.
Hence, you receive an error saying PowerShell couldn't transform an ArrayList into an expected single identity.
Solution:
Handle this using a loop, iterating over each MessageTrackingReportId one-by-one. Here's an easy method:
Loop through each MessageTrackingReportId stored in $Temp and retrieve detailed tracking report summary: