Getting document report using ISHRemote API

Hi,

Is there a way to view the referenced topics/images for a document using the ISHRemote API?

My end goal would be to create a report on document reuse.

Thank you,

Madison

Parents
  • Hi Madison,

    I have to make a couple assumptions here like

    • Understanding the Logical-Version-Language paradigm, so in turn logical linking
    • Publications have a Baseline object which turns does the Version level selection
    • And the language level can be either source language or target language
    Then in essence the fields you are looking for are language-level FISHLINKS and FISHIMAGELINKS (preferably on source language, so FSOURCELANGUAGE is empty).
    More field information is available when your run ISHRemote
    New-IshSession -WsBaseUrl "https://example.com/InfoShareWS/" -IshUserName "username" -IshUserPassword  "userpassword"
    Get-IshTypeFieldDefinition
    -Dave
  • Hi Dave,

    Thank you for the reply, it was very helpful!

    I'm encountering some difficulties when trying to access the FISHLINKS metadata field for a map. When I run the code snippet below, it prints out the metadata fields for FISHLASTMODIFIEDBY and FSTATUS, but doesn't print anything for FISHLINKS. I can, however, see that the map stored in $content[0] references several topics and images if I click "Reports", then "Referenced topics and images overview for language" through the SDL content manager web client. Do you know why this is occurring?

    $folders = Get-IshFolder -ishSession $ishSession -FolderId $folderID -Recurse
    $content = $folders | Get-IshFolderContent -IshSession $ishSession

    Get-IshMetadataField -IshSession $ishSession -Name FISHLASTMODIFIEDBY -Level Lng -IshObject $content[0]
    Get-IshMetadataField -IshSession $ishSession -Name FSTATUS -Level Lng -IshObject $content[0]
    Get-IshMetadataField -IshSession $ishSession -Name FISHLINKS -Level Lng -IshObject $content[0]

    Thank you,

    Madison

Reply
  • Hi Dave,

    Thank you for the reply, it was very helpful!

    I'm encountering some difficulties when trying to access the FISHLINKS metadata field for a map. When I run the code snippet below, it prints out the metadata fields for FISHLASTMODIFIEDBY and FSTATUS, but doesn't print anything for FISHLINKS. I can, however, see that the map stored in $content[0] references several topics and images if I click "Reports", then "Referenced topics and images overview for language" through the SDL content manager web client. Do you know why this is occurring?

    $folders = Get-IshFolder -ishSession $ishSession -FolderId $folderID -Recurse
    $content = $folders | Get-IshFolderContent -IshSession $ishSession

    Get-IshMetadataField -IshSession $ishSession -Name FISHLASTMODIFIEDBY -Level Lng -IshObject $content[0]
    Get-IshMetadataField -IshSession $ishSession -Name FSTATUS -Level Lng -IshObject $content[0]
    Get-IshMetadataField -IshSession $ishSession -Name FISHLINKS -Level Lng -IshObject $content[0]

    Thank you,

    Madison

Children