Hello,
I'm trying to use the wildCardFilter parameter with Get-OdmReporting to retrieve the reportings from a Compare SharePoint task
I ran the following script :
- Get task details
$SPCompareSharePointContentTask=Get-OdmTask -Project $SpWKL -WildcardFilter @{name='Compare SharePoint Content - Migrated w/ issue -20261003'}
- Retrieve reportings
$Reportings=Get-OdmReporting -ProjectId $SpWKL -WildcardFilter @{TaskId=$SPCompareSharePointContentTask.Id} -All -Verbose
This returns nothing so I had to run the 2 commands below to get the required reportings
$AllReportings=Get-OdmReporting -ProjectId $SpWKL.Id -all -Verbose
$Reportings=$AllReportings | where {$_.TaskId -eq $SPCompareSharePointContentTask.Id}
I had a look to the online help but I don't understand why it does not work.
NAME
Get-OdmReporting
SYNOPSIS
Gets ODM reporting(s).
SYNTAX
Get-OdmReporting [[-ProjectId] <String>] [[-ObjectState] <String>] [[-ObjectType] <String>] [[-SourceName] <String>] [[-TargetName] <String>] [[-WildcardFilter] <Hashtable>] [-All] [<CommonParameters>]
-WildcardFilter <Hashtable>
Specifies wildcard filter. The parameter is optional.
Required? false
Position? 6
Default value
Accept pipeline input? false
Accept wildcard characters? false
Do I miss something ? Thanks
Martin