Skip to content

Commit

Permalink
#12
Browse files Browse the repository at this point in the history
  • Loading branch information
TollJulian committed Aug 3, 2023
1 parent 7b7ab42 commit d9b1ae7
Showing 1 changed file with 13 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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)' ..."

Expand All @@ -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()

}

0 comments on commit d9b1ae7

Please sign in to comment.