{ "sections": [ "title", "description", "fields", "special_access_rules", "associated_objects", "wsdl_segment", "field_reference" ], "title": "ResourcePreference - Data API", "description": "Represents an account’s preference for a specified service resource on field service work.", "fields_columns": [ "type", "properties", "description", "relationship_name", "relationship_type", "refers_to" ], "fields": { "LastReferencedDate": { "type": "dateTime", "properties": "Filter, Nillable, Sort", "description": "The date when the resource preference was last modified." }, "LastViewedDate": { "type": "dateTime", "properties": "Filter, Nillable, Sort", "description": "The date when the resource preference was last viewed." }, "PreferenceType": { "type": "picklist", "properties": "Create, Defaulted on create, Filter, Group, Restricted picklist, Sort, Update", "description": "Resource preference type. Values include: Preferred: Indicates that the customer would like their field service work assigned to the resource. Required: Indicates that the resource must be assigned to the customer’s field service work. Excluded: Indicates that the customer doesn’t want their field service work assigned to the resource. Resource preferences serve more as a suggestion than a requirement. You can still assign a service appointment to any resource regardless of the related work order’s resource preferences." }, "RelatedRecordId": { "type": "reference", "properties": "Create, Filter, Group, Sort", "description": "The work order or account with the resource preference. This field is a polymorphic relationship.", "relationship_name": "RelatedRecord", "relationship_type": "Lookup", "refers_to": "Accounts, Assets, Locations, Work Orders, or Work Order Line Items" }, "ResourcePreferenceNumber": { "type": "string", "properties": "Autonumber, Defaulted on create, Filter, Sort", "description": "An auto-generated number identifying the resource preference." }, "ServiceResourceId": { "type": "reference", "properties": "Create, Filter, Group, Sort, Update", "description": "The service resource that is preferred, required, or excluded. This is a relationship field.", "relationship_name": "ServiceResource", "relationship_type": "Lookup", "refers_to": "ServiceResource" } }, "special_access_rules": "Field Service must be enabled.", "associated_objects": "This object has these associated objects. Unless noted, they’re available in the same API version as this object.\n\n- **ResourcePreferenceChangeEvent (API version 54.0)**: Change events are available for the object.\n\n- **ResourcePreferenceFeed**: Feed tracking is available for the object.\n- **ResourcePreferenceHistory**: History is available for tracked fields of the object.", "wsdl_segment": "```xml\n\n \n \n \n \n\n\n \n\n\n \n \n \n \n \n \n\n\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\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": "Resource Preference 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" }, "PreferenceType": { "field_label": "Preference Type", "type": "picklist", "length": "255" }, "RelatedRecordId": { "field_label": "Related Record ID", "type": "reference", "length": "18" }, "ResourcePreferenceNumber": { "field_label": "Resource Preference Number", "type": "string", "length": "255" }, "ServiceResourceId": { "field_label": "Resource ID", "type": "reference", "length": "18" }, "SystemModstamp": { "field_label": "System Modstamp", "type": "datetime" } }, "field_reference_columns": [ "field_label", "type", "length" ] }