Login/Register
  • Home
  • Community
  • Knowledge
  • Technical Docs
  • RWS Support Policy
  • Trados Studio Licensing Help
  • Login for Support
Back to Search Results

Tridion Docs - Assign a specific GUID to a recreated publication that was accidentally deleted

000021339 |9/26/2023 8:14 PM
Scope/Environment
Symptoms/Context
A user accidently deleted a publication in Tridion Docs. The publication was then recreated. However, the customer publishes content from Tridion Docs and then uses another system for packaging content for Windows that is pushed to their customers. Retaining the original publication GUIDs is important in the packaging process, and they cannot be replaced once scripted. If a publication is deleted, recreating the publication assigns it a new GUID in Tridion Docs. The original GUID for the publication needs to be retained.


 
Resolution
The below PowerShell ISHRemote script will create a publication with the desired GUID. The Folder ID, the Logical ID (the desired GUID for the pub), and the Output Format needs to be modified (if there is not already an output for “PDF (A4 Manual)”).
Once the publication is created, the existing maps, topics, etc. can be added to reproduce the full publication that was deleted.
$webServiceURL = https://<TD URL>/<WEB SERVICE>
$mycreds = Get-Credential -Message "Enter credentials for a Tridion Docs administrator."

$ishSession = New-IshSession -WsBaseUrl $webServiceURL -psCred $mycreds

    $metaDataCreate = Set-IshMetadataField -IshSession $ishSession -Name 'FISHREQUIREDRESOLUTIONS' -Level 'version' -Value 'Low' |
                      Set-IshMetadataField -IshSession $ishSession -Name 'FISHPUBSOURCELANGUAGES' -Level 'version' -Value 'en' |
                      Set-IshMetadataField -IshSession $ishSession -Name 'FTITLE' -Level 'logical' -Value 'Test Creating new PUB'

    Add-IshPublicationOutput -IshSession $ishSession `
    -FolderId "12827" `
    -LogicalId "C241D4C6-56C9-4033-AAA6-EA1AAB020290" `
    -Version "1" `
    -OutputFormat "PDF (A4 Manual)" `
    -LanguageCombination "en" `
    -Metadata $metaDataCreate
Root Cause
Reference
Send Article Feedback
RWS Machine Translation Translation Software Language Services Content Management
All Contents Copyright © RWS.
COPYRIGHT PRIVACY POLICY COOKIE POLICY TERMS AND CONDITIONS