Autodesk Vault ProfessionalVault API

RollbackToTargetFiles Method

Autodesk.Connectivity.WebServicesChangeOrderService

Executes a file rollback to the specified target files "MaxCkInVerNum" in rolling back Files Lifecycle states within the context of a Change Order.

Required Permissions

"File Rollback LifeCycle State"

Syntax

public File[] RollbackToTargetFiles(
   System.long changeOrderId,
   System.long[] fileIds,
   System.int[] maxCkInVerNums
)
Public Function RollbackToTargetFiles( _
   ByVal changeOrderId As System.Long, _
   ByVal fileIds() As System.Long, _
   ByVal maxCkInVerNums() As System.Integer _
) As File()

Parameters

NameDescription
changeOrderIdid of the Change Order
fileIdsids of file Masters to which the rollback is to be applied to
maxCkInVerNumsMax Check In Version Numbers ("MaxCkInVerNum") of the target files to which the files are to be rolled back to

Return Value

new tip files after rollback

Remarks

When an item is assigned to a Change Order or "Restrict Item Lifecycle changes to Change Orders" is ON, item lifecycle state changes and rollbacks can only be executed from within the Change Order service. The file "MaxCkInVerNum" of the target item should match the file returned in calling ChangeOrderService.GetLifecycleRollbackTargetFiles otherwise a restriction will be thrown. The specified file Master Ids must be associated with the specified Change Order Id

See Also