afv-library/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/WorkOrderLineItem.json

636 lines
40 KiB
JSON
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{
"sections": [
"title",
"description",
"fields",
"special_access_rules",
"usage",
"associated_objects",
"wsdl_segment",
"field_reference"
],
"title": "WorkOrderLineItem - Data API",
"description": "Represents a subtask on a work order in field service. This object is available in API version 36.0 and later.",
"fields_columns": [
"type",
"properties",
"description",
"relationship_name",
"relationship_type",
"refers_to"
],
"fields": {
"Address": {
"type": "address",
"properties": "Filter, Nillable",
"description": "The compound form of the address where the line item is completed."
},
"AssetId": {
"type": "reference",
"properties": "Create, Filter, Group, Nillable, Sort, Update",
"description": "The asset associated with the work order line item. The asset is not automatically inherited from the parent work order. This is a relationship field.",
"relationship_name": "Asset",
"relationship_type": "Lookup",
"refers_to": "Asset"
},
"AssetWarrantyId": {
"type": "reference",
"properties": "Create, Filter, Group, Nillable, Sort, Update",
"description": "The asset warranty term associated with the work order line item. This field is available in API version 50.0 and above."
},
"City": {
"type": "string",
"properties": "Create, Filter, Group, Nillable, Sort, Update",
"description": "The city where the line item is completed. Maximum length is 40 characters."
},
"Country": {
"type": "string",
"properties": "Create, Filter, Group, Nillable, Sort, Update",
"description": "The country where the line item is completed. Maximum length is 80 characters."
},
"CurrencyIsoCode": {
"type": "picklist",
"properties": "Defaulted on create, Filter, Group, Restricted picklist, Sort",
"description": "Available only for orgs with the multicurrency feature enabled. Contains the ISO code for any currency allowed by the organization. The label in the user interface is Currency ISO Code."
},
"Description": {
"type": "textarea",
"properties": "Create, Nillable, Update",
"description": "The description of the work order line item. Try to describe the steps needed to mark the line item Completed."
},
"Discount": {
"type": "percent",
"properties": "Create, Filter, Nillable, Sort, Update",
"description": "The percent discount to apply to the line item. You can enter a number with or without the percent symbol, and you can use up to two decimal places."
},
"Duration": {
"type": "double",
"properties": "Create, Filter, Nillable, Sort, Update",
"description": "The estimated time required to complete the line item. Specify the duration unit in the Duration Type field. If the Duration field on a Work Order is null, it adopts the duration value from the Work Type object when the work type is updated or inserted. Note: Work order duration and work order line item duration are independent of each other. If you want work order duration to automatically show the sum of the work order line items duration, replace the Duration field on work orders with a custom roll-up summary field."
},
"DurationInMinutes": {
"type": "double",
"properties": "Filter, Nillable, Sort",
"description": "The estimated duration in minutes. For internal use only."
},
"DurationType": {
"type": "picklist",
"properties": "Create, Defaulted on create, Filter, Group, Nillable, Restricted picklist, Sort, Update",
"description": "The unit of the duration: Minutes or Hours."
},
"EndDate": {
"type": "dateTime",
"properties": "Create, Filter, Nillable, Sort, Update",
"description": "The date on which the line item is completed. This field is blank unless you set up an Apex trigger or quick action to populate it. For example, you can create a quick action that sets the EndDate to 365 days after the StartDate."
},
"GeocodeAccuracy": {
"type": "picklist",
"properties": "Create, Filter, Group, Nillable, Restricted picklist, Sort, Update",
"description": "The level of accuracy of a locations geographical coordinates compared with its physical address. Usually provided by a geocoding service based on the addresss latitude and longitude coordinates. Note: This field is available in the API only. Possible values are: Address Block City County ExtendedZip NearAddress Neighborhood State Street Unknown Zip"
},
"IsClosed": {
"type": "boolean",
"properties": "Defaulted on create, Filter, Group, Sort",
"description": "Indicates whether the line item has been closed. Changing the line items status to Closed causes this checkbox to be selected in the user interface (sets IsClosed to true). Tip: Use this field to report on closed versus open work order line items."
},
"IsGeneratedFromMaintenancePlan": {
"type": "boolean",
"properties": "Defaulted on create, Filter, Group, Sort",
"description": "Identifies whether the work order line item is generated from a maintenance plan."
},
"LastReferencedDate": {
"type": "dateTime",
"properties": "Filter, Nillable, Sort",
"description": "The date when the line item was last modified. Its label in the user interface is Last Modified Date."
},
"LastViewedDate": {
"type": "dateTime",
"properties": "Filter, Nillable, Sort",
"description": "The date when the line item was last viewed."
},
"Latitude": {
"type": "double",
"properties": "Create, Filter, Nillable, Sort, Update",
"description": "Used with Longitude to specify the precise geolocation of the address where the line item is completed. Acceptable values are numbers between 90 and 90 with up to 15 decimal places. Note: This field is available in the API only."
},
"LineItemNumber": {
"type": "string",
"properties": "Autonumber, Defaulted on create, Filter, idLookup, Sort",
"description": "An auto-generated number that identifies the work order line item. Each work orders line items start at 1."
},
"ListPrice": {
"type": "currency",
"properties": "Filter, Nillable, Sort",
"description": "The price of the line item (product) as listed in its corresponding price book entry. If a price book entry isnt specified, the list price defaults to zero."
},
"LocationId": {
"type": "reference",
"properties": "Create, Filter, Group, Nillable, Sort, Update",
"description": "A location associated with the work order line item. For example, a work site. This is a relationship field.",
"relationship_name": "Location",
"relationship_type": "Lookup",
"refers_to": "Location"
},
"Longitude": {
"type": "double",
"properties": "Create, Filter, Nillable, Sort, Update",
"description": "Used with Latitude to specify the precise geolocation of the address where the line item is completed. Acceptable values are numbers between 180 and 180 with up to 15 decimal places. Note: This field is available in the API only."
},
"MaintenancePlanId": {
"type": "reference",
"properties": "Create, Filter, Group, Nillable, Sort, Update",
"description": "The maintenance plan associated with the work order line item."
},
"MaintenanceWorkRuleId": {
"type": "reference",
"properties": "Filter, Group, Nillable, Sort",
"description": "ID of the maintenance work rule that generated this line item. This field is available in API version 50.0 and above."
},
"MinimumCrewSize": {
"type": "int",
"properties": "Create, Filter, Group, Nillable, Sort, Update",
"description": "The minimum crew size allowed for a crew assigned to the line item. If youre not using the Field Service managed package, this field serves as a suggestion rather than a rule. If you are using the managed package, the scheduling optimizer counts the number of service crew members on a service crew to determine whether it fits a work order line items minimum crew size requirement."
},
"OrderId": {
"type": "reference",
"properties": "Create, Filter, Group, Nillable, Sort, Update",
"description": "The order associated with the line item. For example, you may need to order replacement parts before you can complete the line item. This is a relationship field.",
"relationship_name": "Order",
"relationship_type": "Lookup",
"refers_to": "Order"
},
"ParentWorkOrderLineItemId": {
"type": "reference",
"properties": "Create, Filter, Group, Nillable, Sort, Update",
"description": "The line items parent work order line item, if it has one. Tip: Create a custom report to view a line items child line items. This is a relationship field.",
"relationship_name": "ParentWorkOrderLineItem",
"relationship_type": "Lookup",
"refers_to": "WorkOrderLineItem"
},
"PostalCode": {
"type": "string",
"properties": "Create, Filter, Group, Nillable, Sort, Update",
"description": "The postal code where the line item is completed. Maximum length is 20 characters."
},
"PricebookEntryId": {
"type": "reference",
"properties": "Create, Filter, Group, Nillable, Sort, Update",
"description": "The price book entry (product) associated with the line item. The label in the user interface is Product. This fields lookup search only returns products that are included in the work orders price book. This is a relationship field.",
"relationship_name": "PricebookEntry",
"relationship_type": "Lookup",
"refers_to": "PricebookEntry"
},
"Priority": {
"type": "picklist",
"properties": "Create, Defaulted on create, Filter, Group, Nillable, Sort, Update",
"description": "The priority of the line item. The picklist includes the following values, which can be customized: Low Medium High Critical"
},
"Product2Id": {
"type": "reference",
"properties": "Create, Filter, Group, Nillable, Sort, Update",
"description": "(Read only) The product associated with the price book entry. This field is not available in the user interface. For best results, use the PricebookEntryId field in any custom code or layouts. This is a relationship field.",
"relationship_name": "Product2",
"relationship_type": "Lookup",
"refers_to": "Product2"
},
"ProductServiceCampaignId": {
"type": "reference",
"properties": "Filter, Group, Nillable, Sort",
"description": "The product service campaign associated with the work order line item."
},
"ProductServiceCampaignItemId": {
"type": "reference",
"properties": "Create, Filter, Group, Nillable, Sort, Update",
"description": "The product service campaign item associated with the work order line item."
},
"Quantity": {
"type": "double",
"properties": "Create, Filter, Nillable, Sort, Update",
"description": "Number of units of the line item included in the associated work order."
},
"RecommendedCrewSize": {
"type": "int",
"properties": "Create, Filter, Group, Nillable, Sort, Update",
"description": "The recommended number of people on the service crew assigned to the line item. For example, you might have a Minimum Crew Size of 2 and a Recommended Crew Size of 3."
},
"ReturnOrderId": {
"type": "reference",
"properties": "Filter, Group, Nillable, Sort",
"description": "The return order associated with the work order line item."
},
"ReturnOrderLineItemId": {
"type": "reference",
"properties": "Create, Filter, Group, Nillable, Sort, Update",
"description": "The return order line item associated with the work order line item."
},
"RootWorkOrderLineItemId": {
"type": "reference",
"properties": "Filter, Group, Nillable, Sort",
"description": "(Read only) The top-level line item in a work order line item hierarchy. Depending on where a line item lies in the hierarchy, its root could be the same as its parent. Note: View a line items child line items in the Child Work Order Line Items related list. This is a relationship field.",
"relationship_name": "RootWorkOrderLineItem",
"relationship_type": "Lookup",
"refers_to": "WorkOrderLineItem"
},
"ServiceAppointmentCount": {
"type": "int",
"properties": "Filter, Group, Nillable, Sort",
"description": "The number of service appointments on the work order line item."
},
"ServiceDocumentTemplate": {
"type": "string",
"properties": "Create, Filter, Group, Nillable, Sort, Update",
"description": "The template ID which sets the template for each service document for the Document Builder feature."
},
"ServiceReportTemplateId": {
"type": "reference",
"properties": "Create, Filter, Group, Nillable, Sort, Update",
"description": "The service report template that the line item uses. If you dont specify a service report template on a work order line item, it uses the service report template listed on its work type. If the work type doesnt list a template or no work type is specified, the line item uses the default service report template."
},
"ServiceTerritoryId": {
"type": "reference",
"properties": "Create, Filter, Group, Nillable, Sort, Update",
"description": "The service territory where the line item is completed. This is a relationship field.",
"relationship_name": "ServiceTerritory",
"relationship_type": "Lookup",
"refers_to": "ServiceTerritory"
},
"StartDate": {
"type": "dateTime",
"properties": "Create, Filter, Nillable, Sort, Update",
"description": "The date on which the line item goes into effect. This field is blank unless you set up an Apex trigger or quick action to populate it. For example, you can create a quick action that sets the StartDate to the date when the Status changes to In Progress."
},
"State": {
"type": "string",
"properties": "Create, Filter, Group, Nillable, Sort, Update",
"description": "The state where the line item is completed. Maximum length is 80 characters."
},
"Status": {
"type": "picklist",
"properties": "Create, Defaulted on create, Filter, Group, Nillable, Sort, Update",
"description": "The status of the line item. The picklist includes the following values, which can be customized: New—Line item was created, but there hasnt yet been any activity. In Progress—Work has begun. On Hold—Work is paused. Completed—Work is complete. Cannot Complete—Work could not be completed. Closed—All work and associated activity is complete. Canceled—Work is canceled, typically before any work began."
},
"StatusCategory": {
"type": "picklist",
"properties": "Defaulted on create, Filter, Group, Nillable, Restricted picklist, Sort",
"description": "The category that each Status value falls into. The Status Category field has eight default values: seven values which are identical to the default Status values, and a None value for statuses without a status category.If you create custom Status values, you must indicate which category it belongs to. For example, if you create a Waiting for Response value, you may decide that it belongs in the On Hold category. To learn which processes reference StatusCategory, see How are Status Categories Used?"
},
"Street": {
"type": "textarea",
"properties": "Create, Filter, Group, Nillable, Sort, Update",
"description": "The street number and name where the line item is completed."
},
"Subject": {
"type": "string",
"properties": "Create, Filter, Group, Nillable, Sort, Update",
"description": "A word or phrase describing the line item."
},
"Subtotal": {
"type": "currency",
"properties": "Filter, Nillable, Sort",
"description": "(Read only) The line items unit price multiplied by the quantity."
},
"SuggestedMaintenanceDate": {
"type": "date",
"properties": "Create, Filter, Group, Nillable, Sort, Update",
"description": "Date when maintenance work is planned."
},
"TotalPrice": {
"type": "currency",
"properties": "Filter, Nillable, Sort",
"description": "Read only. The line items subtotal with discounts applied."
},
"UnitPrice": {
"type": "currency",
"properties": "Create, Filter, Nillable, Sort, Update",
"description": "Initially, the unit price for a work order line item is the line items list price from the price book, but you can change it."
},
"WorkOrderId": {
"type": "reference",
"properties": "Create, Filter, Group, Sort",
"description": "The line items parent work order. Because work order line items must be associated with a work order, this is a required field. This is a relationship field.",
"relationship_name": "WorkOrder",
"relationship_type": "Lookup",
"refers_to": "WorkOrder"
},
"WorkTypeId": {
"type": "reference",
"properties": "Create, Filter, Group, Nillable, Sort, Update",
"description": "The work type associated with the line item. When a work type is selected, the line item automatically inherits the work types Duration, Duration Type, and required skills. If the Duration field for the work type is null, enter the duration value. This is a relationship field.",
"relationship_name": "WorkType",
"relationship_type": "Lookup",
"refers_to": "WorkType"
}
},
"special_access_rules": "Work orders or Field Service must be enabled.",
"usage": "A work order line item is a child record of a work order. It represents a specific subtask on a work order.\n\nFor example, suppose a customer purchased a truck from you. The truck is represented\n\t\t\t\tas an asset in your Salesforce org. After some time, the truck needs both headlight\n\t\t\t\tbulbs replaced. Heres one way that you can use work orders and work order line\n\t\t\t\titems to track the repair.\n\nCreate a work order named “Replace Headlight Bulbs” from the asset record\n\t\t\t\t\t\tdetail page.\n\nAdd three work order line items to the work order: “Replace Left Headlight\n\t\t\t\t\t\tBulb,” “Replace Right Headlight Bulb,” and “Test Headlights.”\n\nAssign the work order to a technician via a queue.\n\nAs the technician completes each line item, he or she marks the item\n\nWhen all the line items are complete, the technician marks the work order",
"associated_objects": "This object has the following associated objects. If the API version isnt specified, theyre available in the same API versions as this object. Otherwise, theyre available in the specified API version and later.\n\n- **WorkOrderLineItemChangeEvent (API version 48.0)**: Change events are available for the object.\n- **WorkOrderLineItemFeed**: Feed tracking is available for the object.\n- **WorkOrderLineItemHistory**: History is available for tracked fields of the object.",
"wsdl_segment": "```xml\n<simpleType name=\"ID\">\n <restriction base=\"xsd:string\">\n <length value=\"18\"/>\n <pattern value=\"[a-zA-Z0-9]{18}\"/>\n </restriction>\n</simpleType>\n<simpleType name=\"QueryLocator\">\n <restriction base=\"xsd:string\"/>\n</simpleType>\n<complexType name=\"QueryResult\">\n <sequence>\n <element name=\"done\" type=\"xsd:boolean\"/>\n <element name=\"queryLocator\" type=\"tns:QueryLocator\" nillable=\"true\"/>\n <element name=\"records\" type=\"ens:sObject\" nillable=\"true\" minOccurs=\"0\" maxOccurs=\"unbounded\"/>\n <element name=\"size\" type=\"xsd:int\"/>\n </sequence>\n</complexType>\n<complexType name=\"WorkOrderLineItem\">\n <complexContent>\n <extension base=\"ens:sObject\">\n <sequence>\n <element name=\"ActivityHistories\" nillable=\"true\" minOccurs=\"0\" type=\"tns:QueryResult\"/>\n <element name=\"Address\" nillable=\"true\" minOccurs=\"0\" type=\"tns:address\"/>\n <element name=\"ApprovalSubmissions\" nillable=\"true\" minOccurs=\"0\" type=\"tns:QueryResult\"/>\n <element name=\"ApprovalWorkItems\" nillable=\"true\" minOccurs=\"0\" type=\"tns:QueryResult\"/>\n <element name=\"Asset\" nillable=\"true\" minOccurs=\"0\" type=\"ens:Asset\"/>\n <element name=\"AssetActionSourceReferences\" nillable=\"true\" minOccurs=\"0\" type=\"tns:QueryResult\"/>\n <element name=\"AssetId\" nillable=\"true\" minOccurs=\"0\" type=\"tns:ID\"/>\n <element name=\"AssetWarranty\" nillable=\"true\" minOccurs=\"0\" type=\"ens:AssetWarranty\"/>\n <element name=\"AssetWarrantyId\" nillable=\"true\" minOccurs=\"0\" type=\"tns:ID\"/>\n <element name=\"AttachedContentDocuments\" nillable=\"true\" minOccurs=\"0\" type=\"tns:QueryResult\"/>\n <element name=\"Attachments\" nillable=\"true\" minOccurs=\"0\" type=\"tns:QueryResult\"/>\n <element name=\"ChildWorkOrderLineItems\" nillable=\"true\" minOccurs=\"0\" type=\"tns:QueryResult\"/>\n <element name=\"City\" nillable=\"true\" minOccurs=\"0\" type=\"xsd:string\"/>\n <element name=\"CombinedAttachments\" nillable=\"true\" minOccurs=\"0\" type=\"tns:QueryResult\"/>\n <element name=\"ContentDocumentLinks\" nillable=\"true\" minOccurs=\"0\" type=\"tns:QueryResult\"/>\n <element name=\"Country\" nillable=\"true\" minOccurs=\"0\" type=\"xsd:string\"/>\n <element name=\"CreatedBy\" nillable=\"true\" minOccurs=\"0\" type=\"ens:User\"/>\n <element name=\"CreatedById\" nillable=\"true\" minOccurs=\"0\" type=\"tns:ID\"/>\n <element name=\"CreatedDate\" nillable=\"true\" minOccurs=\"0\" type=\"xsd:dateTime\"/>\n <element name=\"DescendantWorkOrderLineItems\" nillable=\"true\" minOccurs=\"0\" type=\"tns:QueryResult\"/>\n <element name=\"Description\" nillable=\"true\" minOccurs=\"0\" type=\"xsd:string\"/>\n <element name=\"DigitalSignatures\" nillable=\"true\" minOccurs=\"0\" type=\"tns:QueryResult\"/>\n <element name=\"Discount\" nillable=\"true\" minOccurs=\"0\" type=\"xsd:double\"/>\n <element name=\"Duration\" nillable=\"true\" minOccurs=\"0\" type=\"xsd:double\"/>\n <element name=\"DurationInMinutes\" nillable=\"true\" minOccurs=\"0\" type=\"xsd:double\"/>\n <element name=\"DurationType\" nillable=\"true\" minOccurs=\"0\" type=\"xsd:string\"/>\n <element name=\"DynamicDataCaptures\" nillable=\"true\" minOccurs=\"0\" type=\"tns:QueryResult\"/>\n <element name=\"Emails\" nillable=\"true\" minOccurs=\"0\" type=\"tns:QueryResult\"/>\n <element name=\"EndDate\" nillable=\"true\" minOccurs=\"0\" type=\"xsd:dateTime\"/>\n <element name=\"Events\" nillable=\"true\" minOccurs=\"0\" type=\"tns:QueryResult\"/>\n <element name=\"FeedSubscriptionsForEntity\" nillable=\"true\" minOccurs=\"0\" type=\"tns:QueryResult\"/>\n <element name=\"Feeds\" nillable=\"true\" minOccurs=\"0\" type=\"tns:QueryResult\"/>\n <element name=\"FlowOrchestrationWorkItems\" nillable=\"true\" minOccurs=\"0\" type=\"tns:QueryResult\"/>\n <element name=\"GeocodeAccuracy\" nillable=\"true\" minOccurs=\"0\" type=\"xsd:string\"/>\n <element name=\"Histories\" nillable=\"true\" minOccurs=\"0\" type=\"tns:QueryResult\"/>\n <element name=\"IsClosed\" nillable=\"true\" minOccurs=\"0\" type=\"xsd:boolean\"/>\n <element name=\"IsDeleted\" nillable=\"true\" minOccurs=\"0\" type=\"xsd:boolean\"/>\n <element name=\"IsGeneratedFromMaintenancePlan\" nillable=\"true\" minOccurs=\"0\" type=\"xsd:boolean\"/>\n <element name=\"LastModifiedBy\" nillable=\"true\" minOccurs=\"0\" type=\"ens:User\"/>\n <element name=\"LastModifiedById\" nillable=\"true\" minOccurs=\"0\" type=\"tns:ID\"/>\n <element name=\"LastModifiedDate\" nillable=\"true\" minOccurs=\"0\" type=\"xsd:dateTime\"/>\n <element name=\"LastReferencedDate\" nillable=\"true\" minOccurs=\"0\" type=\"xsd:dateTime\"/>\n <element name=\"LastViewedDate\" nillable=\"true\" minOccurs=\"0\" type=\"xsd:dateTime\"/>\n <element name=\"Latitude\" nillable=\"true\" minOccurs=\"0\" type=\"xsd:double\"/>\n <element name=\"LineItemNumber\" nillable=\"true\" minOccurs=\"0\" type=\"xsd:string\"/>\n <element name=\"ListPrice\" nillable=\"true\" minOccurs=\"0\" type=\"xsd:double\"/>\n <element name=\"Location\" nillable=\"true\" minOccurs=\"0\" type=\"ens:Location\"/>\n <element name=\"LocationId\" nillable=\"true\" minOccurs=\"0\" type=\"tns:ID\"/>\n <element name=\"Longitude\" nillable=\"true\" minOccurs=\"0\" type=\"xsd:double\"/>\n <element name=\"LookedUpFromActivities\" nillable=\"true\" minOccurs=\"0\" type=\"tns:QueryResult\"/>\n <element name=\"MaintenancePlan\" nillable=\"true\" minOccurs=\"0\" type=\"ens:MaintenancePlan\"/>\n <element name=\"MaintenancePlanId\" nillable=\"true\" minOccurs=\"0\" type=\"tns:ID\"/>\n <element name=\"MaintenanceWorkRule\" nillable=\"true\" minOccurs=\"0\" type=\"ens:MaintenanceWorkRule\"/>\n <element name=\"MaintenanceWorkRuleId\" nillable=\"true\" minOccurs=\"0\" type=\"tns:ID\"/>\n <element name=\"MinimumCrewSize\" nillable=\"true\" minOccurs=\"0\" type=\"xsd:int\"/>\n <element name=\"NewWorkPlans\" nillable=\"true\" minOccurs=\"0\" type=\"tns:QueryResult\"/>\n <element name=\"NewWorkSteps\" nillable=\"true\" minOccurs=\"0\" type=\"tns:QueryResult\"/>\n <element name=\"Notes\" nillable=\"true\" minOccurs=\"0\" type=\"tns:QueryResult\"/>\n <element name=\"NotesAndAttachments\" nillable=\"true\" minOccurs=\"0\" type=\"tns:QueryResult\"/>\n <element name=\"OpenActivities\" nillable=\"true\" minOccurs=\"0\" type=\"tns:QueryResult\"/>\n <element name=\"Order\" nillable=\"true\" minOccurs=\"0\" type=\"ens:Order\"/>\n <element name=\"OrderId\" nillable=\"true\" minOccurs=\"0\" type=\"tns:ID\"/>\n <element name=\"ParentWorkOrderLineItem\" nillable=\"true\" minOccurs=\"0\" type=\"ens:WorkOrderLineItem\"/>\n <element name=\"ParentWorkOrderLineItemId\" nillable=\"true\" minOccurs=\"0\" type=\"tns:ID\"/>\n <element name=\"PostalCode\" nillable=\"true\" minOccurs=\"0\" type=\"xsd:string\"/>\n <element name=\"PricebookEntry\" nillable=\"true\" minOccurs=\"0\" type=\"ens:PricebookEntry\"/>\n <element name=\"PricebookEntryId\" nillable=\"true\" minOccurs=\"0\" type=\"tns:ID\"/>\n <element name=\"Priority\" nillable=\"true\" minOccurs=\"0\" type=\"xsd:string\"/>\n <element name=\"ProcessInstances\" nillable=\"true\" minOccurs=\"0\" type=\"tns:QueryResult\"/>\n <element name=\"ProcessSteps\" nillable=\"true\" minOccurs=\"0\" type=\"tns:QueryResult\"/>\n <element name=\"Product2\" nillable=\"true\" minOccurs=\"0\" type=\"ens:Product2\"/>\n <element name=\"Product2Id\" nillable=\"true\" minOccurs=\"0\" type=\"tns:ID\"/>\n <element name=\"ProductRequestLineItems\" nillable=\"true\" minOccurs=\"0\" type=\"tns:QueryResult\"/>\n <element name=\"ProductRequests\" nillable=\"true\" minOccurs=\"0\" type=\"tns:QueryResult\"/>\n <element name=\"ProductServiceCampaign\" nillable=\"true\" minOccurs=\"0\" type=\"ens:ProductServiceCampaign\"/>\n <element name=\"ProductServiceCampaignId\" nillable=\"true\" minOccurs=\"0\" type=\"tns:ID\"/>\n <element name=\"ProductServiceCampaignItem\" nillable=\"true\" minOccurs=\"0\" type=\"ens:ProductServiceCampaignItem\"/>\n <element name=\"ProductServiceCampaignItemId\" nillable=\"true\" minOccurs=\"0\" type=\"tns:ID\"/>\n <element name=\"ProductsConsumed\" nillable=\"true\" minOccurs=\"0\" type=\"tns:QueryResult\"/>\n <element name=\"ProductsRequired\" nillable=\"true\" minOccurs=\"0\" type=\"tns:QueryResult\"/>\n <element name=\"Quantity\" nillable=\"true\" minOccurs=\"0\" type=\"xsd:double\"/>\n <element name=\"RecommendedCrewSize\" nillable=\"true\" minOccurs=\"0\" type=\"xsd:int\"/>\n <element name=\"RecordActionHistories\" nillable=\"true\" minOccurs=\"0\" type=\"tns:QueryResult\"/>\n <element name=\"RecordActions\" nillable=\"true\" minOccurs=\"0\" type=\"tns:QueryResult\"/>\n <element name=\"ResourcePreferences\" nillable=\"true\" minOccurs=\"0\" type=\"tns:QueryResult\"/>\n <element name=\"ReturnOrder\" nillable=\"true\" minOccurs=\"0\" type=\"ens:ReturnOrder\"/>\n <element name=\"ReturnOrderId\" nillable=\"true\" minOccurs=\"0\" type=\"tns:ID\"/>\n <element name=\"ReturnOrderLineItem\" nillable=\"true\" minOccurs=\"0\" type=\"ens:ReturnOrderLineItem\"/>\n <element name=\"ReturnOrderLineItemId\" nillable=\"true\" minOccurs=\"0\" type=\"tns:ID\"/>\n <element name=\"RootWorkOrderLineItem\" nillable=\"true\" minOccurs=\"0\" type=\"ens:WorkOrderLineItem\"/>\n <element name=\"RootWorkOrderLineItemId\" nillable=\"true\" minOccurs=\"0\" type=\"tns:ID\"/>\n <element name=\"ServiceAppointmentCount\" nillable=\"true\" minOccurs=\"0\" type=\"xsd:int\"/>\n <element name=\"ServiceAppointments\" nillable=\"true\" minOccurs=\"0\" type=\"tns:QueryResult\"/>\n <element name=\"ServiceReportTemplate\" nillable=\"true\" minOccurs=\"0\" type=\"ens:ServiceReportLayout\"/>\n <element name=\"ServiceReportTemplateId\" nillable=\"true\" minOccurs=\"0\" type=\"tns:ID\"/>\n <element name=\"ServiceReports\" nillable=\"true\" minOccurs=\"0\" type=\"tns:QueryResult\"/>\n <element name=\"ServiceTerritory\" nillable=\"true\" minOccurs=\"0\" type=\"ens:ServiceTerritory\"/>\n <element name=\"ServiceTerritoryId\" nillable=\"true\" minOccurs=\"0\" type=\"tns:ID\"/>\n <element name=\"SkillRequirements\" nillable=\"true\" minOccurs=\"0\" type=\"tns:QueryResult\"/>\n <element name=\"StartDate\" nillable=\"true\" minOccurs=\"0\" type=\"xsd:dateTime\"/>\n <element name=\"State\" nillable=\"true\" minOccurs=\"0\" type=\"xsd:string\"/>\n <element name=\"Status\" nillable=\"true\" minOccurs=\"0\" type=\"xsd:string\"/>\n <element name=\"StatusCategory\" nillable=\"true\" minOccurs=\"0\" type=\"xsd:string\"/>\n <element name=\"Street\" nillable=\"true\" minOccurs=\"0\" type=\"xsd:string\"/>\n <element name=\"Subject\" nillable=\"true\" minOccurs=\"0\" type=\"xsd:string\"/>\n <element name=\"Subtotal\" nillable=\"true\" minOccurs=\"0\" type=\"xsd:double\"/>\n <element name=\"SuggestedMaintenanceDate\" nillable=\"true\" minOccurs=\"0\" type=\"xsd:date\"/>\n <element name=\"SystemModstamp\" nillable=\"true\" minOccurs=\"0\" type=\"xsd:dateTime\"/>\n <element name=\"Tasks\" nillable=\"true\" minOccurs=\"0\" type=\"tns:QueryResult\"/>\n <element name=\"TimeSheetEntries\" nillable=\"true\" minOccurs=\"0\" type=\"tns:QueryResult\"/>\n <element name=\"TopicAssignments\" nillable=\"true\" minOccurs=\"0\" type=\"tns:QueryResult\"/>\n <element name=\"TotalPrice\" nillable=\"true\" minOccurs=\"0\" type=\"xsd:double\"/>\n <element name=\"UnitPrice\" nillable=\"true\" minOccurs=\"0\" type=\"xsd:double\"/>\n <element name=\"UserRecordAccess\" nillable=\"true\" minOccurs=\"0\" type=\"ens:UserRecordAccess\"/>\n <element name=\"WorkOrder\" nillable=\"true\" minOccurs=\"0\" type=\"ens:WorkOrder\"/>\n <element name=\"WorkOrderId\" nillable=\"true\" minOccurs=\"0\" type=\"tns:ID\"/>\n <element name=\"WorkPlans\" nillable=\"true\" minOccurs=\"0\" type=\"tns:QueryResult\"/>\n <element name=\"WorkSteps\" nillable=\"true\" minOccurs=\"0\" type=\"tns:QueryResult\"/>\n <element name=\"WorkType\" nillable=\"true\" minOccurs=\"0\" type=\"ens:WorkType\"/>\n <element name=\"WorkTypeId\" nillable=\"true\" minOccurs=\"0\" type=\"tns:ID\"/>\n </sequence>\n </extension>\n </complexContent>\n</complexType>\n<complexType name=\"address\">\n <complexContent>\n <extension base=\"tns:location\">\n <sequence>\n <element name=\"city\" type=\"xsd:string\" nillable=\"true\"/>\n <element name=\"country\" type=\"xsd:string\" nillable=\"true\"/>\n <element name=\"countryCode\" type=\"xsd:string\" nillable=\"true\"/>\n <element name=\"geocodeAccuracy\" type=\"xsd:string\" nillable=\"true\"/>\n <element name=\"postalCode\" type=\"xsd:string\" nillable=\"true\"/>\n <element name=\"state\" type=\"xsd:string\" nillable=\"true\"/>\n <element name=\"stateCode\" type=\"xsd:string\" nillable=\"true\"/>\n <element name=\"street\" type=\"xsd:string\" nillable=\"true\"/>\n </sequence>\n </extension>\n </complexContent>\n</complexType>\n<complexType name=\"location\">\n <sequence>\n <element name=\"latitude\" type=\"xsd:double\" nillable=\"true\"/>\n <element name=\"longitude\" type=\"xsd:double\" nillable=\"true\"/>\n </sequence>\n</complexType>\n```",
"field_reference": {
"Address": {
"field_label": "Address",
"type": "address"
},
"AssetId": {
"field_label": "Asset ID",
"type": "reference",
"length": "18"
},
"AssetWarrantyId": {
"field_label": "Asset Warranty ID",
"type": "reference",
"length": "18"
},
"City": {
"field_label": "City",
"type": "string",
"length": "40"
},
"Country": {
"field_label": "Country",
"type": "string",
"length": "80"
},
"CreatedById": {
"field_label": "Created By ID",
"type": "reference",
"length": "18"
},
"CreatedDate": {
"field_label": "Created Date",
"type": "datetime"
},
"CurrencyIsoCode": {
"field_label": "Currency ISO Code",
"type": "picklist",
"length": "3"
},
"Description": {
"field_label": "Description",
"type": "textarea",
"length": "32000"
},
"Discount": {
"field_label": "Discount",
"type": "percent",
"precision": "5",
"scale": "2"
},
"Duration": {
"field_label": "Duration",
"type": "double",
"precision": "18",
"scale": "2"
},
"DurationInMinutes": {
"field_label": "Duration in Minutes",
"type": "double",
"precision": "18",
"scale": "2"
},
"DurationType": {
"field_label": "Duration Type",
"type": "picklist",
"length": "255"
},
"EndDate": {
"field_label": "End Date",
"type": "datetime"
},
"GeocodeAccuracy": {
"field_label": "Geocode Accuracy",
"type": "picklist",
"length": "40"
},
"Id": {
"field_label": "Work Order Line Item ID",
"type": "id",
"length": "18"
},
"IsClosed": {
"field_label": "Is Closed",
"type": "boolean"
},
"IsDeleted": {
"field_label": "Deleted",
"type": "boolean"
},
"IsGeneratedFromMaintenancePlan": {
"field_label": "Generated from maintenance plan",
"type": "boolean"
},
"LastModifiedById": {
"field_label": "Last Modified By ID",
"type": "reference",
"length": "18"
},
"LastModifiedDate": {
"field_label": "Last Modified Date",
"type": "datetime"
},
"LastReferencedDate": {
"field_label": "Last Referenced Date",
"type": "datetime"
},
"LastViewedDate": {
"field_label": "Last Viewed Date",
"type": "datetime"
},
"Latitude": {
"field_label": "Latitude",
"type": "double",
"precision": "18",
"scale": "15"
},
"LineItemNumber": {
"field_label": "Work Order Line Item Number",
"type": "string",
"length": "255"
},
"ListPrice": {
"field_label": "List Price",
"type": "currency",
"precision": "18",
"scale": "2"
},
"LocationId": {
"field_label": "Location ID",
"type": "reference",
"length": "18"
},
"Longitude": {
"field_label": "Longitude",
"type": "double",
"precision": "18",
"scale": "15"
},
"MaintenancePlanId": {
"field_label": "Maintenance Plan ID",
"type": "reference",
"length": "18"
},
"MaintenanceWorkRuleId": {
"field_label": "Maintenance Work Rule ID",
"type": "reference",
"length": "18"
},
"MinimumCrewSize": {
"field_label": "Minimum Crew Size",
"type": "int",
"digits": "9"
},
"OrderId": {
"field_label": "Order ID",
"type": "reference",
"length": "18"
},
"ParentWorkOrderLineItemId": {
"field_label": "Parent Work Order Line Item ID",
"type": "reference",
"length": "18"
},
"PostalCode": {
"field_label": "Zip/Postal Code",
"type": "string",
"length": "20"
},
"PricebookEntryId": {
"field_label": "Product ID",
"type": "reference",
"length": "18"
},
"Priority": {
"field_label": "Priority",
"type": "picklist",
"length": "40"
},
"Product2Id": {
"field_label": "Product ID",
"type": "reference",
"length": "18"
},
"ProductServiceCampaignId": {
"field_label": "Product Service Campaign ID",
"type": "reference",
"length": "18"
},
"ProductServiceCampaignItemId": {
"field_label": "Product Service Campaign Item ID",
"type": "reference",
"length": "18"
},
"Quantity": {
"field_label": "Quantity",
"type": "double",
"precision": "12",
"scale": "2"
},
"RecommendedCrewSize": {
"field_label": "Recommended Crew Size",
"type": "int",
"digits": "9"
},
"ReturnOrderId": {
"field_label": "Return Order ID",
"type": "reference",
"length": "18"
},
"ReturnOrderLineItemId": {
"field_label": "Return Order Line Item ID",
"type": "reference",
"length": "18"
},
"RootWorkOrderLineItemId": {
"field_label": "Root Work Order Line Item ID",
"type": "reference",
"length": "18"
},
"ServiceAppointmentCount": {
"field_label": "Service Appointment Count",
"type": "int",
"digits": "9"
},
"ServiceReportTemplateId": {
"field_label": "Service Report Layout ID",
"type": "reference",
"length": "18"
},
"ServiceTerritoryId": {
"field_label": "Territory ID",
"type": "reference",
"length": "18"
},
"StartDate": {
"field_label": "Start Date",
"type": "datetime"
},
"State": {
"field_label": "State/Province",
"type": "string",
"length": "80"
},
"Status": {
"field_label": "Status",
"type": "picklist",
"length": "40"
},
"StatusCategory": {
"field_label": "Status Category",
"type": "picklist",
"length": "255"
},
"Street": {
"field_label": "Street",
"type": "textarea",
"length": "255"
},
"Subject": {
"field_label": "Subject",
"type": "string",
"length": "255"
},
"Subtotal": {
"field_label": "Subtotal",
"type": "currency",
"precision": "18",
"scale": "2"
},
"SuggestedMaintenanceDate": {
"field_label": "Suggested Maintenance Date",
"type": "date"
},
"SystemModstamp": {
"field_label": "System Modstamp",
"type": "datetime"
},
"TotalPrice": {
"field_label": "Total Price",
"type": "currency",
"precision": "18",
"scale": "2"
},
"UnitPrice": {
"field_label": "Unit Price",
"type": "currency",
"precision": "18",
"scale": "2"
},
"WorkOrderId": {
"field_label": "Work Order ID",
"type": "reference",
"length": "18"
},
"WorkTypeId": {
"field_label": "Work Type ID",
"type": "reference",
"length": "18"
}
},
"field_reference_columns": [
"field_label",
"type",
"length",
"precision",
"scale",
"digits"
]
}