How can I download all objects referenced in a single publication?

I need to be able to do a bulk export of CMS modules referenced in a baseline using an ISHREMOTE script. I have read ddemeyer's notes on this topic:

github.com/.../126

Is this enhancement available? If not, can you suggest an alternative method to accomplish the same thing?

/*Ultimately, I would like to be able to use ISHREMOTE to do a full-text search through the contents of a publication using a string filter to download only the topics and maps that contain the string. Am I asking too much?*/

  • Hi Jean,

    The mentioned GitHub issue #126 is still open. Accepting contributions if anybody is up for that :)

    Regarding your ultimately, in Publication Manager you can do a 'Find in Publications'. Behind the scenes it uses Search25.PerformSearchInPublication which does a server-side baseline call and enriches the search criteria to only get search results from within that publication.

    So if you are not too scared to pass the string/xml parameters into that function than you could achieve that here

    $ishSession = New-IshSession -WsBaseUrl https://example.com/ISHWS/ -IshUserName admin -IshPassword admin
    $ishSession.Search25.PerformSearchInPublication( ...

    I hope this unblocks you, working out a working example of $ishSession.Search25.PerformSearchInPublication is more than 5 minutes in between meetings :)

    -Dave

  • Hi,

    Following up on this request. Is there an API approach that can be used to get the content objects (including versions) referenced from a publication?

    Thanks,

    Ann

    emoji
  • Hi Ann,

    I know that others solved this with the Public API. The above linked items get you going, perhaps you can share the code you have so far and it might get enriched here.

    There is no progress on Add cmdlet Get-IshPublicationOutputContent to return directly linked content objects of this publication #126 https://github.com/RWS/ISHRemote/issues/126 

    Regarding ISHRemote, I mostly focussed on the architectural side by getting ISHRemote working on Windows-based PowerShell 5.1 and cross-platform PowerShell 7.2+ released - see ishremote-v7-0-now-also-available-for-powershell-7. The upcoming Tridion Docs 15 release switches to Modern Authentication, those are also quite big architectural changes for ISHRemote as well. The end result is still to keep all of your scripts working, so keeping things compatible. That does mean that some functional enhancements didn't get a lot of attention from my end; although I'm open discuss those and give guidance for implementation.

    Best wishes,
    Dave

    PS: just crosslinking, might help... community.rws.com/.../ishremote---how-to-get-baseline-items

    emoji
  • Thanks for feedback Dave. 

    I have not started using the public API yet and have only used ISHRemote to interrogate the TD CMS but will try to do so.

    Just to better clarify my requirement - I want to pull list of content objects (including version) that were published in a given publication output on a given date; is this possible using the API?

    Thanks again,

    Ann 

    emoji
  • Fantastic. I am also wondering about it. Thank you for the mention and sharing from Dave

    "I know that others solved this with the Public API. The above linked items get you going, perhaps you can share the code you have so far and it might get enriched here.

    There is no progress on Add cmdlet Get-IshPublicationOutputContent to return directly linked content objects of this publication #126 https://github.com/RWS/ISHRemote/issues/126 

    Regarding ISHRemote, I mostly focussed on the architectural side by getting ISHRemote working on Windows-based PowerShell 5.1 and cross-platform PowerShell 7.2+ released - see ishremote-v7-0-now-also-available-for-powershell-7 dino game. The upcoming Tridion Docs 15 release switches to Modern Authentication, those are also quite big architectural changes for ISHRemote as well. The end result is still to keep all of your scripts working, so keeping things compatible. That does mean that some functional enhancements didn't get a lot of attention from my end; although I'm open discuss those and give guidance for implementation.

    Best wishes,
    Dave

    PS: just crosslinking, might help... community.rws.com/.../ishremote---how-to-get-baseline-items"

    emoji
  • "Hi Ann,

    I know that others solved this with the Public API. The above linked items get you going, perhaps you can share the code you have so far and it might get enriched here.

    There is no progress on Add cmdlet Get-IshPublicationOutputContent to return directly linked content objects of this publication #126 https://github.com/RWS/ISHRemote/issues/126 

    Regarding ISHRemote, I mostly focussed on the architectural side by getting ISHRemote working on Windows-based PowerShell 5.1 and cross-platform PowerShell 7.2+ released - see ishremote-v7-0-now-also-available-for-powershell-7 basketball stars. The upcoming Tridion Docs 15 release switches to Modern Authentication, those are also quite big architectural changes for ISHRemote as well. The end result is still to keep all of your scripts working, so keeping things compatible. That does mean that some functional enhancements didn't get a lot of attention from my end; although I'm open discuss those and give guidance for implementation.

    Best wishes,
    Dave

    PS: just crosslinking, might help... community.rws.com/.../ishremote---how-to-get-baseline-items"

    Thanks, Dave! Appreciate the context and updates. I’ll review the linked resources and share my current code soon—glad to hear you’re open to discussing functional enhancements too!

    emoji