How to identify the file uploading is completed using Set-IshDocumentObj?

Hi,

I am automating a step to upload the document using the below script. I wanted to know that how my code identify that the result of Set-IshDocumentObj is success or failed. Is there any way to check the status of this activity?

Set-IshDocumentObj

-IshSession $ishSession `
-LogicalId $logicalId `
-Version $version `
-Lng $lang `
-Metadata (Set-IshMetadataField -Name "FSTATUS" `
-Level Lng `
-ValueType "Element" `
-Value "VSTATUSTRANSLATIONINREVIEW") `
-FilePath $filePath |Out-File -FilePath $TestPath

emoji
Parents Reply
  • My Scneario is given below,

    • we loop over e.g. 100 localized topics, 1 script execution (the below script)  = 1 topic upload
      • Set-IshDocumentObj

        -IshSession $ishSession `
        -LogicalId $logicalId `
        -Version $version `
        -Lng $lang `
        -Metadata (Set-IshMetadataField -Name "FSTATUS" `
        -Level Lng `
        -ValueType "Element" `
        -Value "VSTATUSTRANSLATIONINREVIEW") `
        -FilePath $filePath |Out-File -FilePath $TestPath

    • we then request an output for the publication and language containing the localized topics
    • the output succeeds but some topics are still in EN

     

    If Set-IshDocumentObj is really synchronous, why do some topics remain in their original (EN) version?

    What can we do in the single-upload script to ensire completion of the upload?

    emoji
Children