mirror of
https://github.com/forcedotcom/afv-library.git
synced 2026-08-07 00:02:34 +08:00
197 lines
11 KiB
JSON
197 lines
11 KiB
JSON
{
|
|
"sections": [
|
|
"title",
|
|
"description",
|
|
"fields",
|
|
"associated_objects",
|
|
"wsdl_segment",
|
|
"field_reference"
|
|
],
|
|
"title": "MaintenanceWorkRule - Data API",
|
|
"description": "Represents the recurrence pattern for a maintenance record. This object is available in API version 49.0 and later.",
|
|
"fields_columns": [
|
|
"type",
|
|
"properties",
|
|
"description"
|
|
],
|
|
"fields": {
|
|
"DoesFloatingWorkOrder": {
|
|
"type": "boolean",
|
|
"properties": "Create, Defaulted on create, Filter, Group, Sort, Update",
|
|
"description": "Indicates that the maintenance plan uses the floating work order adjustment. The default is false."
|
|
},
|
|
"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."
|
|
},
|
|
"Name": {
|
|
"type": "string",
|
|
"properties": "Autonumber, Defaulted on create, Filter, idLookup, Sort",
|
|
"description": "Name of this maintenance work rule."
|
|
},
|
|
"NextSuggestedMaintenanceDate": {
|
|
"type": "date",
|
|
"properties": "Create, Filter, Group, Nillable, Sort, Update",
|
|
"description": "The next date on which this rule will generate maintenance items."
|
|
},
|
|
"OwnerId": {
|
|
"type": "reference",
|
|
"properties": "Create, Defaulted on create, Filter, Group, Sort, Update",
|
|
"description": "The assigned owner of the maintenance work rule."
|
|
},
|
|
"ParentMaintenancePlanId": {
|
|
"type": "reference",
|
|
"properties": "Create, Filter, Group, Nillable, Sort, Update",
|
|
"description": "The maintenance plan associated with the maintenance work rule."
|
|
},
|
|
"ParentMaintenanceRecordId": {
|
|
"type": "reference",
|
|
"properties": "Create, Filter, Group, Nillable, Sort, Update",
|
|
"description": "The maintenance record this work rule applies to."
|
|
},
|
|
"RecordsetFilterCriteriaId": {
|
|
"type": "reference",
|
|
"properties": "Create, Filter, Group, Nillable, Sort, Update",
|
|
"description": "ID of the recordset filter criteria associated with this maintenance work rule. Available in API version 52.0 and later."
|
|
},
|
|
"RecurrencePattern": {
|
|
"type": "string",
|
|
"properties": "Create, Filter, Group, Nillable, Sort, Update",
|
|
"description": "The RRULE that defines the pattern of recurrence for this work order rule."
|
|
},
|
|
"SortOrder": {
|
|
"type": "int",
|
|
"properties": "Create, Filter, Group, Sort, Update",
|
|
"description": "The sort order that applies to this work order rule."
|
|
},
|
|
"Title": {
|
|
"type": "string",
|
|
"properties": "Create, Filter, Group, Sort, Update",
|
|
"description": "The title of this work order rule."
|
|
},
|
|
"Type": {
|
|
"type": "picklist",
|
|
"properties": "Create, Defaulted on create, Filter, Group, Nillable, Restricted picklist, Sort, Update",
|
|
"description": "The type of maintenance work rule. Available values are: Criteria-based Calendar-based (default) Available in API version 52.0 and later."
|
|
},
|
|
"WorkTypeId": {
|
|
"type": "reference",
|
|
"properties": "Create, Filter, Group, Nillable, Sort, Update",
|
|
"description": "The ID of the work type that this work order rule generates."
|
|
}
|
|
},
|
|
"associated_objects": "This object has the following associated objects. Unless noted, they are available in the same API version as this object.\n\n- **MaintenanceWorkRuleChangeEvent**: Change events are available for the object.\n- **MaintenanceWorkRuleFeed**: Feed tracking is available for the object.\n- **MaintenanceWorkRuleHistory**: History is available for tracked fields of the object.\n- **MaintenanceWorkRuleOwnerSharingRule**: Sharing rules are available for the object.\n- **MaintenanceWorkRuleShare**: Sharing is available for 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<complexType name=\"MaintenanceWorkRule\">\n <complexContent>\n <extension base=\"ens:sObject\">\n <sequence>\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=\"AttachedContentDocuments\" nillable=\"true\" minOccurs=\"0\" type=\"tns:QueryResult\"/>\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=\"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=\"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=\"Histories\" nillable=\"true\" minOccurs=\"0\" type=\"tns:QueryResult\"/>\n <element name=\"IsDeleted\" 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=\"Name\" nillable=\"true\" minOccurs=\"0\" type=\"xsd:string\"/>\n <element name=\"NextSuggestedMaintenanceDate\" nillable=\"true\" minOccurs=\"0\" type=\"xsd:date\"/>\n <element name=\"Owner\" nillable=\"true\" minOccurs=\"0\" type=\"ens:sObject\"/>\n <element name=\"OwnerId\" nillable=\"true\" minOccurs=\"0\" type=\"tns:ID\"/>\n <element name=\"ParentMaintenancePlan\" nillable=\"true\" minOccurs=\"0\" type=\"ens:MaintenancePlan\"/>\n <element name=\"ParentMaintenancePlanId\" nillable=\"true\" minOccurs=\"0\" type=\"tns:ID\"/>\n <element name=\"ParentMaintenanceRecord\" nillable=\"true\" minOccurs=\"0\" type=\"ens:MaintenanceAsset\"/>\n <element name=\"ParentMaintenanceRecordId\" nillable=\"true\" minOccurs=\"0\" type=\"tns:ID\"/>\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=\"RecordsetFilterCriteria\" nillable=\"true\" minOccurs=\"0\" type=\"ens:RecordsetFilterCriteria\"/>\n <element name=\"RecordsetFilterCriteriaId\" nillable=\"true\" minOccurs=\"0\" type=\"tns:ID\"/>\n <element name=\"RecurrencePattern\" nillable=\"true\" minOccurs=\"0\" type=\"xsd:string\"/>\n <element name=\"Shares\" nillable=\"true\" minOccurs=\"0\" type=\"tns:QueryResult\"/>\n <element name=\"SortOrder\" nillable=\"true\" minOccurs=\"0\" type=\"xsd:int\"/>\n <element name=\"SystemModstamp\" nillable=\"true\" minOccurs=\"0\" type=\"xsd:dateTime\"/>\n <element name=\"Title\" nillable=\"true\" minOccurs=\"0\" type=\"xsd:string\"/>\n <element name=\"Type\" nillable=\"true\" minOccurs=\"0\" type=\"xsd:string\"/>\n <element name=\"UserRecordAccess\" nillable=\"true\" minOccurs=\"0\" type=\"ens:UserRecordAccess\"/>\n <element name=\"WorkOrderLineItems\" nillable=\"true\" minOccurs=\"0\" type=\"tns:QueryResult\"/>\n <element name=\"WorkOrders\" 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<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```",
|
|
"field_reference": {
|
|
"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"
|
|
},
|
|
"Id": {
|
|
"field_label": "Maintenance Work Rule ID",
|
|
"type": "id",
|
|
"length": "18"
|
|
},
|
|
"IsDeleted": {
|
|
"field_label": "Deleted",
|
|
"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"
|
|
},
|
|
"Name": {
|
|
"field_label": "Maintenance Work Rule Name",
|
|
"type": "string",
|
|
"length": "255"
|
|
},
|
|
"NextSuggestedMaintenanceDate": {
|
|
"field_label": "Date of the first work order in the next batch",
|
|
"type": "date"
|
|
},
|
|
"OwnerId": {
|
|
"field_label": "Owner ID",
|
|
"type": "reference",
|
|
"length": "18"
|
|
},
|
|
"ParentMaintenancePlanId": {
|
|
"field_label": "Maintenance Plan ID",
|
|
"type": "reference",
|
|
"length": "18"
|
|
},
|
|
"ParentMaintenanceRecordId": {
|
|
"field_label": "Maintenance Asset ID",
|
|
"type": "reference",
|
|
"length": "18"
|
|
},
|
|
"RecordsetFilterCriteriaId": {
|
|
"field_label": "Recordset Filter Criteria ID",
|
|
"type": "reference",
|
|
"length": "18"
|
|
},
|
|
"RecurrencePattern": {
|
|
"field_label": "Recurrence Pattern",
|
|
"type": "string",
|
|
"length": "255"
|
|
},
|
|
"SortOrder": {
|
|
"field_label": "Sort Order",
|
|
"type": "int",
|
|
"digits": "9"
|
|
},
|
|
"SystemModstamp": {
|
|
"field_label": "System Modstamp",
|
|
"type": "datetime"
|
|
},
|
|
"Title": {
|
|
"field_label": "Maintenance Work Rule Title",
|
|
"type": "string",
|
|
"length": "255"
|
|
},
|
|
"Type": {
|
|
"field_label": "Maintenance Work Rule Type",
|
|
"type": "picklist",
|
|
"length": "255"
|
|
},
|
|
"WorkTypeId": {
|
|
"field_label": "Work Type ID",
|
|
"type": "reference",
|
|
"length": "18"
|
|
}
|
|
},
|
|
"field_reference_columns": [
|
|
"field_label",
|
|
"type",
|
|
"length",
|
|
"digits"
|
|
]
|
|
} |