WorkOrder
Represents field service work to be performed for a customer. This object is available in API version 36.0 and later.
This guide only lists certain information for each object. For more information, including descriptions of the fields, see WorkOrder in the Energy and Utilities Cloud Developer Guide, Field Service Developer Guide, Object Reference for the Salesforce Platform, and Work.com Developer Guide.
| Field Name | Field Label | Type | Digits | Length | Precision | Scale |
|---|---|---|---|---|---|---|
AccountId | Account ID | reference | 18 | |||
Address | Address | address | ||||
AssetId | Asset ID | reference | 18 | |||
AssetWarrantyId | Asset Warranty ID | reference | 18 | |||
BusinessHoursId | Business Hours ID | reference | 18 | |||
CaseId | Case ID | reference | 18 | |||
City | City | string | 40 | |||
ContactId | Contact ID | reference | 18 | |||
Country | Country | string | 80 | |||
CreatedById | Created By ID | reference | 18 | |||
CreatedDate | Created Date | datetime | ||||
CurrencyIsoCode | Currency ISO Code | picklist | 3 | |||
Description | Description | textarea | 32000 | |||
Discount | Discount | percent | 5 | 2 | ||
Duration | Duration | double | 18 | 2 | ||
DurationInMinutes | Duration in Minutes | double | 18 | 2 | ||
DurationType | Duration Type | picklist | 255 | |||
EndDate | End Date | datetime | ||||
EntitlementId | Entitlement ID | reference | 18 | |||
GeocodeAccuracy | Geocode Accuracy | picklist | 40 | |||
GrandTotal | Grand Total | currency | 18 | 2 | ||
Id | Work Order ID | id | 18 | |||
IsClosed | Is Closed | boolean | ||||
IsDeleted | Deleted | boolean | ||||
IsGeneratedFromMaintenancePlan | Generated from maintenance plan | boolean | ||||
IsStopped | Stopped | boolean | ||||
LastModifiedById | Last Modified By ID | reference | 18 | |||
LastModifiedDate | Last Modified Date | datetime | ||||
LastReferencedDate | Last Referenced Date | datetime | ||||
LastViewedDate | Last Viewed Date | datetime | ||||
Latitude | Latitude | double | 18 | 15 | ||
LineItemCount | Line Items | int | 9 | |||
LocationId | Location ID | reference | 18 | |||
Longitude | Longitude | double | 18 | 15 | ||
MaintenancePlanId | Maintenance Plan ID | reference | 18 | |||
MaintenanceWorkRuleId | Maintenance Work Rule ID | reference | 18 | |||
MilestoneStatus | Milestone Status | string | 30 | |||
MinimumCrewSize | Minimum Crew Size | int | 9 | |||
OwnerId | Owner ID | reference | 18 | |||
ParentWorkOrderId | Parent Work Order ID | reference | 18 | |||
PostWorkSummary | Post-Work Summary | textarea | 131072 | |||
PostalCode | Zip/Postal Code | string | 20 | |||
PreWorkBriefPromptTemplate | Pre-Work Brief Prompt Template ID | string | 255 | |||
Pricebook2Id | Price Book ID | reference | 18 | |||
Priority | Priority | picklist | 40 | |||
ProductServiceCampaignId | Product Service Campaign ID | reference | 18 | |||
ProductServiceCampaignItemId | Product Service Campaign Item ID | reference | 18 | |||
RecommendedCrewSize | Recommended Crew Size | int | 9 | |||
ReturnOrderId | Return Order ID | reference | 18 | |||
ReturnOrderLineItemId | Return Order Line Item ID | reference | 18 | |||
RootWorkOrderId | Root Work Order ID | reference | 18 | |||
ServiceAppointmentCount | Service Appointment Count | int | 9 | |||
ServiceContractId | Service Contract ID | reference | 18 | |||
ServiceReportLanguage | Service Report Language | picklist | 255 | |||
ServiceReportTemplateId | Service Report Layout ID | reference | 18 | |||
ServiceTerritoryId | Territory ID | reference | 18 | |||
SlaExitDate | Sla Policy End Time | datetime | ||||
SlaStartDate | Sla Policy Start Time | datetime | ||||
StartDate | Start Date | datetime | ||||
State | State/Province | string | 80 | |||
Status | Status | picklist | 255 | |||
StatusCategory | Status Category | picklist | 255 | |||
StopStartDate | Stopped Since | datetime | ||||
Street | Street | textarea | 255 | |||
Subject | Subject | string | 255 | |||
Subtotal | Subtotal | currency | 18 | 2 | ||
SuggestedMaintenanceDate | Suggested Maintenance Date | date | ||||
SystemModstamp | System Modstamp | datetime | ||||
Tax | Tax | currency | 18 | 2 | ||
TotalPrice | Total Price | currency | 18 | 2 | ||
WorkOrderNumber | Work Order Number | string | 255 | |||
WorkTypeId | Work Type ID | reference | 18 |
Feed tracking for WorkOrder.
This guide only lists certain information for each object. For more information, including descriptions of the fields, see StandardObjectNameFeed in the Object Reference for the Salesforce Platform.
| Field Name | Field Label | Type | Digits | Length | Precision | Scale |
|---|---|---|---|---|---|---|
BestCommentId | Best Comment ID | reference | 18 | |||
Body | Body | textarea | 10000 | |||
CommentCount | Comment Count | int | 9 | |||
CreatedById | Created By ID | reference | 18 | |||
CreatedDate | Created Date | datetime | ||||
Id | Feed Item ID | id | 18 | |||
InsertedById | InsertedBy ID | reference | 18 | |||
IsDeleted | Deleted | boolean | ||||
IsRichText | Is Rich Text | boolean | ||||
LastModifiedDate | Last Modified Date | datetime | ||||
LikeCount | Like Count | int | 9 | |||
LinkUrl | Link URL | url | 1000 | |||
NetworkScope | Network Scope | picklist | 40 | |||
ParentId | Parent ID | reference | 18 | |||
RelatedRecordId | Related Record ID | reference | 18 | |||
SystemModstamp | System Modstamp | datetime | ||||
Title | Title | string | 255 | |||
Type | Feed Item Type | picklist | 40 | |||
Visibility | Visibility | picklist | 40 |
Represents the history of changes made to tracked fields on a work order. This object is available in API version 36.0 and later.
This guide only lists certain information for each object. For more information, including descriptions of the fields, see WorkOrderHistory in the Object Reference for the Salesforce Platform.
| Field Name | Field Label | Type | Digits | Length | Precision | Scale |
|---|---|---|---|---|---|---|
CreatedById | Created By ID | reference | 18 | |||
CreatedDate | Created Date | datetime | ||||
DataType | Datatype | picklist | 40 | |||
Field | Changed Field | picklist | 255 | |||
Id | Work Order History ID | id | 18 | |||
IsDeleted | Deleted | boolean | ||||
NewValue | New Value | anyType | 255 | |||
OldValue | Old Value | anyType | 255 | |||
WorkOrderId | Work Order ID | reference | 18 |
Represents a sharing entry on a work order. This object is available in API version 36.0 and later.
This guide only lists certain information for each object. For more information, including descriptions of the fields, see WorkOrderShare in the Object Reference for the Salesforce Platform.
| Field Name | Field Label | Type | Digits | Length | Precision | Scale |
|---|---|---|---|---|---|---|
AccessLevel | Custom Object Access | picklist | 40 | |||
Id | Custom Object Share ID | id | 18 | |||
IsDeleted | Deleted | boolean | ||||
LastModifiedById | Last Modified By ID | reference | 18 | |||
LastModifiedDate | Last Modified Date | datetime | ||||
ParentId | Parent ID | reference | 18 | |||
RowCause | Row Cause | picklist | 40 | |||
UserOrGroupId | User/Group ID | reference | 18 |