QuickAction defines an action that creates or updates records, logs a call, sends email, posts content, or invokes a flow or custom interface. It combines an implementation binding with predefined field values and, for record-oriented actions, a compact action layout. The action definition is separate from the Layout, FlexiPage, or other configuration that presents it to users.
Quick actions can be created on objects that permit custom fields. Supported parent objects include Account, Campaign, Case, Contact, ContentNote, Group, Lead, Opportunity, and custom objects. The parent context and target object can differ: an action presented on an Account can create a related Contact.
Key Elements
| Element | What the Element Controls |
|---|---|
type |
Required. Selects the action implementation, such as Create, Update, LogACall, Post, SendEmail, Flow, Canvas, VisualforcePage, LightningComponent, or LightningWebComponent. |
targetObject |
Identifies the object on which a record action operates. For an Account action that creates a Contact, the target object is Contact. |
targetParentField |
Identifies the relationship linking the target record to the parent context. Documented examples use Account for a Contact action on Account and What for a Task action. |
targetRecordType |
Selects the record type to create. The documented value list is Business Account, Person Account, and Master; the recognized metadata relationship is to RecordType. These descriptions do not fully explain general record-type name serialization. |
flowDefinition |
For type=Flow, contains the flow's API name. Its dependency is Flow, despite the element's name. |
lightningComponent, lightningWebComponent
|
Bind the action to a Lightning component or Lightning web component (LWC), respectively. lightningComponent contains a fully qualified component name. |
page, canvas
|
page identifies the Visualforce page. canvas identifies a Canvas app through its connected app, using a fully qualified name in the form <namespace>__<dev_name>. |
fieldOverrides |
Defines predefined field values through field, formula, and literalValue. The nested field is required. An action's predefined value overrides the field default, and formula overrides literalValue when both are present. |
quickActionLayout |
Defines the action form through layoutSectionStyle, quickActionLayoutColumns, and nested quickActionLayoutItems. Each item can identify a field or use emptySpace. Item-level uiBehavior values are Edit, Required, and Readonly. |
optionsCreateFeedItem |
Controls whether successful completion creates a feed item. It is documented as required but applies only to Create Record, Update Record, and Log a Call actions. |
quickActionSendEmailOptions |
Exposes defaultEmailTemplateName and ignoreDefaultEmailTemplateSubject for SendEmail actions, separately from generic predefined field values. |
isProtected |
When true, prevents components created in an installing organization from linking to or referencing the protected action. |
label, standardLabel
|
Control the displayed action label, not its implementation. The standard-label choices EnrollInProgram and PatientDetails require Health Cloud. |
icon |
Identifies the action's icon and can reference a StaticResource. |
quickActionParameter |
Contains parameter configuration with required name and type, plus value. The Metadata API documentation lists only Input as a valid type. A plural representation differs, as described below. |
Behavior and Constraints
The required type determines how to interpret the remaining configuration. Setting label or choosing standardLabel=SendEmail, for example, does not select the SendEmail implementation. The implementation binding must match the action type.
For record actions, distinguish the object being acted on from the relationship to the parent. targetObject identifies the target object; targetParentField links that target to the parent context. Do not treat targetParentField simply as another place to enter the target object's name.
Predefined values have two levels of precedence:
- An action's predefined value takes precedence over the field's default value.
- Within a
FieldOverride,formulatakes precedence overliteralValuewhen both are supplied.
literalValue is supported only for picklists. formula is supported for single-select picklists as well as other supported formula-based predefined values. When an action opens with an unexpected value, inspect fieldOverrides before attributing the result to the field default.
The action layout nests columns inside quickActionLayout and items inside each column. Its required layoutSectionStyle accepts TwoColumnsTopToBottom, TwoColumnsLeftToRight, OneColumn, and CustomLinks. Item-level uiBehavior controls input behavior within that action form; it is not a general field-security classification.
There is no hard limit on the number of fields in an action layout. Salesforce recommends at most eight for usability and warns that more than 20 can severely affect user efficiency. These are user-interaction considerations, not metadata field-count limits.
optionsCreateFeedItem is not a general switch for every action type's posting behavior. Its documented scope is Create Record, Update Record, and Log a Call. Likewise, isProtected is a packaging restriction on references from components created in the installing organization, not a field-access setting.
Deployment and Retrieval
Metadata API QuickAction components use the .quickAction suffix and are stored in the quickActions folder. The type supports the wildcard * in the package.xml manifest for deployment and retrieval.
Moving an action definition is separate from moving the configuration that presents it. A Layout or FlexiPage can contain an action reference, but that reference does not replace the QuickAction definition or its flow, component, page, field, or record-type dependencies. Possible reference locations also do not prove that a particular action is assigned, visible, or used in an organization.
A Layout error saying that an action is missing can be secondary to the action's own deployment failure. In particular, a reported SendEmail deployment first failed with an email-or-activities error and then produced a missing-action error on the consuming Layout. Diagnose the action failure before treating the Layout reference as the root cause.
For Flow actions, check resolution of the API name in flowDefinition when deployment reports missing required field [Component]. A reported resolution involved correcting the deployed flow definitions and identities, not adding a Component element to QuickAction.
Relationships
Outgoing dependencies identify the implementation, target record configuration, and fields used by the action. Field dependencies can occur in both predefined values and layout items, including embedded field references in formulas. Incoming references identify consumers of the action definition; they do not establish actual visibility or usage.
References
-
ApexPage:page. -
ConnectedApp:canvas. -
CustomField:fieldinfieldOverridesandquickActionLayoutItems, embedded field references infieldOverrides.formula, andtargetParentField. -
CustomObject:targetObject. -
Flow:flowDefinition. -
LightningBundle:lightningComponent. -
LightningWebComponent:lightningWebComponent. -
RecordType:targetRecordType. -
StaticResource:icon.
Referenced By
-
ConversationMessageDefinition:handlerName. -
CustomObject:actionName,massQuickActions. -
CustomObjectTranslation:name, for translation configuration. -
EmbeddedServiceLiveAgent:quickActionDefinition. -
EntitlementProcess:name. -
FlexiPage:actionName,quickActionName,value. -
Flow:actionName. -
Layout:actionName,createAction,quickActionName,quickActions,updateAction. -
RecommendationStrategy:action. -
RecordActionDeployment:action. -
Translations:name, for translation configuration. -
WaveXmd:defaultAction,salesforceActionName.
Documentation Inconsistencies
Record-type representation is incompletely described. The documented allowed-value list for targetRecordType is Business Account, Person Account, and Master, while the recognized metadata dependency is RecordType. The field description does not explain general RecordType name serialization. Do not treat the value list and the dependency relationship as interchangeable descriptions.
Parameter naming and accepted types differ between representations. The Metadata API documentation names the element quickActionParameter and describes QuickActionParameter as input/output configuration, but lists only Input as a valid parameter type. An alternate exposed schema uses quickActionParameters with both Input and Output. These representations differ in element name and accepted values; do not silently substitute one for the other.
Reported Issues
-
A Campaign relationship error can indicate deploying-user access rather than a missing relationship. In a 2017 report, deploying an action that created a child Campaign through
ParentIdfailed with "Target object does not have a valid lookup or master-detail reference to the parent object". The relationship existed, and the user had read/update access toParentId. Enabling Marketing User on the deploying user reportedly resolved the failure. This is a Campaign-specific diagnostic condition, not a universal explanation for that error. Campaign deployment report. - A missing-action Layout error can follow a failed SendEmail action deployment. A 2019 Case email-action report showed "Send Email is disabled or activities are not allowed" before the Layout reported that the QuickAction was missing. In a similar QA sandbox deployment reported in 2020, changing Deliverability Access Level to "All email" reportedly resolved the action failure. This does not establish a blanket requirement to change email-delivery policy for every QuickAction deployment. SendEmail deployment discussion.
-
A Flow action's Component error can be a flow-name resolution failure. A 2022 report resolved
missing required field [Component]by correcting the deployed flow definitions and identities. The reported issue was that the referenced flow could not be located, rather than a missing QuickAction element. Check the name inflowDefinitioninstead of assuming that aComponentelement must be added. Flow action deployment report. -
An undefined
recordIdin a native LWC action can be a component-lifecycle issue. Reports beginning in 2021 describerecordIdbeing unavailable inconnectedCallback(). Reported approaches use a public-property setter or a reactive wire, which runs when the value becomes available; headless actions, which run without an action screen, access it ininvoke(). The discussion distinguishesactionType=ActionfromScreenActionunderlightning__RecordAction. Those settings belong to the referenced component bundle, not QuickAction itself. LWC recordId discussion. -
A missing
recordIdin an Aura-wrapped LWC can instead be an attribute-binding problem. In a 2025 Case Chatter-publisher report, the Aura wrapper had the record ID, but the child LWC did not receive it because the wrapper usedrecord-id. Changing the Aura markup attribute torecordIdreportedly resolved the issue. This applies to Aura-to-LWC binding and does not mean that all LWC actions require an Aura wrapper. Aura-to-LWC binding report. - A package installation can report a missing standard NewTask action even when it appears on a retrieved default layout. In a 2020 scratch-org discussion, one respondent reported removing Platform and Quick Actions from the package and restoring them after deployment as a workaround. That approach requires access to the target organization and is not a general package-installation solution. NewTask package-installation discussion.
Common Questions
Why does my QuickAction predefined value override the field default?
An action's predefined value takes precedence over the field's default value. Within fieldOverrides, formula also takes precedence over literalValue when both are supplied.
Why does a Flow QuickAction deployment say missing required field Component?
A reported cause is failure to locate the flow named in flowDefinition. Check the deployed flow definitions and identities before assuming that the QuickAction needs a Component element.
Why does my page layout say the QuickAction is missing?
The action itself may have failed to deploy. A reported Case SendEmail deployment produced an email-or-activities error first, followed by a missing-action error on the Layout. The action definition and its consuming Layout are separate metadata components.
Is there an eight-field limit on a quick action layout?
No. There is no hard field-count limit. Salesforce recommends at most eight fields for usability and warns that more than 20 can severely affect user efficiency.
Why is recordId undefined in my LWC quick action?
For native LWC actions, community reports describe recordId arriving after connectedCallback(); a public-property setter, reactive wire, or headless action's invoke() can handle that timing. For an Aura-wrapped LWC, also check that the wrapper binds the attribute as recordId, not record-id.