ishremote, get list of publications

Hi

How do I get a list of publications (not publicationOutput)?

Each publication should be listed once, even if it has been published with three different output types

Thanks!

Parents
  • Hi Milly,

    If you use the Find-ISHPublicationOutput you will get the list of publications for all available PublicationOutputs. You will need to make the distinct from the list yourself

    Alternative approach would be to use the API wrapper which is also supported through ISHRemote.
    eg.
    $mySession.PublicationOutput25.Find("ISHNoStatusFilter", "", "<ishfields><ishfield name='FTITLE' level='logical'/></ishfields>")

    where $mySession is your session object returned by the New-ISHSession command used to authenticate to SDL Tridion Docs.

    This sample will return the distinct list of logical level publication objects only.

    Kind Regards,


    Raf

Reply
  • Hi Milly,

    If you use the Find-ISHPublicationOutput you will get the list of publications for all available PublicationOutputs. You will need to make the distinct from the list yourself

    Alternative approach would be to use the API wrapper which is also supported through ISHRemote.
    eg.
    $mySession.PublicationOutput25.Find("ISHNoStatusFilter", "", "<ishfields><ishfield name='FTITLE' level='logical'/></ishfields>")

    where $mySession is your session object returned by the New-ISHSession command used to authenticate to SDL Tridion Docs.

    This sample will return the distinct list of logical level publication objects only.

    Kind Regards,


    Raf

Children