WorkOrder
Represents work orders used to track service requests and field work, including customer and project associations, external billing details, and work order type, state, and problem code classifications.
Table-Specific Information
When LocationsId is set, the connector includes the location identifier in the authentication header sent to Sage Intacct. Sage Intacct then scopes WorkOrder records to the entity associated with that location identifier, which affects both SELECT and UPDATE operations as described below.
SELECT
SELECT operations against the WorkOrder table are supported with UseLegacy set to either True or False. When LocationsId is set, SELECT returns only the WorkOrder records that belong to the matching entity.
UPDATE
UPDATE is only supported when UseLegacy is set to False. When LocationsId is set, attempting to update a record that belongs to a different entity returns an error from Sage Intacct:The selected Entity does not match your current entity.
The following example illustrates how to update a WorkOrder record:
UPDATE WorkOrder SET Description = 'Updated work order description' WHERE id = '<work-order-id>'
Note: Write operations are not supported through the Legacy API. To perform INSERT, UPDATE, or DELETE operations, set UseLegacy to False.
Columns
| Name | Type | ReadOnly | Description |
| auditCreatedDateTime | Datetime | True |
The date and time when the work order record was created. |
| auditModifiedDateTime | Datetime | True |
The date and time when the work order record was last modified. |
| closedDate | Date | False |
The date on which this work order was closed. |
| customer_Href | String | True |
The URL of the customer associated with this work order. |
| customer_Id | String | False |
The Id of the customer associated with this work order. |
| customer_Key | String | False |
The system-assigned key of the customer associated with this work order. |
| customer_Name | String | True |
The name of the customer associated with this work order. |
| department_Href | String | True |
The URL of the department associated with this work order. |
| department_Id | String | False |
The Id of the department associated with this work order. |
| department_Key | String | False |
The system-assigned key of the department associated with this work order. |
| department_Name | String | True |
The name of the department associated with this work order. |
| description | String | False |
The description of this work order. |
| employee_Href | String | True |
The URL of the employee associated with this work order. |
| employee_Id | String | False |
The Id of the employee associated with this work order. |
| employee_Key | String | False |
The system-assigned key of the employee associated with this work order. |
| employee_Name | String | True |
The name of the employee associated with this work order. |
| entity_Href | String | True |
The URL of the entity associated with this work order. |
| entity_Id | String | True |
The Id of the entity associated with this work order. |
| entity_Key | String | True |
The system-assigned key of the entity associated with this work order. |
| entity_Name | String | True |
The name of the entity associated with this work order. |
| externalDetailsActualCost | Decimal | False |
The actual cost incurred on this work order as recorded in the external system. |
| externalDetailsActualHours | Decimal | False |
The actual hours worked on this work order as recorded in the external system. |
| externalDetailsAgreementNumber | String | False |
The agreement number from the external system associated with this work order. |
| externalDetailsAgreementSequence | String | False |
The agreement sequence from the external system associated with this work order. |
| externalDetailsBilledAmount | Decimal | False |
The total billed amount for this work order as recorded in the external system. |
| externalDetailsCustomerPurchaseOrder | String | False |
The customer purchase order number from the external system associated with this work order. |
| externalDetailsEstimatedCost | Decimal | False |
The estimated cost for this work order as recorded in the external system. |
| externalDetailsEstimatedHours | Decimal | False |
The estimated hours for this work order as recorded in the external system. |
| externalDetailsIsAutoGenerated | Bool | False |
Indicates whether this work order was automatically generated by the external system. |
| externalDetailsIsBillable | Bool | False |
Indicates whether this work order is billable to the customer. |
| externalDetailsNotToExceedCost | Decimal | False |
The maximum allowable cost for this work order as defined in the external system. |
| externalDetailsServiceSite | String | False |
The service site location for this work order as recorded in the external system. |
| externalDetailsWorkOrderAmount | Decimal | False |
The total work order amount from the external system associated with this work order. |
| externalDetailsWorkOrderNumber | String | False |
The primary work order number from the external system. |
| externalDetailsWorkOrderNumber1 | String | False |
The secondary work order number from the external system. |
| externalDetailsWorkOrderNumber2 | String | False |
The tertiary work order number from the external system. |
| href | String | True |
The URL of the work order resource. |
| id | String | False |
The unique identifier of the work order record. |
| key [KEY] | String | True |
The system-assigned key that uniquely identifies the work order record. |
| location_Href | String | True |
The URL of the location associated with this work order. |
| location_Id | String | False |
The Id of the location associated with this work order. |
| location_Key | String | False |
The system-assigned key of the location associated with this work order. |
| location_Name | String | True |
The name of the location associated with this work order. |
| name | String | False |
The name of this work order. |
| project_Href | String | True |
The URL of the project associated with this work order. |
| project_Id | String | False |
The Id of the project associated with this work order. |
| project_Key | String | False |
The system-assigned key of the project associated with this work order. |
| project_Name | String | True |
The name of the project associated with this work order. |
| recordURL | String | False |
The URL linking directly to this work order record in the source system. |
| salesperson_Href | String | True |
The URL of the salesperson associated with this work order. |
| salesperson_Id | String | False |
The Id of the salesperson associated with this work order. |
| salesperson_Key | String | False |
The system-assigned key of the salesperson associated with this work order. |
| salesperson_Name | String | True |
The name of the salesperson associated with this work order. |
| status | String | False |
The current status of this work order, such as active or inactive. |
| workOrderCallType_Href | String | True |
The URL of the call type associated with this work order. |
| workOrderCallType_Id | String | False |
The Id of the call type associated with this work order. |
| workOrderCallType_Key | String | False |
The system-assigned key of the call type associated with this work order. |
| workOrderDate | Date | False |
The date on which this work order was created or issued. |
| workOrderProblemCode_Href | String | True |
The URL of the problem code associated with this work order. |
| workOrderProblemCode_Id | String | False |
The Id of the problem code associated with this work order. |
| workOrderProblemCode_Key | String | False |
The system-assigned key of the problem code associated with this work order. |
| workOrderState_Href | String | True |
The URL of the work order state associated with this work order. |
| workOrderState_Id | String | False |
The Id of the work order state associated with this work order. |
| workOrderState_Key | String | False |
The system-assigned key of the work order state associated with this work order. |
| workOrderType_Href | String | True |
The URL of the work order type associated with this work order. |
| workOrderType_Id | String | False |
The Id of the work order type associated with this work order. |
| workOrderType_Key | String | False |
The system-assigned key of the work order type associated with this work order. |