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
  • If Set-IshDocumentObj is really synchronous, why do some topics remain in their original (EN) version?

    Could you consider another way of validating the uploaded content besides publishing. So was it indeed uploaded by using

    1. Organize Space / Web Client user interface to navigate to the object and check, a preview and properties?
    2. Do a Get-IshDocumentObj(Data) cmdlet right after the Set-IshDocumentObj?

    You validated with a publishing, where there are more parameters at play. So let's cut the problem in two and check if the uploaded content is really there. Directly and not over an asynchronous publish action.

    -Dave

    emoji
Children
No Data