Automating the creation of translation jobs using PowerShell (ISHRemote)

Hi,

We have a goal to automate the creation of translation jobs since we create so many of them. If anyone have already done this and wants to share how to do this, it would be truly great!

I struggle with the basics. I do not even succeed to query for a Translation Job.  as I understand, the cmdlets for translation jobs (ISHRemote/BACKLOG.MD at master · RWS/ISHRemote · GitHub) are not yet developed, right? Is there a time plan for when these will be available? It would really help us to have them.

I have tried something I found on the forum using $ishSession.TranslationJob25.Find but I got an error. We are using Tridion Docs 15.1 and I am using PowerShell 5.1. I do succeed getting baselines for example using the ish cmdlets. I have been checking TranslationJob 2.5 Find but it is not enough for me to understand how to formulate the query. It would be really helpful with some examples.

Is there a way to search for the existing translation jobs, and if so how? Since we have a lot of jobs, I would like to restrict the search with the target language and a date span.

Also, as mentioned. The goal for us is to create a new translation job using PowerShell, filling in all properties (Name, Description, Required date, Source language, Translation template, target languages, Comments, translation coordinator) and adding one or more publications to the job. Getting examples of this would really help us to move further with this topic. 

Hoping for some community support! Thanks! Slight smile

Kind regards,

Pia

emoji
  • Hi Pia,

    It has been done, but not by me, or in ISHRemote. There are three backlog entries dating from 2019 - the Soap API has not changed so still good - that perhaps inspire on entities and their relationship

    1. Add read cmdlets *-IshTranslationJob and *-IshTranslationJobItem · Issue #69 · RWS/ISHRemote https://github.com/RWS/ISHRemote/issues/69
    2. Add write cmdlets *-IshTranslationJob · Issue #70 · RWS/ISHRemote https://github.com/RWS/ISHRemote/issues/70
    3. Add cmdlets *-IshTranslationTemplate · Issue #68 · RWS/ISHRemote https://github.com/RWS/ISHRemote/issues/68

    A statement like "$ishSession.TranslationJob25.Find" is using the authentication part of ISHRemote, and the Soap API Proxies. From then one it becomes C#/.NET programming to get the Find operation (or any other) working.

    Overall, a TranslationJob is a CARD with fields, like a Baseline. So it will show up in Get-IshTypeFieldDefinition and has ishoperators to query. The TranslationJobItems are more TABLE oriented like BaselineItems are. See also Understanding translation jobs

    I cannot remember other documentation or forum threads. I'm curious about the community as well :) 

    Best wishes,
    Dave

    emoji
  • Hi Dave, Thanks for the reply! Now I have succeeded to query for translation jobs, which is really helpful to understand what information they contain to do further queries. Still a long way to go to reach my goal though, but I will keep at it. Kr, Pia

    emoji