LightningBolt defines a Lightning Bolt Solution: a collection of custom applications, flow categories, and Experience Builder templates, with descriptions and preview images for the solution detail page. It controls the solution's composition and presentation, not the full definitions of the components it references.
A solution item can reference a FlowCategory, not an individual Flow. Likewise, the feature descriptions in a solution describe what it offers; they are not settings that enable Salesforce features.
Key Elements
| Element | What the Element Controls |
|---|---|
fullName |
The solution's metadata identity, inherited from Metadata. This is distinct from its displayed label. |
category |
Required. The solution's primary industry. Documented values are Communications, Education, FinancialServices, GeneralBusiness, Government, HealthcareLifeSciences, HighTech, Manufacturing, Media, Nonprofits, ProfessionalServices, RealEstate, Retail, and TravelTransportationHospitality. |
masterLabel |
Required. The solution label displayed on the solution detail page. |
publisher |
Required. The name of the partner organization associated with the solution. |
summary |
Required. The solution's summary description. |
lightningBoltItems |
The components that comprise the solution. Each entry requires name and type. The allowed type values are CommunityTemplateDefinition, CustomApplication, and FlowCategory. The item's name also appears on the solution detail page. |
lightningBoltFeatures |
Feature descriptions for presentation. Each entry requires a title and an order. The title appears on the solution detail page; order values specify display positions from 1 through 4. |
lightningBoltImages |
Preview images. Each entry requires image, which identifies a ContentAsset by developer name, and order, which specifies a display position from 1 through 3. |
Behavior and Constraints
Enable digital experiences before adding Experience Builder templates to a solution. This prerequisite applies specifically to including templates; it is not stated as a prerequisite for every Lightning Bolt Solution.
Interpret each item's name together with its type. Although type is serialized as a string, it has the three documented allowed values listed above. The selected type determines which metadata type the name references. An item entry does not contain the referenced component's full definition.
Preview images use a different reference mechanism from solution items. The image value must be the developer name of a ContentAsset, not a record ID or an image URL.
Feature and image order values control display positions only. They do not control execution order or establish a deployment sequence. Feature entries are descriptive content, not feature enablement settings.
Deployment and Retrieval
LightningBolt components use the .lightningBolt file suffix and reside in the lightningBolts folder.
In a package.xml manifest, use LightningBolt as the metadata type name and the component's fullName as the member name. This type also supports * as a wildcard member for selecting all Lightning Bolt components.
The solution definition, the components listed in lightningBoltItems, and the preview-image assets are separate metadata definitions. When moving a solution between orgs, account for the referenced components and image assets separately: the solution file stores their references, not their complete definitions. For a solution containing Experience Builder templates, the destination org must have digital experiences enabled to add those templates.
For category, use a documented industry value rather than copying Sales from the declarative example. The example and the documented enumeration disagree, as described below.
Relationships
For solution items, lightningBoltItems.type determines which metadata type name references. Preview images reference a separate asset through lightningBoltImages.image.
References
-
CommunityTemplateDefinition:nameinlightningBoltItems, for Experience Builder template items. -
CustomApplication:nameinlightningBoltItems, for custom application items. -
FlowCategory:nameinlightningBoltItems, for flow category items. -
ContentAsset:imageinlightningBoltImages, using the asset's developer name.
Documentation Inconsistencies
The official declarative example sets category to Sales, but Sales is absent from the documented LightningBoltCategory enumeration. Do not treat the example as establishing an additional allowed value. Use a documented industry value, such as GeneralBusiness or FinancialServices.
Common Questions
How do I retrieve all LightningBolt components?
Use LightningBolt as the type name and * as the member in package.xml. Component files use the .lightningBolt suffix in the lightningBolts folder.
Can a Lightning Bolt Solution reference an individual Flow?
The documented item type is FlowCategory, not Flow. The other allowed item types are CustomApplication and CommunityTemplateDefinition.
Do LightningBolt preview images use record IDs or URLs?
Neither. Set lightningBoltImages.image to the preview image's ContentAsset developer name. The asset is a separate metadata dependency from the solution's listed components.
Do digital experiences need to be enabled for LightningBolt?
Digital experiences must be enabled to add Experience Builder templates to a Lightning Bolt Solution. That requirement is specifically tied to including templates.
Is Sales a valid LightningBolt category?
Sales appears in the official example but is not in the documented enumeration. Use one of the documented industry values instead.