Skip to content

Conversation

padmagit77
Copy link
Contributor

No description provided.

tiffanyyumsft and others added 30 commits October 28, 2024 08:40
added limitation of cmdlet
added bypass to weird licensing issue. Apparently, this is not meant to happen
When you do something like:


$Temp = Search-MessageTrackingReport -Identity "Jane" -Recipients [email protected] -TraceLevel High

You are storing several instances in the $Temp variable (which means $Temp is essentially a collection). 

When running this next command:

Get-MessageTrackingReport -Identity $Temp.MessageTrackingReportID -ReportTemplate Summary -Status Delivered

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

foreach ($reportId in $Temp.MessageTrackingReportId) {
    Get-MessageTrackingReport -Identity $reportId -ReportTemplate Summary -Status Delivered
}
Update Get-MessageTrackingReport.md
Update Set-AutoSensitivityLabelRule.md
Update New-ProtectionAlert.md
Update Set-AppRetentionCompliancePolicy.md
Copy link

Learn Build status updates of commit fd48078:

✅ Validation status: passed

File Status Preview URL Details
exchange/exchange-ps/exchange/Get-MessageTrackingReport.md ✅Succeeded View (exchange-ps)
exchange/exchange-ps/exchange/New-ProtectionAlert.md ✅Succeeded View (exchange-ps)
exchange/exchange-ps/exchange/Set-AppRetentionCompliancePolicy.md ✅Succeeded View (exchange-ps)
exchange/exchange-ps/exchange/Set-AutoSensitivityLabelRule.md ✅Succeeded View (exchange-ps)
exchange/exchange-ps/exchange/Set-QuarantinePolicy.md ✅Succeeded View (exchange-ps)
exchange/exchange-ps/exchange/Test-TextExtraction.md ✅Succeeded View (exchange-ps)

For more details, please refer to the build report.

For any questions, please:

Update Set-AppRetentionCompliancePolicy.md
Copy link

Learn Build status updates of commit 518a97a:

✅ Validation status: passed

File Status Preview URL Details
exchange/exchange-ps/exchange/Get-MessageTrackingReport.md ✅Succeeded View (exchange-ps)
exchange/exchange-ps/exchange/New-ProtectionAlert.md ✅Succeeded View (exchange-ps)
exchange/exchange-ps/exchange/Set-AppRetentionCompliancePolicy.md ✅Succeeded View (exchange-ps)
exchange/exchange-ps/exchange/Set-AutoSensitivityLabelRule.md ✅Succeeded View (exchange-ps)
exchange/exchange-ps/exchange/Set-QuarantinePolicy.md ✅Succeeded View (exchange-ps)
exchange/exchange-ps/exchange/Test-TextExtraction.md ✅Succeeded View (exchange-ps)

For more details, please refer to the build report.

For any questions, please:

@padmagit77 padmagit77 merged commit a55d9f6 into live Mar 11, 2025
18 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants