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

158 lines
10 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": "ServiceResourceCapacity - Data API",
"description": "Represents the maximum number of scheduled hours or number of service appointments that a capacity-based service resource can complete within a specific time period. This object is available in API version 38.0 and later.",
"fields_columns": [
"type",
"properties",
"description"
],
"fields": {
"CapacityInHours": {
"type": "double",
"properties": "Create, Filter, Nillable, Sort, Update",
"description": "The number of hours that the resource can work per time period. You must fill out this field, the CapacityInWorkItems field, or both."
},
"CapacityInWorkItems": {
"type": "int",
"properties": "Create, Filter, Group, Nillable, Sort, Update",
"description": "The total number of service appointments that the resource can complete per time period. You must fill out this field, the CapacityInHours field, or both."
},
"CapacityNumber": {
"type": "string",
"properties": "Autonumber, Defaulted on create, Filter, idLookup, Sort",
"description": "(Read only) An auto-generated number identifying the capacity record."
},
"EndDate": {
"type": "date",
"properties": "Create, Filter, Group, Nillable, Sort, Update",
"description": "The date the capacity ends; for example, the end date of a contract."
},
"LastReferencedDate": {
"type": "dateTime",
"properties": "Filter, Nillable, Sort",
"description": "The timestamp for when the current user last viewed a record related to this record."
},
"LastViewedDate": {
"type": "dateTime",
"properties": "Filter, Nillable, Sort",
"description": "The timestamp for when the current user last viewed this record. If this value is null, this record might only have been referenced (LastReferencedDate) and not viewed."
},
"ServiceResourceId": {
"type": "reference",
"properties": "Create, Filter, Group, Sort",
"description": "The associated service resource. You can set multiple capacities for a resource as long as their start and end dates do not overlap."
},
"StartDate": {
"type": "date",
"properties": "Create, Filter, Group, Sort",
"description": "The date the capacity goes into effect."
},
"TimePeriod": {
"type": "picklist",
"properties": "Create, Defaulted on create, Filter, Group, Nillable, Restricted picklist, Sort, Update",
"description": "Days, Hours, or Months. For example, if a resource can work 80 hours per month, the capacitys Time Period would be Month and Hours per Time Period would be 80."
}
},
"special_access_rules": "Field Service must be enabled.",
"usage": "You must fill out at least one of these fields: CapacityInWorkItems and CapacityInHours. If youre using the Field Service managed package and would like to measure capacity both in hours and in number of work items, enter a value for both. The resource is considered to reach their capacity based on whichever term is met first—hours or number of work items.\n\nService resources who are capacity-based can only work a certain number of hours or complete a certain number of service appointments within a specified time\n\t\t\tperiod. Contractors tend to be capacity-based. To indicate that a service resource is capacity-based, select\n\nCapacity-Based\n\non the service resource record, then\n\t\t\tcreate a capacity record for the service resource.\n\nYou must fill out at least one of these fields:\n\nCapacityInWorkItems\n\nCapacityInHours\n\n. If\n\t\t\t\tyoure using the Field Service managed package and would like to measure capacity both in hours and in number of work items, enter a value for both. The resource is\n\t\t\t\tconsidered to reach their capacity based on whichever term is met first—hours or number of work items.\n\nIf you arent using the Field Service\n\t\t\t\tmanaged package, capacity serves more as a suggestion than a rule. Resources can still be as scheduled beyond their capacity, and you arent notified when a resource exceeds their\n\t\t\t\tcapacity.",
"associated_objects": "This object has the following associated objects. Unless noted, they are available in the same API version as this object.\n\n- **ServiceResourceCapacityChangeEvent (API version 54.0)**: Change events are available for the object.\n\n- **ServiceResourceCapacityFeed**: Feed tracking is available for the object.\n- **ServiceResourceCapacityHistory**: 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=\"ServiceResourceCapacity\">\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=\"CapacityInHours\" nillable=\"true\" minOccurs=\"0\" type=\"xsd:double\"/>\n <element name=\"CapacityInWorkItems\" nillable=\"true\" minOccurs=\"0\" type=\"xsd:int\"/>\n <element name=\"CapacityNumber\" 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=\"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=\"EndDate\" nillable=\"true\" minOccurs=\"0\" type=\"xsd:date\"/>\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=\"ProcessInstances\" nillable=\"true\" minOccurs=\"0\" type=\"tns:QueryResult\"/>\n <element name=\"ProcessSteps\" nillable=\"true\" minOccurs=\"0\" type=\"tns:QueryResult\"/>\n <element name=\"ServiceResource\" nillable=\"true\" minOccurs=\"0\" type=\"ens:ServiceResource\"/>\n <element name=\"ServiceResourceId\" nillable=\"true\" minOccurs=\"0\" type=\"tns:ID\"/>\n <element name=\"StartDate\" nillable=\"true\" minOccurs=\"0\" type=\"xsd:date\"/>\n <element name=\"SystemModstamp\" nillable=\"true\" minOccurs=\"0\" type=\"xsd:dateTime\"/>\n <element name=\"TimePeriod\" nillable=\"true\" minOccurs=\"0\" type=\"xsd:string\"/>\n <element name=\"TopicAssignments\" nillable=\"true\" minOccurs=\"0\" type=\"tns:QueryResult\"/>\n <element name=\"UserRecordAccess\" nillable=\"true\" minOccurs=\"0\" type=\"ens:UserRecordAccess\"/>\n </sequence>\n </extension>\n </complexContent>\n</complexType>\n```",
"field_reference": {
"CapacityInHours": {
"field_label": "Hours per Time Period",
"type": "double",
"precision": "18",
"scale": "2"
},
"CapacityInWorkItems": {
"field_label": "Work Items per Time Period",
"type": "int",
"digits": "9"
},
"CapacityNumber": {
"field_label": "Resource Capacity Number",
"type": "string",
"length": "255"
},
"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"
},
"EndDate": {
"field_label": "End Date",
"type": "date"
},
"Id": {
"field_label": "Resource Capacity 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"
},
"ServiceResourceId": {
"field_label": "Resource ID",
"type": "reference",
"length": "18"
},
"StartDate": {
"field_label": "Start Date",
"type": "date"
},
"SystemModstamp": {
"field_label": "System Modstamp",
"type": "datetime"
},
"TimePeriod": {
"field_label": "Time Period",
"type": "picklist",
"length": "255"
}
},
"field_reference_columns": [
"field_label",
"type",
"precision",
"scale",
"digits",
"length"
]
}