{
"sections": [
"title",
"description",
"fields",
"special_access_rules",
"usage",
"associated_objects",
"wsdl_segment",
"field_reference"
],
"title": "ResourceAbsence - Data API",
"description": "Represents a time period in which a service resource is unavailable to work in Field Service, Salesforce Scheduler, or Workforce Engagement. This object is available in API version 38.0 and later.",
"fields_columns": [
"type",
"properties",
"description",
"relationship_name",
"relationship_type",
"refers_to"
],
"fields": {
"AbsenceNumber": {
"type": "string",
"properties": "Autonumber, Defaulted on create, Filter, idLookup, Sort",
"description": "(Read only) An auto-generated number identifying the absence."
},
"Address": {
"type": "address",
"properties": "Filter",
"description": "The compound form of the address associated with the absence."
},
"City": {
"type": "string",
"properties": "Create, Filter, Group, Nillable, Sort, Update",
"description": "The city of the address associated with the absence. Maximum length is 40 characters."
},
"Country": {
"type": "string",
"properties": "Create, Filter, Group, Nillable, Sort, Update",
"description": "The country of the address associated with the absence. Maximum length is 80 characters."
},
"Description": {
"type": "textarea",
"properties": "Create, Nillable, Update",
"description": "The description of the absence."
},
"End": {
"type": "dateTime",
"properties": "Create, Filter, Sort, Update",
"description": "The date and time when the absence ends."
},
"GeocodeAccuracy": {
"type": "picklist",
"properties": "Create, Filter, Group, Nillable, Restricted picklist, Sort, Update",
"description": "The level of accuracy of a location’s geographical coordinates compared with its physical address. Usually provided by a geocoding service based on the address’s latitude and longitude coordinates. This field is available in the API only."
},
"LastReferencedDate": {
"type": "dateTime",
"properties": "Filter, Nillable, Sort",
"description": "The date when the resource absence 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 resource absence was last viewed."
},
"Latitude": {
"type": "double",
"properties": "Create, Filter, Nillable, Sort, Update",
"description": "Used with Longitude to specify the precise geolocation of the address associated with the absence. Acceptable values are numbers between –90 and 90 with up to 15 decimal places. Note: This field is available in the API only."
},
"Longitude": {
"type": "double",
"properties": "Create, Filter, Nillable, Sort, Update",
"description": "Used with Latitude to specify the precise geolocation of the address associated with the absence. Acceptable values are numbers between –180 and 180 with up to 15 decimal places. Note: This field is available in the API only."
},
"Postal Code": {
"type": "string",
"properties": "Create, Filter, Group, Nillable, Sort, Update",
"description": "The postal code of the address associated with the absence. Maximum length is 20 characters."
},
"ResourceId": {
"type": "reference",
"properties": "Create, Filter, Group, Sort, Update",
"description": "The absent service resource. This is a relationship field.",
"relationship_name": "Resource",
"relationship_type": "Lookup",
"refers_to": "ServiceResource"
},
"Start": {
"type": "dateTime",
"properties": "Create, Filter, Sort, Update",
"description": "The date and time when the absence begins."
},
"State": {
"type": "string",
"properties": "Create, Filter, Group, Nillable, Sort, Update",
"description": "The state of the address associated with the absence. Maximum length is 80 characters."
},
"Street": {
"type": "textarea",
"properties": "Create, Filter, Group, Nillable, Sort, Update",
"description": "The street number and name of the address associated with the absence."
},
"Type": {
"type": "picklist",
"properties": "Create, Defaulted on create, Filter, Group, Sort, Update",
"description": "The type of absence: Meeting, Training, Medical, or Vacation. The default value is Vacation. You can add custom values if needed, but the name Break is reserved for the Field Service managed package."
}
},
"special_access_rules": "Field Service or Workforce Engagement must be enabled.",
"usage": "Resource absences you define periods of time when a service resource is unavailable to work. Unless you’re using the Field Service managed package, service resources can still be assigned to appointments that conflict with their absences. If you’re not using the Field Service managed package, a calendar view isn’t available for individual service resources.\n\nResource absences you define periods of time when a service resource is unavailable\n\t\t\t\tto work. Unless you’re using the Field Service managed package, service resources\n\t\t\t\tcan still be assigned to appointments that conflict with their absences.\n\nCreate a trigger that sends an approval request to a supervisor when\n\t\t\t\t\ta service resource creates an absence.\n\nIf you’re not using the Field\n\t\t\t\tService managed package, a calendar view isn’t available for individual service\n\t\t\t\tresources.",
"associated_objects": "This object has the following associated objects. If the API version isn’t specified, they’re available in the same API versions as this object. Otherwise, they’re available in the specified API version and later.\n\n- **ResourceAbsenceChangeEvent (API version 48.0)**: Change events are available for the object.\n- **ResourceAbsenceFeed**: Feed tracking is available for the object.\n- **ResourceAbsenceHistory**: 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 \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": {
"AbsenceNumber": {
"field_label": "Absence Number",
"type": "string",
"length": "255"
},
"Address": {
"field_label": "Address",
"type": "address"
},
"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"
},
"End": {
"field_label": "End Time",
"type": "datetime"
},
"GeocodeAccuracy": {
"field_label": "Geocode Accuracy",
"type": "picklist",
"length": "40"
},
"Id": {
"field_label": "Absence 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"
},
"Latitude": {
"field_label": "Latitude",
"type": "double",
"precision": "18",
"scale": "15"
},
"Longitude": {
"field_label": "Longitude",
"type": "double",
"precision": "18",
"scale": "15"
},
"PostalCode": {
"field_label": "Zip/Postal Code",
"type": "string",
"length": "20"
},
"ResourceId": {
"field_label": "Resource ID",
"type": "reference",
"length": "18"
},
"Start": {
"field_label": "Start Time",
"type": "datetime"
},
"State": {
"field_label": "State/Province",
"type": "string",
"length": "80"
},
"Street": {
"field_label": "Address",
"type": "textarea",
"length": "255"
},
"SystemModstamp": {
"field_label": "System Modstamp",
"type": "datetime"
},
"Type": {
"field_label": "Type",
"type": "picklist",
"length": "40"
}
},
"field_reference_columns": [
"field_label",
"type",
"length",
"precision",
"scale"
]
}