Autodesk Vault ProfessionalVault API

UpdateChangeOrder Method

Autodesk.Connectivity.WebServicesChangeOrderService

Updates a Change Order.

Required Permissions

ChangeOrderEdit

Syntax

public override ChangeOrder UpdateChangeOrder(
   System.long changeOrderId,
   System.string changeOrderNumber,
   System.string title,
   System.string description,
   System.DateTime approveDeadline,
   System.long[] addItemMasterIds,
   System.long[] delItemMasterIds,
   System.long[] addAttmtMasterIds,
   System.long[] delAttmtMasterIds,
   System.long[] addFileMasterIds,
   System.long[] delFileMasterIds,
   PropInst[] addProperties,
   System.long[] delPropDefIds,
   MsgGroup[] addComments,
   Email[] notifyEmails,
   AssocPropItem[] addAssocProperties,
   System.long[] delAssocPropIds,
   System.long routingId,
   RoutingUserRoles[] addMembers,
   RoutingUserRoles[] delMembers
)
Public Overrides NotOverridable Function UpdateChangeOrder( _
   ByVal changeOrderId As System.Long, _
   ByVal changeOrderNumber As System.String, _
   ByVal title As System.String, _
   ByVal description As System.String, _
   ByVal approveDeadline As System.Date, _
   ByVal addItemMasterIds() As System.Long, _
   ByVal delItemMasterIds() As System.Long, _
   ByVal addAttmtMasterIds() As System.Long, _
   ByVal delAttmtMasterIds() As System.Long, _
   ByVal addFileMasterIds() As System.Long, _
   ByVal delFileMasterIds() As System.Long, _
   ByVal addProperties() As PropInst, _
   ByVal delPropDefIds() As System.Long, _
   ByVal addComments() As MsgGroup, _
   ByVal notifyEmails() As Email, _
   ByVal addAssocProperties() As AssocPropItem, _
   ByVal delAssocPropIds() As System.Long, _
   ByVal routingId As System.Long, _
   ByVal addMembers() As RoutingUserRoles, _
   ByVal delMembers() As RoutingUserRoles _
) As ChangeOrder

Parameters

NameDescription
changeOrderIdThe ID of the Change Order object to update.
changeOrderNumberThe new change order number. Pass in null to continue using the existing number.
titleThe title of the Change Order.
descriptionThe descrition of the Change Order.
approveDeadlineThe date and time the Change Order needs to be approved by.
addItemMasterIdsA list of additional Items to associate with the Change Order. Set this to null if there are no new associations.
delItemMasterIdsA list of Items to disassociate with the Change Order. Set this to null if no assocaitions need to be deleted.
addAttmtMasterIdsA list of additional Files to attach with the Change Order. Set this to null if there are no new attachments.
delAttmtMasterIdsA list of File attachments to disassociate with the Change Order. Set this to null if no attachments need to be deleted.
addFileMasterIdsA list of additional Files to be tracked by the Change Order. Set this to null if there are no new associations.
delFileMasterIdsA list of Files to no longer be tracked by the Change Order. Set this to null if no assocaitions need to be deleted.
addPropertiesA list of additional property instances to associate with the Change Order. Set this to null if there are no new properties or values.
delPropDefIdsA list of Property Definitions to disassociate with the Change Order. Set this to null if no assocaitions need to be deleted.
addCommentsAn array of comments to add to the Change Order.
notifyEmailsAn array of emails to send out upon completion.
addAssocPropertiesProperties to add to the Change Order. The 'From ID' is the Change Order ID and the 'To ID' is the Item or File ID.
delAssocPropIdsThe IDs of properties to delete from the Change Order.
routingIdThe ID of the Routing that is associated with the Change Order. Pass in -1 to keep the same Routing. Note: This association is for meta-data reasons only. Changing this value alone does not update the users or roles for this Change Order.
addMembersMembers to add to the Routing for this Change Order.
delMembersMembers to delete from the Routing for this Change Order.

Return Value

The updated Change Order object.

Remarks

Only Change Orders in an editable state can be updated. Call EditChangeOrder to create an editable Change Order object.

See Also