How to get baseline ID by passing publication ID in ISHRemote?

Hi,

 

I am trying to get all baseline item(topic ID, image ID etc) using below script and able to gt all the details.

$ishSession = New-IshSession -WsBaseUrl $url -IshUserName $username -IshPassword  $password
    $baselineIds = @("GUID-9D4D5E8D-EF9F-4B9D-9760-DB55D4898377")
   
# echo Get-IshBaselineItem -IshSession $ishSession -Id $baselineIds

$basename=Get-IshBaselineItem -IshSession $ishSession -Id $baselineIds | Out-File D:\filename.txt

 

But I am passing baseline ID only to get all these result. Is there any way to pass publication ID and get baseline ID so I can pass baseline ID in this script and get all baseline Items.

Thanks

Roopesh

Parents Reply Children
  • Good idea indeed with a small consideration. ISHRemote is not a 1-1 proxy of the API classes and functions. Often a cmdlet utilizes different functions and internally combines the data. This is because we wanted to offer a higher level than the API experience to the PowerShell user. Similar to how e.g. Publication manager does which also combined functions and data. Another aspect for this is that ISHRemote will use the best possible version of the API call based on the product version.
    Not sure if such a table as proposed would be relevant but it is something we are going to consider and thank you for the suggestion.