AddChangeOrder Method
Create a new change order.
Required Permissions
ChangeOrderCreateSyntax
public override ChangeOrder AddChangeOrder(
System.long routingId,
System.string changeOrderNumber,
System.string title,
System.string description,
System.DateTime approveDeadline,
System.long[] itemMasterIds,
System.long[] attachmentIds,
System.long[] fileMasterIds,
PropInst[] properties,
AssocPropItem[] assocProperties,
MsgGroup[] comments,
Email[] notifyEmails
)Public Overrides NotOverridable Function AddChangeOrder( _
ByVal routingId As System.Long, _
ByVal changeOrderNumber As System.String, _
ByVal title As System.String, _
ByVal description As System.String, _
ByVal approveDeadline As System.Date, _
ByVal itemMasterIds() As System.Long, _
ByVal attachmentIds() As System.Long, _
ByVal fileMasterIds() As System.Long, _
ByVal properties() As PropInst, _
ByVal assocProperties() As AssocPropItem, _
ByVal comments() As MsgGroup, _
ByVal notifyEmails() As Email _
) As ChangeOrderParameters
| Name | Description |
|---|---|
| routingId | The Routing to use. |
| changeOrderNumber | A unique change order number. Use GetChangeOrderNumberBySchemeId to have the server generate the next available number. |
| title | Change Order's title. |
| description | Change Order's description. |
| approveDeadline | The due date that the Change Order has to be approved by. |
| itemMasterIds | Master IDs of Items to be tracked by the Change Order. |
| attachmentIds | IDs of Files to be attached to the current ChangeOrder. |
| fileMasterIds | Master IDs of Files to be tracked by the Change Order. |
| properties | Properties on the ChangeOrder. |
| assocProperties | An array of properties for the ChangeOrder. The 'From ID' is the Change Order ID and the 'To ID' is the Item ID. |
| comments | A list of comments for the ChangeOrder. |
| notifyEmails | An array of emails to send out upon completion. |
Return Value
The newly created Change Order.
Remarks
The new change order will be in the "open" state of the default workflow.