Hi,
Is there a way to download a published PDF using the version 25 APIs or the ISHRemote PowerShell library?
Hi,
Is there a way to download a published PDF using the version 25 APIs or the ISHRemote PowerShell library?
Hi Rich
Looking into the code I see an FTITLE is required to generate a proper filename.
Please log a GitHub issue to improve the error message and/or skip the title if not presented for the FileNameHelper class.
So my working code is
$ishSession = New-IshSession -WsBaseUrl "https://example.com/ISHWS/" -PSCredential "Admin"
$requestedMetadataRetrieve = Set-IshRequestedMetadataField -IshSession $ishSession -Name 'FISHOUTPUTFORMATREF' -Level "Lng" |
Set-IshRequestedMetadataField -IshSession $ishSession -Name 'FISHPUBLNGCOMBINATION' -Level "Lng" |
Set-IshRequestedMetadataField -IshSession $ishSession -Name 'FISHPUBSTATUS' -Level "Lng" |
Set-IshRequestedMetadataField -IshSession $ishSession -Name 'FISHPUBLISHER' -Level "Lng" |
Set-IshRequestedMetadataField -IshSession $ishSession -Name 'FISHPUBSTARTDATE' -Level "Lng" |
Set-IshRequestedMetadataField -IshSession $ishSession -Name 'FISHPUBENDDATE' -Level "Lng" |
Set-IshRequestedMetadataField -IshSession $ishSession -Name 'VERSION' -Level "Version" |
Set-IshRequestedMetadataField -IshSession $ishSession -Name 'FTITLE' -Level "Logical"
$metadataFilterRetrieve = Set-IshMetadataFilterField -IshSession $ishSession -Name 'FISHPUBSTATUS' -Level 'Lng' -ValueType "Value" -FilterOperator "Equal" -Value "Released"
$publicationOutputs = Find-IshPublicationOutput -IshSession $ishSession -StatusFilter "ishnostatusfilter" -MetadataFilter $metadataFilterRetrieve -RequestedMetadata $requestedMetadataRetrieve
[int] $mycounter = 1
foreach ( $pubItem in $publicationOutputs ) {
$fileInfoArray = $publicationOutputs | Get-IshPublicationOutputData -IshSession $ishSession -FolderPath "c:\TEMP\" -Verbose -Debug
if ($mycounter -eq 1) {break}
}
Hi Rich
Looking into the code I see an FTITLE is required to generate a proper filename.
Please log a GitHub issue to improve the error message and/or skip the title if not presented for the FileNameHelper class.
So my working code is
$ishSession = New-IshSession -WsBaseUrl "https://example.com/ISHWS/" -PSCredential "Admin"
$requestedMetadataRetrieve = Set-IshRequestedMetadataField -IshSession $ishSession -Name 'FISHOUTPUTFORMATREF' -Level "Lng" |
Set-IshRequestedMetadataField -IshSession $ishSession -Name 'FISHPUBLNGCOMBINATION' -Level "Lng" |
Set-IshRequestedMetadataField -IshSession $ishSession -Name 'FISHPUBSTATUS' -Level "Lng" |
Set-IshRequestedMetadataField -IshSession $ishSession -Name 'FISHPUBLISHER' -Level "Lng" |
Set-IshRequestedMetadataField -IshSession $ishSession -Name 'FISHPUBSTARTDATE' -Level "Lng" |
Set-IshRequestedMetadataField -IshSession $ishSession -Name 'FISHPUBENDDATE' -Level "Lng" |
Set-IshRequestedMetadataField -IshSession $ishSession -Name 'VERSION' -Level "Version" |
Set-IshRequestedMetadataField -IshSession $ishSession -Name 'FTITLE' -Level "Logical"
$metadataFilterRetrieve = Set-IshMetadataFilterField -IshSession $ishSession -Name 'FISHPUBSTATUS' -Level 'Lng' -ValueType "Value" -FilterOperator "Equal" -Value "Released"
$publicationOutputs = Find-IshPublicationOutput -IshSession $ishSession -StatusFilter "ishnostatusfilter" -MetadataFilter $metadataFilterRetrieve -RequestedMetadata $requestedMetadataRetrieve
[int] $mycounter = 1
foreach ( $pubItem in $publicationOutputs ) {
$fileInfoArray = $publicationOutputs | Get-IshPublicationOutputData -IshSession $ishSession -FolderPath "c:\TEMP\" -Verbose -Debug
if ($mycounter -eq 1) {break}
}