mirror of
https://github.com/forcedotcom/afv-library.git
synced 2026-08-06 15:59:59 +08:00
221 lines
11 KiB
JSON
221 lines
11 KiB
JSON
{
|
||
"sections": [
|
||
"title",
|
||
"description",
|
||
"fields",
|
||
"usage",
|
||
"wsdl_segment",
|
||
"field_reference"
|
||
],
|
||
"title": "ApexTrigger - Data API",
|
||
"description": "Represents an Apex trigger.",
|
||
"fields_columns": [
|
||
"type",
|
||
"properties",
|
||
"description"
|
||
],
|
||
"fields": {
|
||
"ApiVersion": {
|
||
"type": "double",
|
||
"properties": "Create, Filter, Sort, Update",
|
||
"description": "The API version for this trigger. Every trigger has an API version specified at creation."
|
||
},
|
||
"Body": {
|
||
"type": "textarea",
|
||
"properties": "Create, Nillable, Update",
|
||
"description": "The Apex trigger definition. Limit: 1 million characters."
|
||
},
|
||
"BodyCrc": {
|
||
"type": "double",
|
||
"properties": "Create, Defaulted on create, Filter, Nillable, Sort, Update",
|
||
"description": "The CRC (cyclic redundancy check) of the class or trigger file."
|
||
},
|
||
"IsValid": {
|
||
"type": "boolean",
|
||
"properties": "Create, Defaulted on create, Filter, Group, Sort, Update",
|
||
"description": "Indicates whether any dependent metadata has changed since the trigger was last compiled (true) or not (false)."
|
||
},
|
||
"LengthWithoutComments": {
|
||
"type": "int",
|
||
"properties": "Create, Filter, Group, Sort, Update",
|
||
"description": "Length of the trigger without comments"
|
||
},
|
||
"Name": {
|
||
"type": "string",
|
||
"properties": "Create, Filter, Group, idLookup, Sort, Update",
|
||
"description": "Name of the trigger.Limit: 255 characters"
|
||
},
|
||
"NamespacePrefix": {
|
||
"type": "string",
|
||
"properties": "Filter, Group, Nillable, Sort",
|
||
"description": "The namespace prefix that is associated with this object. Each Developer Edition org that creates a managed package has a unique namespace prefix. Limit: 15 characters. You can refer to a component in a managed package by using the namespacePrefix__componentName notation. The namespace prefix can have one of the following values. In Developer Edition orgs, NamespacePrefix is set to the namespace prefix of the org for all objects that support it, unless an object is in an installed managed package. In that case, the object has the namespace prefix of the installed managed package. This field’s value is the namespace prefix of the Developer Edition org of the package developer. In orgs that are not Developer Edition orgs, NamespacePrefix is set only for objects that are part of an installed managed package. All other objects have no namespace prefix."
|
||
},
|
||
"Status": {
|
||
"type": "picklist",
|
||
"properties": "Create, Filter, Group, Restricted picklist, Sort, Update",
|
||
"description": "The current status of the Apex trigger. The following string values are valid: Active—The trigger is active. Inactive—The trigger is inactive, but not deleted. Deleted—The trigger is marked for deletion. This is useful for managed packages, because it allows a class to be deleted when a managed package is updated. Note: Inactive is not valid for ApexClass. For more information, see the Metadata API Developer Guide."
|
||
},
|
||
"TableEnumOrId": {
|
||
"type": "picklist",
|
||
"properties": "Create, Filter, Group, Nillable, Restricted picklist, Sort, Update",
|
||
"description": "Specifies the object associated with the trigger, such as Account or Contact."
|
||
},
|
||
"UsageAfterDelete": {
|
||
"type": "boolean",
|
||
"properties": "Create, Filter, Update",
|
||
"description": "Specifies whether the trigger is an after delete trigger (true) or not (false)."
|
||
},
|
||
"UsageAfterInsert": {
|
||
"type": "boolean",
|
||
"properties": "Create, Filter, Update",
|
||
"description": "Specifies whether the trigger is an after insert trigger (true) or not (false)."
|
||
},
|
||
"UsageAfterUndelete": {
|
||
"type": "boolean",
|
||
"properties": "Create, Filter, Update",
|
||
"description": "Specifies whether the trigger is an after undelete trigger (true) or not (false)."
|
||
},
|
||
"UsageAfterUpdate": {
|
||
"type": "boolean",
|
||
"properties": "Create, Filter, Update",
|
||
"description": "Specifies whether the trigger is an after update trigger (true) or not (false)."
|
||
},
|
||
"UsageBeforeDelete": {
|
||
"type": "boolean",
|
||
"properties": "Create, Filter, Update",
|
||
"description": "Specifies whether the trigger is a before delete trigger (true) or not (false)."
|
||
},
|
||
"UsageBeforeInsert": {
|
||
"type": "boolean",
|
||
"properties": "Create, Filter, Update",
|
||
"description": "Specifies whether the trigger is a before insert trigger (true) or not (false)."
|
||
},
|
||
"UsageBeforeUpdate": {
|
||
"type": "boolean",
|
||
"properties": "Create, Filter, Update",
|
||
"description": "Specifies whether the trigger is a before update trigger (true) or not (false)."
|
||
},
|
||
"UsageIsBulk": {
|
||
"type": "boolean",
|
||
"properties": "Create, Filter, Update",
|
||
"description": "Specifies whether the trigger is defined as a bulk trigger (true) or not (false). Note: This field is not used for Apex triggers saved using Salesforce API version 10.0 or higher: all triggers starting with that version are automatically considered bulk, and this field will always return true."
|
||
}
|
||
},
|
||
"usage": "Although Apex classes and triggers have the Create and Update field properties, a runtime exception occurs if you try to create, update, or delete them using the API. Instead, use the Salesforce Extensions for Visual Studio Code or the Ant Migration Tool to create or update Apex classes or triggers. Apex classes and triggers can’t be created, edited, or deleted in a production org. See Deploying Apex.",
|
||
"wsdl_segment": "```xml\n<complexType name=\"ApexTrigger\">\n <complexContent>\n <extension base=\"ens:sObject\">\n <sequence>\n <element name=\"ApiVersion\" nillable=\"true\" minOccurs=\"0\" type=\"xsd:double\"/>\n <element name=\"Body\" nillable=\"true\" minOccurs=\"0\" type=\"xsd:string\"/>\n <element name=\"BodyCrc\" nillable=\"true\" minOccurs=\"0\" type=\"xsd:double\"/>\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=\"IsValid\" 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=\"LengthWithoutComments\" nillable=\"true\" minOccurs=\"0\" type=\"xsd:int\"/>\n <element name=\"Name\" nillable=\"true\" minOccurs=\"0\" type=\"xsd:string\"/>\n <element name=\"NamespacePrefix\" nillable=\"true\" minOccurs=\"0\" type=\"xsd:string\"/>\n <element name=\"Status\" nillable=\"true\" minOccurs=\"0\" type=\"xsd:string\"/>\n <element name=\"SystemModstamp\" nillable=\"true\" minOccurs=\"0\" type=\"xsd:dateTime\"/>\n <element name=\"TableEnumOrId\" nillable=\"true\" minOccurs=\"0\" type=\"xsd:string\"/>\n <element name=\"UsageAfterDelete\" nillable=\"true\" minOccurs=\"0\" type=\"xsd:boolean\"/>\n <element name=\"UsageAfterInsert\" nillable=\"true\" minOccurs=\"0\" type=\"xsd:boolean\"/>\n <element name=\"UsageAfterUndelete\" nillable=\"true\" minOccurs=\"0\" type=\"xsd:boolean\"/>\n <element name=\"UsageAfterUpdate\" nillable=\"true\" minOccurs=\"0\" type=\"xsd:boolean\"/>\n <element name=\"UsageBeforeDelete\" nillable=\"true\" minOccurs=\"0\" type=\"xsd:boolean\"/>\n <element name=\"UsageBeforeInsert\" nillable=\"true\" minOccurs=\"0\" type=\"xsd:boolean\"/>\n <element name=\"UsageBeforeUpdate\" nillable=\"true\" minOccurs=\"0\" type=\"xsd:boolean\"/>\n <element name=\"UsageIsBulk\" nillable=\"true\" minOccurs=\"0\" type=\"xsd:boolean\"/>\n </sequence>\n </extension>\n </complexContent>\n</complexType>\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```",
|
||
"field_reference": {
|
||
"ApiVersion": {
|
||
"field_label": "Api Version",
|
||
"type": "double",
|
||
"precision": "18",
|
||
"scale": "1"
|
||
},
|
||
"Body": {
|
||
"field_label": "Body",
|
||
"type": "textarea",
|
||
"length": "1000000"
|
||
},
|
||
"BodyCrc": {
|
||
"field_label": "Body CRC",
|
||
"type": "double",
|
||
"precision": "18",
|
||
"scale": "0"
|
||
},
|
||
"CreatedById": {
|
||
"field_label": "Created By ID",
|
||
"type": "reference",
|
||
"length": "18"
|
||
},
|
||
"CreatedDate": {
|
||
"field_label": "Created Date",
|
||
"type": "datetime"
|
||
},
|
||
"Id": {
|
||
"field_label": "Apex Trigger ID",
|
||
"type": "id",
|
||
"length": "18"
|
||
},
|
||
"IsValid": {
|
||
"field_label": "Is Valid",
|
||
"type": "boolean"
|
||
},
|
||
"LastModifiedById": {
|
||
"field_label": "Last Modified By ID",
|
||
"type": "reference",
|
||
"length": "18"
|
||
},
|
||
"LastModifiedDate": {
|
||
"field_label": "Last Modified Date",
|
||
"type": "datetime"
|
||
},
|
||
"LengthWithoutComments": {
|
||
"field_label": "Size Without Comments",
|
||
"type": "int",
|
||
"digits": "9"
|
||
},
|
||
"Name": {
|
||
"field_label": "Name",
|
||
"type": "string",
|
||
"length": "255"
|
||
},
|
||
"NamespacePrefix": {
|
||
"field_label": "Namespace Prefix",
|
||
"type": "string",
|
||
"length": "15"
|
||
},
|
||
"Status": {
|
||
"field_label": "Status",
|
||
"type": "picklist",
|
||
"length": "40"
|
||
},
|
||
"SystemModstamp": {
|
||
"field_label": "System Modstamp",
|
||
"type": "datetime"
|
||
},
|
||
"TableEnumOrId": {
|
||
"field_label": "Custom Object Definition ID",
|
||
"type": "picklist",
|
||
"length": "40"
|
||
},
|
||
"UsageAfterDelete": {
|
||
"field_label": "AfterDelete",
|
||
"type": "boolean"
|
||
},
|
||
"UsageAfterInsert": {
|
||
"field_label": "AfterInsert",
|
||
"type": "boolean"
|
||
},
|
||
"UsageAfterUndelete": {
|
||
"field_label": "AfterUndelete",
|
||
"type": "boolean"
|
||
},
|
||
"UsageAfterUpdate": {
|
||
"field_label": "AfterUpdate",
|
||
"type": "boolean"
|
||
},
|
||
"UsageBeforeDelete": {
|
||
"field_label": "BeforeDelete",
|
||
"type": "boolean"
|
||
},
|
||
"UsageBeforeInsert": {
|
||
"field_label": "BeforeInsert",
|
||
"type": "boolean"
|
||
},
|
||
"UsageBeforeUpdate": {
|
||
"field_label": "BeforeUpdate",
|
||
"type": "boolean"
|
||
},
|
||
"UsageIsBulk": {
|
||
"field_label": "IsBulk",
|
||
"type": "boolean"
|
||
}
|
||
},
|
||
"field_reference_columns": [
|
||
"field_label",
|
||
"type",
|
||
"precision",
|
||
"scale",
|
||
"length",
|
||
"digits"
|
||
]
|
||
} |