diff --git a/Sync Properties Update Revision Block and Create PDF/Modules/Sample.SyncFilePropsAndUpdRevBlockModule.psm1 b/Sync Properties Update Revision Block and Create PDF/Modules/Sample.SyncFilePropsAndUpdRevBlockModule.psm1 index f397c58..aafb0e3 100644 --- a/Sync Properties Update Revision Block and Create PDF/Modules/Sample.SyncFilePropsAndUpdRevBlockModule.psm1 +++ b/Sync Properties Update Revision Block and Create PDF/Modules/Sample.SyncFilePropsAndUpdRevBlockModule.psm1 @@ -824,7 +824,8 @@ function UpdateRevisionBlock { param ($file) #using Vault API to get the file instead of using powerVault's $file since it runs into property sync job not finding any equivalence problems when '$file.Name' or '$file._Name' is used - $fileForUpdRevJob = $vault.DocumentService.GetLatestFileByMasterId($file.MasterId) + #$fileForUpdRevJob = $vault.DocumentService.GetLatestFileByMasterId($file.MasterId) + $fileForUpdRevJob = $file Write-Host "Start 'Update Revision Block' of file '$($fileForUpdRevJob.Name)' ..." @@ -843,4 +844,15 @@ function UpdateRevisionBlock { throw "Failed job 'Update Revision Block'" #Failed because of issue that occured in the job } Write-Host "End 'Update Revision Block' of file '$($fileForUpdRevJob.Name)'" + + # $versionIds = @($file.Id) + # $fileVersions = [Connectivity.Services.Document.DocServices]::Instance.GetFileVersionsByIDs($vaultConnection, $versionIds) + # $multiSideProvider = new-object Connectivity.Explorer.JobHandlerUpdateRevisionBlock.URBJobHandlerMultiSiteSyncProvider -ArgumentList $true + + # $updateRevisionBlock = new-object Connectivity.Explorer.Document.ViewModel.UpdateRevisionBlock -ArgumentList $fileVersions, $false + # $updateRevisionBlock.MultiSiteSyncProvider = $multiSideProvider + # $updateRevisionBlock.CheckInComment = "Revision table updated by coolOrange UpdateRevisionTable" + # $updateRevisionBlock.RefreshRevisionBlock() + } +