Manipulating conditions for publications using ISHRemote

I want to set conditions for a bunch of publications at once using a script. I looked into the Cmdlet list of ISHRemote, but I couldn't find one that can manipulate a publication's conditions. Is it possible to manipulate publication conditions using ISHRemote?

emoji
  • Hi Naoki,

    Technically we call it a System field, so for Tridion Docs purposes only. It has however not changed for 10+ years, so let's hope it does not change in the future either... a disclaimer Slight smile

    Below some pseudo code that should bring you really close 

    Remember that ISHRemote expect fully initialized logical-version-language entries. Earlier Tridion Docs versions allowed creation of Publication Versions (so logical-version) while later versions will enforce more complete hierarchies PublicationOutput (so logical-version-language). ISHRemote can only work with the latter - PublicationOutputs.

    Best wishes,
    Dave

    emoji
  • Hi Dave,

    Thank you for sharing the sample code. I'll try to create my own code based on this sample code.

    Kind regards,

    Naoki

    emoji